Documentation ¶
Index ¶
- func AesCBCDncrypt(encryptData, key []byte) ([]byte, error)
- func AesCBCEncrypt(rawData, key []byte) ([]byte, error)
- func Dncrypt(rawData string, key []byte) (string, error)
- func Encrypt(rawData, key []byte) (string, error)
- func Md5(str string) string
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func Sha1(str string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCEncrypt ¶
aes加密,填充祕鑰key的16位,24,32分別對應AES-128, AES-192, or AES-256.
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.