encryption

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

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

Go to latest
Published: May 20, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts the given data with a given 32 byte key.

func Encrypt

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

Encrypt encrypts the given data with a given 32 byte key.

func GenerateKey

func GenerateKey() ([]byte, error)

GenerateKey generates a key for use with AES GCM.

Types

This section is empty.

Jump to

Keyboard shortcuts

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