Versions in this module Expand all Collapse all v0 v0.0.0 Apr 9, 2020 Changes in this version + var ErrInvalidHash = errors.New("scrypt: the provided hash is not in the correct format") + func DecryptGCM(data, password []byte) ([]byte, error) + func EncryptGCM(plainText, password []byte) ([]byte, error) + type EncodedScryptPkg string + func (r EncodedScryptPkg) CompareHashAndPassword(password []byte) (bool, error) + func (r EncodedScryptPkg) Decode() (*ScryptPkg, error) + type ScryptParams struct + DKLen int + N int + P int + R int + SaltLen int + func GetDefaultParams() ScryptParams + type ScryptPkg struct + Key []byte + Params ScryptParams + Salt []byte + func FromEncodedMust(esp string) *ScryptPkg + func NewScryptPkg(password []byte) (*ScryptPkg, error) + func NewScryptPkgWithParams(password []byte, params ScryptParams) (*ScryptPkg, error) + func (r ScryptPkg) CompareHashAndPasswordWithParams(password []byte) (bool, error) + func (r ScryptPkg) DecryptGCM(data []byte) ([]byte, error) + func (r ScryptPkg) DecryptGCMBase64(dataBase64 string) ([]byte, error) + func (r ScryptPkg) Encode() EncodedScryptPkg + func (r ScryptPkg) EncryptGCM(plainText []byte) ([]byte, error) + func (r ScryptPkg) EncryptGCMBase64(plainText []byte) (string, error)