gocrypto

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt Decrypt (authenticated) a series of bytes given the secret key

func Encrypt

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

Encrypt Encrypts (authenticated) a series of bytes given the secret key

func GenerateKey

func GenerateKey() ([]byte, error)

GenerateKey Generates a series of random bytes used as a secret key for encrypting/decrypting

Types

This section is empty.

Jump to

Keyboard shortcuts

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