Documentation ¶
Overview ¶
Package nacl implements encryption and decryption using anonymous sealed boxes, depending on golang.org/x/crypto/nacl/box.
Index ¶
Constants ¶
View Source
const KeyLength = 32
Variables ¶
View Source
var Anonymous crypto.Cipher = (*privateKey)(nil)
Anonymous is a convenience to encrypt anonymous sealed boxes for an explicit recipient public key, without having a private key at all.
Functions ¶
func DecodePrivate ¶
DecodePrivate decodes a private key from a hexadecimal string.
Since this package supports encryption and decryption, we return a crypto.Cipher instead of just a crypto.PrivateKey.
func DecodePublic ¶
DecodePublic decodes a public key from a hexadecimal string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.