Documentation ¶
Overview ¶
Package encrypted provides a simple, secure system for encrypting data symmetrically with a passphrase.
It uses scrypt derive a key from the passphrase and the NaCl secret box cipher for authenticated encryption.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt takes a JSON-encoded ciphertext object encrypted using Encrypt and tries to decrypt it using passphrase. If successful, it returns the plaintext.
func Encrypt ¶
Encrypt takes a passphrase and plaintext, and returns a JSON object containing ciphertext and the details necessary to decrypt it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.