Documentation
¶
Index ¶
- func CreateKey(password string, salt []byte) [32]byte
- func CreateKeySalt(password string) ([32]byte, [128]byte, error)
- func DecryptFile(ciphertext []byte, key [32]byte) ([]byte, error)
- func EncryptFileData(data []byte, key [32]byte) ([]byte, error)
- func ReadEncryptedFile(directory, filename string, key [32]byte) ([]byte, error)
- type FileStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateKeySalt ¶ added in v0.3.15
CreateKeySalt derives a key and salt from a password: returns key, salt, err
func DecryptFile ¶ added in v0.3.15
DecryptFile decrypts the passed ciphertext with the supplied key.
func EncryptFileData ¶ added in v0.3.15
EncryptFileData encrypts the data with the supplied key
Types ¶
Click to show internal directories.
Click to hide internal directories.