Documentation ¶
Index ¶
- Variables
- func Decrypt(encryptedData []byte, key []byte) ([]byte, error)
- func Encrypt(data []byte, key []byte) ([]byte, error)
- func GenerateEncryptKey(data []byte) []byte
- func Hash256(data []byte) []byte
- func Scrypt(password string) []byte
- func VerifyScrypt(password string, scryptKey []byte) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = errors.New("invalid scrypt key length") ErrMismatchedPassword = errors.New("password does not match scrypt key") )
Functions ¶
func GenerateEncryptKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.