Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypt ¶
type Crypt interface { Encrypt(src []byte) []byte Decrypt(src []byte) []byte EncryptBase64(plainText string) string DecryptBase64(base64String string) (string, error) }
Crypt interface
func NewCryptWithEnv ¶
NewCryptWithEnv returns Crypt interface created by environment variable.
Click to show internal directories.
Click to hide internal directories.