crypto

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 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 GetCipherKey

func GetCipherKey(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