nacl

package
v2.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2016 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ct, key []byte) []byte

Decrypt basic wrapper around secretbox which will decrypt a box using ct which is comprised of a nonce followed by the box.

func Encrypt

func Encrypt(plaintext, key []byte) []byte

Encrypt basic wrapper around secretbox which will encrypt a plain text and return a message comprised of the nonce followed by the encrypted box.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL