Documentation ¶
Index ¶
- func Decrypt(str string) (string, error)
- func DecryptByKey(str string, key []byte) (string, error)
- func Encrypt(src []byte) (string, error)
- func EncryptByKey(src []byte, key []byte) (string, error)
- func GenKey(n int) []byte
- func GetDefaultKey() []byte
- func GetKey(key string) []byte
- func Md5Encryption(s string) string
- func PKCS7Padding(cipher []byte, blockSize int) []byte
- func PKCS7UnPadding(src []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultKey ¶
func GetDefaultKey() []byte
func Md5Encryption ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.