Documentation ¶
Overview ¶
Package encryption 此包用于各个数据的加解密
Index ¶
- func ECBDecrypt(crypted, key []byte) ([]byte, error)
- func ECBEncrypt(src, key []byte) ([]byte, error)
- func Hash(pwd []byte) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) ([]byte, error)
- func PasswdDecrypt(passwd string, key []byte) (string, error)
- func PasswdEncrypt(passwd string, key []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PasswdDecrypt ¶
PasswdDecrypt 将密码解密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.