crypt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Crypt package can do basic encryption/decryption with AES and uses GCM

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(data []byte, key []byte) ([]byte, error)

DecryptData decrypts the data with the key

func EncryptData

func EncryptData(data []byte, key []byte) ([]byte, error)

EncryptData encrypts the data with the specified key

func GenerateKey

func GenerateKey(passphrase []byte, salt []byte, rounds int) []byte

GenerateKey generates the encryption key from the passphrase and salt

func GenerateSalt

func GenerateSalt() ([]byte, error)

GenerateSalt generates the salt for the encryption

Types

This section is empty.

Jump to

Keyboard shortcuts

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