Documentation ¶ Index ¶ Variables func AesDecrypt2(cryted string, key string) (string, error) func AesEncrypt2(orig string, key string) (string, error) func PKCS7Padding(ciphertext []byte, blocksize int) []byte func PKCS7UnPadding(origData []byte) []byte Constants ¶ This section is empty. Variables ¶ View Source var DefaultKey string = "0987654321!@#$%^&*()tyKfqngDfg,." Functions ¶ func AesDecrypt2 ¶ func AesDecrypt2(cryted string, key string) (string, error) func AesEncrypt2 ¶ func AesEncrypt2(orig string, key string) (string, error) 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 crypt.go Click to show internal directories. Click to hide internal directories.