Documentation
¶
Index ¶
- func Decrypt(encrypted []byte, passphrase []byte) ([]byte, error)
- func Encrypt(plaintext []byte, passphrase []byte) ([]byte, error)
- func EncryptAndSave(filePath string, passphrase []byte, data []byte) (merr error)
- func ReadAndDecrypt(filePath string, passphrase []byte) ([]byte, error)
- func ReadPassphrase() []byte
- type CipherParams
- type EncryptionParams
- type KdfParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptAndSave ¶
func ReadPassphrase ¶
func ReadPassphrase() []byte
Types ¶
type CipherParams ¶
type CipherParams struct {
Nonce string `json:"nonce"`
}
type EncryptionParams ¶
type EncryptionParams struct {
Cipher string `json:"cipher"`
Ciphertext string `json:"ciphertext"`
CipherParams CipherParams `json:"cipher_params"`
Kdf string `json:"kdf"`
KdfParams KdfParams `json:"kdf_params"`
}
Click to show internal directories.
Click to hide internal directories.