crypto

package
v0.0.0-...-e2599ca Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts a given cipher text byte[], which was encrypted with the Encrypt function. For encryption use the encryption function.

func Encrypt

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

Encrypt encrypts a given plain text byte[] with a password. It uses Scrypt as KDF. For decryption use the Decrypt function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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