Versions in this module Expand all Collapse all v0 v0.0.4 Jul 9, 2021 Changes in this version + func Authenticate(attemptedPassword, encryptedPassword, salt string) bool + func Decrypt(cryptic, key []byte) ([]byte, error) + func Encrypt(origData, key []byte) ([]byte, error) + func EncryptedPassword(rawPwd string, salt string) string + func GenerateSalt() string + func MD5(origData string) string + func PBKDF2(password, salt []byte, iter, keyLen int, h func() hash.Hash) []byte + func PKCS5Padding(cipher []byte, blockSize int) []byte + func PKCS5UnPadding(origData []byte) []byte + func SHA1(data []byte) []byte