Documentation ¶
Index ¶
- Variables
- func Decrypt(crypted, key []byte) ([]byte, error)
- func DecryptFromBase64(data string, key []byte) ([]byte, error)
- func Encrypt(origData, key []byte) ([]byte, error)
- func EncryptToBase64(origData, key []byte) (string, error)
- func PKCS5Padding(plaintext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Define aes secret key 2^5 SecretKey = []byte("2985BCFDB5FE43129843DB59825F8647") )
Functions ¶
func EncryptToBase64 ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.