passwd

package
v0.18.6 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PASSWORD_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#%^&*()_-+=<>?/|"
	BCRYPT_COST    = 10
)

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword() (string, error)

GeneratePassword generates a random password

func GenerateRandString added in v0.18.6

func GenerateRandString(length int, charsAllowed string) (string, error)

GenerateRandString generates a random string of the given length using crypto/rand, with each character drawn from charsAllowed

func GenerateRandomKey added in v0.15.3

func GenerateRandomKey(length int) ([]byte, error)

func GenerateSessionNonce added in v0.15.3

func GenerateSessionNonce() (string, string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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