Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSymmetric

func DecryptSymmetric(ciphertext []byte, secret []byte) (plaintext []byte, err error)

    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

    func EncryptSymmetric(plaintext []byte, secret []byte) (ciphertext []byte)

      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.

      Source Files