hzpwd

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PasswordPower = 1
)

Functions

func EncodePassword

func EncodePassword(s string) string

func PasswordMD5

func PasswordMD5(password string, salt ...string) string

PasswordMD5 encrypts password using MD5 algorithms. Salt is for confusion

func SetPasswordPower

func SetPasswordPower(power int)

func Sha256ByString

func Sha256ByString(s string) string

func Sha256ByStringWithCount

func Sha256ByStringWithCount(s string, c int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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