archive

package
v0.0.0-...-efd161f Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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