Documentation ¶ Index ¶ func AesDecrypt(encrypted string, key string) (string, error) func AesEncrypt(orig string, key string) (string, error) func DecryptAesEcb(data, key []byte) ([]byte, error) func PKCS7Padding(ciphertext []byte, blockSize int) []byte func PKCS7UnPadding(origData []byte) []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AesDecrypt ¶ func AesDecrypt(encrypted string, key string) (string, error) AesDecrypt aes解密 func AesEncrypt ¶ func AesEncrypt(orig string, key string) (string, error) AesEncrypt 加密 func DecryptAesEcb ¶ func DecryptAesEcb(data, key []byte) ([]byte, error) DecryptAesEcb aes ecb 解密 func PKCS7Padding ¶ func PKCS7Padding(ciphertext []byte, blockSize int) []byte PKCS7Padding 补码 func PKCS7UnPadding ¶ func PKCS7UnPadding(origData []byte) []byte PKCS7UnPadding 去码 Types ¶ This section is empty. Source Files ¶ View all Source files encrypt.go Click to show internal directories. Click to hide internal directories.