Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt takes an encrypted file, decrypts its content using AES-256 algorithm, and writes the decrypted content to an output file or stdout. If inplace is true, the original file is overwritten with the decrypted content.
func Encrypt ¶
Encrypt encrypts the specified file using AES-256-GCM encryption. It takes input file, output file (optional), key file, key string, and an inplace flag. If inplace is true, it overwrites the input file with the encrypted content. If output is specified, it writes the encrypted content to the output file.
Types ¶
type KeyManager ¶
type KeyManager interface {
// contains filtered or unexported methods
}
KeyManager is an interface for managing encryption keys.
Click to show internal directories.
Click to hide internal directories.