Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidCiphertextLen = errors.New("xsalsa20symmetric: ciphertext is too short") ErrCiphertextDecryption = errors.New("xsalsa20symmetric: ciphertext decryption failed") )
Functions ¶
func 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 ¶
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.