Documentation ¶
Index ¶
- Constants
- Variables
- func CBCDecrypt(key []byte, ciphertext []byte) ([]byte, error)
- func CBCEncrypt(key []byte, plaintext []byte) ([]byte, error)
- func CombinePasswordAndKey(pass, key []byte) ([]byte, error)
- func GCMDecrypt(key []byte, ciphertext []byte) ([]byte, error)
- func GCMEncrypt(key []byte, plaintext []byte) ([]byte, error)
- func GeneratePBKDF2Key(password, salt []byte) []byte
- func GeneratePassword(length int, numbers, specials bool) string
Constants ¶
View Source
const ( PBKDF2Rounds = 4096 KeyLength = 32 )
Variables ¶
View Source
var ErrAuthenticationFailed = errors.New("cipher: message authentication failed")
Functions ¶
func CombinePasswordAndKey ¶
func GeneratePBKDF2Key ¶
func GeneratePassword ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.