Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v1.23.0
type Config struct {
// Default version of the cryptographic algorithm. Useful for testing older historical implementations. Leave empty to use the most recent version.
//
// Supported values:
// - "": use latest version of the cryptographic algorithm (recommended).
// - "v2": use v2 version of the cryptographic algorithm.
// - "v1": use v1 version of the cryptographic algorithm.
//
// See cipher_spec.go for all versions
Version string
// Contains the password used to derive encryption key
Password string //nolint:gosec
// Contains the salt for increasing password entropy
PasswordSalt string
}
Config encapsulates configuration for DBCipher.
type DBCipher ¶ added in v1.23.0
type DBCipher struct {
// contains filtered or unexported fields
}
DBCipher is cipher designed to perform validated encryption and decryption on database values.
func NewDBCipher ¶ added in v1.23.0
NewDBCipher creates a new instance of DBCipher based on the provided Config.
Click to show internal directories.
Click to hide internal directories.
