Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encrypter ¶
type Encrypter interface {
// Encrypt 加密数据
Encrypt(data []byte) ([]byte, error)
// Decrypt 解密数据
Decrypt(data []byte) ([]byte, error)
}
Encrypter 是配置加密器接口
func NewAESEncrypter ¶
NewAESEncrypter 创建一个基于AES的加密器
Click to show internal directories.
Click to hide internal directories.