encrypt

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext []byte) ([]byte, error)

Decrypt decrypts ciphertext to plaintext

func Encrypt

func Encrypt(plaintext []byte) ([]byte, error)

Encrypt encrypts plaintext to ciphertext

func SetSecretKey

func SetSecretKey(key []byte) error

SetSecretKey sets the secret key which used to encrypt

Types

This section is empty.

Jump to

Keyboard shortcuts

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