crypt

package
v8.6.12 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt using the pre-generated key

func Encrypt

func Encrypt(plaintext []byte, key []byte) (encrypted []byte, err error)

Encrypt will encrypt using the pre-generated key

func New

func New(passphrase []byte, usersalt []byte) (key []byte, salt []byte, err error)

New generates a new key based on a passphrase and salt

Types

This section is empty.

Jump to

Keyboard shortcuts

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