Documentation
¶
Index ¶
- func Decrypt(alg AesAlg, key []byte, encryptedData []byte) ([]byte, error)
- func Decrypted(alg AesAlg, key string, encryptedData []byte) (string, error)
- func Encrypt(alg AesAlg, key []byte, plainData []byte) ([]byte, error)
- func Encrypted(alg AesAlg, key string, plainData string) ([]byte, error)
- func GenerateRandomIV(b []byte) error
- func PKCS5Padding(plainText []byte) []byte
- func PKCS5UnPadding(src []byte) ([]byte, error)
- type AES
- type AESFunc
- type AesAlg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomIV ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.