Documentation ¶
Index ¶
- func Decrypt(ciphertext []byte, key *[32]byte) ([]byte, error)
- func DecryptFile(encFile, decrFile string, key *[32]byte) error
- func Encrypt(text []byte, key *[32]byte) ([]byte, error)
- func EncryptFile(filename, destfile string, key *[32]byte) error
- func NewEncryptionKey(password, salt []byte) (*[32]byte, error)
- func NewRandomEncryptionKey() *[32]byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptFile ¶
func EncryptFile ¶
func NewEncryptionKey ¶
func NewRandomEncryptionKey ¶
func NewRandomEncryptionKey() *[32]byte
NewRandomEncryptionKey generates a random 256-bit key for Encrypt() and Decrypt() functions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.