crypt

package
v0.0.0-...-45b3839 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(passwordhash, password []byte) error

func CreateHash

func CreateHash(key string) string

func Decrypt

func Decrypt(data []byte, passphrase string) []byte

func Decrypter

func Decrypter(ciphertext []byte, key []byte) ([]byte, error)

func Encrypt

func Encrypt(data []byte, passphrase string) []byte

func Encrypter

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

func HashPassword

func HashPassword(password string) (string, error)

func Keyen

func Keyen() []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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