Documentation ¶
Index ¶
- Constants
- func Decrypt(ciphertext, password []byte, compression bool) ([]byte, error)
- func Encrypt(data, password []byte, compression bool) ([]byte, error)
- func GenerateKeyForPassword(password []byte, keyLength uint32) (key, salt []byte, err error)
- func GenerateKeyForPasswordAndSalt(password, salt []byte, keyLength uint32) (key []byte, err error)
- func Hash(data []byte, length uint32) []byte
Constants ¶
View Source
const (
CipherTextMinLength = argon2SaltLength + chacha20poly1305.CipherTextMinLength
)
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyForPassword ¶ added in v0.3.0
GenerateKeyForPassword generates a key for a password.
func GenerateKeyForPasswordAndSalt ¶ added in v0.3.0
GenerateKeyForPasswordAndSalt generates a key for a password and salt.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.