Documentation ¶
Index ¶
- func Decrypt(alg AesAlg, key []byte, encryptedData []byte) ([]byte, error)
- func Encrypt(alg AesAlg, key []byte, plainData []byte) ([]byte, error)
- func GenerateRandomIV(b []byte) error
- func PKCS5Padding(plainText []byte) []byte
- func PKCS5UnPadding(src []byte) ([]byte, error)
- type AES
- type AESDataType
- type AESFunc
- type AesAlg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomIV ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
Types ¶
type AES ¶
type AES[T interface{ *struct{} | any }, A cipher.Block] struct { // contains filtered or unexported fields }
func AESCipherJSON ¶ added in v1.4.8
func (AES[T, A]) GormDataType ¶ added in v1.4.9
type AESDataType ¶ added in v1.4.9
type AESDataType struct{}
func (AESDataType) GormDBDataType ¶ added in v1.4.9
Click to show internal directories.
Click to hide internal directories.