crypto

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyPassphrase = errors.New("passphrase cannot be empty")
View Source
var ErrMsgDecryptingValue = "error decrypting data (incorrect passphrase?)"

Functions

func Decrypt

func Decrypt(passphrase string, data string) ([]byte, error)

func Encrypt

func Encrypt(passphrase string, plaintext []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