encryption

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptData

func DecryptData(encryptedData, key []byte) (string, error)

DecryptData Decrypt data using AES-GCM

func EncryptData

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

EncryptData Encrypt data using AES-GCM

func LoadKey

func LoadKey(filePath string) ([]byte, error)

LoadKey Load or create an encryption key

Types

This section is empty.

Jump to

Keyboard shortcuts

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