Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrDecryption = errors.New("enc: failed to decrypt data") ErrDataLength = errors.New("enc: the data length is too short for encryption") )
View Source
var ErrPasswordLength = errors.New("enc: the password is missing")
Functions ¶
func DecryptData ¶
DecryptData transforms an encrypted slice of bytes into an original one.
func EncryptData ¶
EncryptData transforms an original slice of bytes into an encoded one.
func HashPassword ¶
HashPassword encodes an original password string.
func VerifyPassword ¶
VerifyPassword compares an encrypted password with a plain one.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.