Documentation ¶
Index ¶
Constants ¶
View Source
const ( NumIterations = 10000 SaltLengthBytes = 8 PassphraseLength = 16 KeyLength = 32 // IVKeyLength initialization vector in bytes // http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf // See Section 8.2 & Section 8.2.1, 12 bytes = 96 bits will use // deterministic methods to derive a key for passphrase. IVKeyLength = 12 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
func NewMessage ¶
func (*Message) RandomPassphrase ¶
RandomPassphrase godoc Generate random passphrase to encrypt generated data Returns first 16 characters from random passphrase.
Click to show internal directories.
Click to hide internal directories.