util

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakePassword

func MakePassword(password string) (string, string, string)

MakePassword creates a random password if the input password is "". It will return the input/generated password, the salt, and the hashed version of the password.

func PasswordMatch

func PasswordMatch(salt, hashedPassword, clearTextPassword string) bool

PasswordMatch verifies if the input cleartext password matches the salt and hashed password.

Types

This section is empty.

Jump to

Keyboard shortcuts

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