Documentation ¶
Index ¶
- Variables
- func AESDecrypt(key string, ciphertext []byte) (string, error)
- func AESEncrypt(key string, plaintext []byte) (string, error)
- func Decode(value []byte) ([]byte, error)
- func Decrypt(block cipher.Block, value []byte) ([]byte, error)
- func Encode(value []byte) []byte
- func EncodePwd(password []byte) (pwd, salt []byte)
- func EncodePwdStr(password string) (pwd, salt string)
- func Encrypt(block cipher.Block, value []byte) ([]byte, error)
- func EqualPwd(password []byte, dbPassword, dbSalt []byte) bool
- func EqualPwdStr(password string, dbPassword, dbSalt string) bool
- func GenerateRandomKey(length int) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var AESKeyMap = aesCipher{synx.NewRWMutexMap()}
Functions ¶
func EncodePwdStr ¶
func EqualPwdStr ¶
func GenerateRandomKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.