lib

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2025 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompressDirectory

func CompressDirectory(src string, dst string) error

CompressDirectory compresses a given directory into a .tar.zst file

func DecompressDirectory

func DecompressDirectory(src string, dst string) error

DecompressDirectory decompresses a .tar.zst file into the specified directory

func DecryptFile

func DecryptFile(inputPath, outputPath, key string) error

DecryptFile decrypts a file using AES-256 in CFB mode

func DeriveKey

func DeriveKey(password string, salt []byte) []byte

DeriveKey generates a 32-byte key from a password using PBKDF2

func EncryptFile

func EncryptFile(inputPath, outputPath, key string) error

EncryptFile encrypts a file using AES-256 in CFB mode

Types

This section is empty.

Jump to

Keyboard shortcuts

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