Documentation ¶
Index ¶
- func CreateArchive(archiveFile string, sourcePath string, enc *security.Encryption) error
- func ExtractArchive(archiveFile string, extractToPath string, enc *security.Encryption) error
- func ListArchive(archiveFile string, enc *security.Encryption) error
- func VerifyArchive(archiveFile string, enc *security.Encryption) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateArchive ¶
func CreateArchive( archiveFile string, sourcePath string, enc *security.Encryption, ) error
CreateArchive creates an archive in 'archiveFile', by compressing and encrypting all files in 'sourcePath' using 'enc' for encryption.
func ExtractArchive ¶
func ExtractArchive( archiveFile string, extractToPath string, enc *security.Encryption, ) error
ExtractArchive extracts all files in the specified 'archiveFile' to the folder specified by 'extractToPath', using 'enc' for decryption.
func ListArchive ¶
func ListArchive(archiveFile string, enc *security.Encryption) error
ListArchive lists all files in 'archiveFile' using 'enc' to decrypt file metadata (path, size, etc.)
func VerifyArchive ¶
func VerifyArchive(archiveFile string, enc *security.Encryption) error
VerifyArchive verifies the integrity of every file in the specified archive file by reading each file and checking its SHA-512 hash. It uses 'enc' to for decryption.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.