crypto

package
v2.0.0-...-5e8ce1c Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts the given data using the given passphrase.

func Encrypt

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

Encrypt encrypts the given data with the given passphrase.

func KeyFromPassphrase

func KeyFromPassphrase(passphrase string) ([]byte, error)

KeyFromPassphrase generates 32 byte key from the passphrase

Types

This section is empty.

Jump to

Keyboard shortcuts

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