Documentation ¶
Index ¶
- func AESDecrypt(cryted string, key string) string
- func AESEncrypt(orig string, key string) string
- func Base64Decrypt(str string) (string, error)
- func Base64Encrypt(str string) string
- func DESDecrypt(data string, key []byte) string
- func DESEncrypt(origData, key []byte) string
- func Md5Fun01(str string) string
- func Md5Fun02(str string) string
- func Md5Fun03(str string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PKCS7Padding(ciphertext []byte, blocksize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RSADecrypt(ciphertext []byte) ([]byte, error)
- func RSAEncrypt(origData []byte) ([]byte, error)
- func Sha1(str string) string
- func Sha256(str string) string
- func Sha512(str string) string
- func TripleDESDecrypt(crypted, key []byte) ([]byte, error)
- func TripleDESEncrypt(origData, key []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PKCS7Padding ¶
补码 AES加密数据块分组长度必须为128bit(byte[16]),密钥长度可以是128bit(byte[16])、192bit(byte[24])、256bit(byte[32])中的任意一个。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.