crypto

package
v0.0.0-...-4f6dbb3 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(data []byte, password string) ([]byte, error)

DecryptData decrypts data using AES-256-GCM with the given password.

func EncryptData

func EncryptData(data []byte, password string) ([]byte, error)

EncryptData encrypts data using AES-256-GCM with the given password.

func GenerateKey

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

GenerateKey derives a key from the password using PBKDF2.

Types

This section is empty.

Jump to

Keyboard shortcuts

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