aes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts message by key with AES cipher.

func Encrypt

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

Encrypt encrypts message by key with AES cipher.

func GenerateKey

func GenerateKey() ([]byte, error)

GenerateKey returns random 32 byte key for AES-256 cipher.

Types

This section is empty.

Jump to

Keyboard shortcuts

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