Documentation
¶
Index ¶
- Variables
- func AesDecrypt(data []byte, key []byte) ([]byte, error)
- func AesEncrypt(data []byte, key []byte) ([]byte, error)
- func DecryptByAes(data string) ([]byte, error)
- func DecryptByAesWithKey(data string, pwd string) (string, error)
- func EncryptByAes(data []byte) (string, error)
- func EncryptByAesWithKey(data string, pwd string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var PwdKey = []byte("ABCDABCDABCDABCD")
PwdKey 16,24,32位字符串的话,分别对应AES-128,AES-192,AES-256 加密方法 key不能泄露
Functions ¶
func DecryptByAesWithKey ¶
DecryptByAesWithKey Aes 解密
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.