Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveKey ¶
DeriveKey derives a key as PBKDF2 from the specified secret string. HMAC is SHA 256, salt a random 16 bytes array, 2048 iterations. The returned key length is 32 bytes
func NewEncryptionKey ¶
NewEncryptionKey generates a random 256-bit key for Encrypt() and Decrypt(). It panics if the source of randomness fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.