Documentation
¶
Overview ¶
Package secure exports secure encryption and decryption functions. It uses AES cyphers and HMAC from go libraries, and defines and uses PKCS#7 padding. Secure keys are created from a password with PBKDF2 and HKDF from the go crypto sub-repository. Some logic is based on go code examples from golang.org
Cryptography is difficult to implement correctly. My main body of knowledge came from the coursera.org class Cryptography I taught at Stanford by Dan Boneh. This course emphasizes correctly applying cryptographic principals. As of 2014 it is still being taught periodically and I highly recommend it. Any errors or misunderstandings, of course, are solely my responsibility.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Encrypt ¶
Encrypt performs authenticated encryption using master key derivation, key expansion and Encrypt-then-MAC.
func IsAuthError ¶
IsAuthError checks whether parameter is an Authentication Error.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
The unwrap command decrypts data that has been encrypted with wrap secure encryption.
|
The unwrap command decrypts data that has been encrypted with wrap secure encryption. |
The wrap command performs secure encryption with password using the secure package.
|
The wrap command performs secure encryption with password using the secure package. |