Versions in this module Expand all Collapse all v1 v1.0.1 Aug 18, 2021 v1.0.0 Aug 18, 2021 Changes in this version + func AESDecrypt(ciphertext, key []byte) ([]byte, error) + func AESEncrypt(plantText, key []byte) ([]byte, error) + func GetMD5(str string) (md5str string) + func HmacMD5(secret string, data []byte) []byte + func HmacSHA1(secret string, data []byte) []byte + func Keccak256(data ...[]byte) []byte + func MD5(data []byte) []byte + func PKCS7Padding(ciphertext []byte, blockSize int) []byte + func PKCS7UnPadding(plantText []byte, blockSize int) []byte + func SHA1(data []byte) []byte + func SHA256(data []byte) []byte + type AESProtocal interface + AES func(key string) (string, error) + UnAES func(aesBase64string string, key string) error