Documentation ¶
Overview ¶
Package secretkeys implements the encryption logic for secretKeys feature
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt calculates AES encrypted value for given text with configured master encryption key Due to random nonce the function is not idempotent
func GenerateEncryptionKey ¶
func GenerateEncryptionKey() string
GenerateEncryptionKey generates 32-byte encryption key For AES encryption 32-byte key selects AES-256 mode
func ValidateEncryptionKey ¶
ValidateEncryptionKey check if encryption key has size of 16, 24 or 32 bytes Otherwise it cannot be used as encryption key for AES
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.