cryptoutil

package module
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(cipher, salt string, key *rsa.PrivateKey, fn func() hash.Hash) (string, error)

func Encrypt

func Encrypt(text, salt string, key *rsa.PublicKey, fn func() hash.Hash) (string, error)

func GenerateKey

func GenerateKey(bits int) (*rsa.PrivateKey, error)

func HashGenerate

func HashGenerate(text, salt string, fn func() hash.Hash) string

func HashVerify

func HashVerify(text, cipherText, salt string, fn func() hash.Hash) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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