crypt

package
v0.0.0-...-9633867 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckEncryption

func CheckEncryption(source string) (bool, error)

CheckEncryption peeks into the backup to see if it encrypted if it is, then we need to have the CRYPTO_PASSWORD env var or we cant restore it at all

func DecryptFile

func DecryptFile(sourceFile string, passphrase string) error

DecryptFile takes a file input and decrypts it with a passphrase

func EncryptFile

func EncryptFile(sourceFile string, passphrase string) error

EncryptFile takes a file input and encrypts it with a passphrase

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL