Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypter ¶
type Crypter interface {
Encrypt(ctx context.Context, value []byte) ([]byte, error)
Decrypt(ctx context.Context, value []byte) ([]byte, error)
}
func NewCrypter ¶
type SecretKey ¶
type SecretKey []byte
SecretKey should be the AES secretKey, either 16 or 32 bytes to select AES-128 or AES-256.
func SecretKeyFromFile ¶
Click to show internal directories.
Click to hide internal directories.