crypto

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncorrectPassword = errors.New("incorrect password")
	ErrPasswordEmpty     = errors.New("password cannot be empty")
)

Functions

func Decrypt

func Decrypt(password, salt, value string) ([]byte, error)

func Encrypt

func Encrypt(password string, data []byte, noSalt bool) (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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