Documentation ¶
Overview ¶
Package crypter provides convienence wrapping around the nacl/secretbox package.
Index ¶
Constants ¶
View Source
const ( KeySize = 32 // 24 bytes for nonce + minimum secretbox length Overhead = 24 + secretbox.Overhead )
Sizes and minimums set by secretbox
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
A Box is generated from a Key, and can encrypt & decrypt "small" messages, using nacl/secretbox.
func NewBox ¶
NewBox creates a new crypter box from the given key, failing only if the key wasn't created from NewKey.
Click to show internal directories.
Click to hide internal directories.