Help us shape the future of Go! Take the 2026 Go Developer Survey

crypto

package
v3.3.19 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 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