Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCiphertextDecrypt = errors.New("ciphertext decryption failed")
Functions ¶
func DecryptSymmetric ¶
DecryptSymmetric secret must be 32 bytes long. Use something like Sha256(Bcrypt(passphrase)) The ciphertext is (secretbox.Overhead + 24) bytes longer than the plaintext.
func EncryptSymmetric ¶
EncryptSymmetric secret must be 32 bytes long. Use something like Sha256(Bcrypt(passphrase)) The ciphertext is (secretbox.Overhead + 24) bytes longer than the plaintext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.