package
Version:
v0.0.0-...-811459a
Opens a new window with list of versions in this module.
Published: Mar 12, 2017
License: ISC
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package nacl provides encryption by salting a key with a pad
Decrypt salts a key using pad and decrypts a message
Encrypt salts a key using pad and encrypts a message
func RandomPadEncrypt(key, message []byte) (pad, out []byte, err error)
RandomPadEncrypt generates a random pad and returns the encrypted data, the pad, and an error if any
type Cipher struct {
Pad []byte
}
Cipher to implmement the BlockCipher interface
Decrypt implements the BlockCipher interface
Encrypt implements the BlockCipher interface
KeySize returns the NaCL keysize
Source Files
¶
Click to show internal directories.
Click to hide internal directories.