Documentation
¶
Index ¶
- Variables
- func DecodeAESCBC(key []byte, data string) ([]byte, error)
- func DecodeAESGCM(key, iv, aad, ct []byte) ([]byte, error)
- func EncodeAESCBC(key []byte, data string, encType EncryptType) (string, error)
- func Pkcs7Padding(data []byte, blockSize int) ([]byte, error)
- func Pkcs7Unpadding(data []byte, blockSize int) ([]byte, error)
- type EncryptType
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DecodeAESGCM ¶
func EncodeAESCBC ¶
func EncodeAESCBC(key []byte, data string, encType EncryptType) (string, error)
Types ¶
type EncryptType ¶
type EncryptType string
const ( EncryptTypeHex EncryptType = "hex" EncryptTypeBase64 EncryptType = "base64" )
Click to show internal directories.
Click to hide internal directories.