cryptoext

package
v0.0.0-...-5fcd299 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidKeySize = errors.New("invalid key size")
	ErrInvalidCipher    = errors.New("invalid cipher")
)

Functions

func Decrypt

func Decrypt(key string, data []byte) ([]byte, error)

func Encrypt

func Encrypt(key string, data []byte) ([]byte, error)

func GeneratePIN

func GeneratePIN(length int) (string, error)

func GenerateRandomString

func GenerateRandomString(size int) (string, error)

func Hash

func Hash(data []byte) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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