helpers

package
v0.0.0-...-51c5060 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: CC0-1.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(msg, key string, iv []byte) (string, error)

Decrypt will decrypt the given encrypted string.

func Encrypt

func Encrypt(msg, key string, iv []byte) (string, error)

Encrypt will encrypt the given plain text string.

func GenerateSalt

func GenerateSalt(size int) string

GenerateSalt will generate a salt with the given size.

func RandStr

func RandStr(strSize int) string

RandStr will generate a random alphanumeric string of the specified length.

func RandStrNoCaps

func RandStrNoCaps(strSize int) string

RandStrNoCaps will generate a random alphanumeric string of the specified length.

func StringWithCharset

func StringWithCharset(length int, charset string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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