aes

package
v0.2.92 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidNonceSize = errors.New("invalid nonce size")
	ErrInvalidContent   = errors.New("invalid content")
)

Functions

func Decrypt

func Decrypt(secretKey [32]byte, identifier []byte, content string) ([]byte, error)

func Encrypt

func Encrypt(secretKey [32]byte, identifier []byte, content []byte) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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