encryption

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2025 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package encryption provides functions for encrypting and decrypting data using AES-GCM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key, encryptedData, info []byte) ([]byte, error)

Decrypt decrypts the given data using the master key and the given info.

func DeriveKey

func DeriveKey(key, info []byte) ([]byte, error)

DeriveKey derives a key from the master key and the given info.

func Encrypt

func Encrypt(key, data, info []byte) ([]byte, error)

Encrypt encrypts the given data using the master key and the given info.

func EncryptD

func EncryptD(key, data, info []byte) ([]byte, error)

EncryptD encrypts the given data using the master key and the given info. Deterministic encryption. WARNING: This function produces the same output for the same input. Only use it when deterministic encryption is specifically required. For general encryption needs, use Encrypt() instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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