Documentation ¶
Index ¶
- Constants
- type AESCrypto
- func (c *AESCrypto) Decrypt(ciphertext string, key []byte) (string, error)
- func (h *AESCrypto) Destroy() error
- func (c *AESCrypto) Encrypt(plaintext string, key []byte) (string, error)
- func (c *AESCrypto) GenerateKey() ([]byte, error)
- func (h *AESCrypto) Initialize(c *plugin.ConfigEntry) error
- func (h *AESCrypto) Name() string
Constants ¶
View Source
const (
// PluginName plugin name
PluginName = "AES"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESCrypto ¶
type AESCrypto struct { }
AESCrypto AES crypto
func (*AESCrypto) GenerateKey ¶
GenerateKey generate key
func (*AESCrypto) Initialize ¶
func (h *AESCrypto) Initialize(c *plugin.ConfigEntry) error
Initialize 插件初始化
Click to show internal directories.
Click to hide internal directories.