utils

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHashFromString

func GenerateHashFromString(str string) string

GenerateHashFromString generates a SHA-256 hash for the given string. It returns the hash in hexadecimal format.

func GenerateSaltedHash

func GenerateSaltedHash(str string, salt string) string

GenerateSaltedHash generates a SHA-256 hash with a salt for the given string. It returns the hash in hexadecimal format.

func GetRandomString

func GetRandomString(n int) string

GetRandomString returns random symbol string with specified length = n

Types

This section is empty.

Jump to

Keyboard shortcuts

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