utils

package
v0.0.166 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidHash         = errors.New("the encoded hash is not in the correct format")
	ErrIncompatibleVersion = errors.New("incompatible version of argon2")
	ErrNoRandom            = errors.New("no random source available")
)

Functions

func HashPassword

func HashPassword(password string, salt string) string

func PIDFileIsRunning

func PIDFileIsRunning(pidFile string) bool

func ProcessIsRunning

func ProcessIsRunning(pid int) bool

func RandomPassword

func RandomPassword(length int, minNumbers, minSpecial int) (string, error)

func ShellReplace

func ShellReplace(src *string, variables map[string]string)

func VerifyPassword

func VerifyPassword(password, compareHash string, pwsalt string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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