Documentation ¶
Overview ¶
Package encryption adds a layer to store data on disk encrypted in case a filesystem is compromised. Under the hood we use "golang.org/x/crypto/nacl/secretbox" for encryption. Secretbox uses XSalsa20 and Poly1305 to encrypt an array of bytes with secret-key cryptography.
Index ¶
Constants ¶
View Source
const ( // KeyLength represents the byte size of the key. KeyLength = 32 // NonceSize represents the byte size of nonce for XSalsa20 cipher used for // encryption. NonceSize = 24 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.