crypto

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAES

func DecryptAES(encrypted string, cipherKey ...string) (value string, err error)

func EncryptAES

func EncryptAES(plaintext string, cipherKey ...string) (value string, err error)

func GetCryptoKey

func GetCryptoKey(key ...string) (value string, err error)

func Hash

func Hash(data string) (value string, err error)

func Hmac

func Hmac(data string, cipherKey ...string) (value string, err error)

func RandomBytes

func RandomBytes(max int) (value []byte, err error)

func RandomInt

func RandomInt(max int) (value int, err error)

func RandomString

func RandomString(max int) (value string, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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