Documentation ¶
Index ¶
- Constants
- func ASBytes(src []byte, as bool) []byte
- func DecryptAES(src, key []byte) ([]byte, error)
- func DesCBCDecrypt(encryptData, key []byte) ([]byte, error)
- func DesCBCEncrypt(plainText, key []byte) ([]byte, error)
- func EncryptAES(src, key []byte) ([]byte, error)
- func MD5(src string) string
- func RandString(length int) string
Constants ¶
View Source
const DefaultKey = "=+?TxGukPbyw.&.P"
Variables ¶
This section is empty.
Functions ¶
func DecryptAES ¶
func DesCBCDecrypt ¶
DesCBCDecrypt 输入密文,得到明文
func DesCBCEncrypt ¶
func EncryptAES ¶
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.