crypto

package
v0.0.0-...-3543da7 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: GPL-3.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, key []byte) ([]byte, error)

func DecryptWithPassword

func DecryptWithPassword(ciphertext []byte, password string, salt []byte) (string, error)

func DeriveKey

func DeriveKey(password string, salt []byte) []byte

func Encrypt

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

func EncryptWithPassword

func EncryptWithPassword(plaintext string, password string, salt []byte) ([]byte, error)

func GenerateSalt

func GenerateSalt() ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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