Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEncrypted ¶
IsEncrypted() tests if target file is encrypted
Types ¶
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
Encrypter is used to encrypt/decrypt backups
func New ¶
func New(log *slog.Logger, config *EncrypterConfig) (*Encrypter, error)
New creates a new Encrypter with the given key. The key should be 32 bytes (AES-256)
func (*Encrypter) Decrypt ¶
Decrypt input file with key and store decrypted result with suffix removed if input does not end with suffix, it is assumed that the file was not encrypted.
type EncrypterConfig ¶
Click to show internal directories.
Click to hide internal directories.