crypto

package
v0.5.12 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadCipherText = errors.New("bad ciphertext")
)

Functions

func Decrypt

func Decrypt(key []byte, encoded string) (decrypted []byte, err error)

func Encrypt

func Encrypt(key, unencrypted []byte) (encoded string, err error)

func NewKey256

func NewKey256() (key []byte)

func RandomValue

func RandomValue(numBytes int) (value string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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