encryption

package
v0.0.0-...-1d61904 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncryptFile

func EncryptFile(filePath string, key []byte) error

EncryptFile encrypts the given file with the provided AES key

func EncryptFilesInDirectory

func EncryptFilesInDirectory(dirPath string, key []byte) error

EncryptFilesInDirectory encrypts all files in a given directory

func GenerateAndSaveAESKey

func GenerateAndSaveAESKey() ([]byte, error)

GenerateAndSaveAESKey generates a random AES-256 key and saves it to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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