Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AESKeyLength ¶
type AESKeyLength int
const ( // DataKeyLength provides the length for data key in bytes. // It is recommended to use an authentication key with 32 or 64 bytes. // The data key length must be either // 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256 modes. AES256KeyLength AESKeyLength = 32 AES192KeyLength AESKeyLength = 24 AES128KeyLength AESKeyLength = 16 )
type Codec ¶
Codec provides the necessary method to safely retrieve secret encryption key to encrypt/decrypt data on server side.
type LocalEncryptionHandler ¶
type LocalEncryptionHandler struct {
// contains filtered or unexported fields
}
LocalEncryptionHandler provides functionalities to load secret key from environment variables
func NewLocalEncryptionHandler ¶
func NewLocalEncryptionHandler() (*LocalEncryptionHandler, error)
NewLocalEncryptionHandler generates a new instance of LocalEncryptionHandler.
Click to show internal directories.
Click to hide internal directories.