Registry / crypto / sethvargo-go-password

sethvargo-go-password

JSON →
library0.3.1gogounverified

A Go library for generating random passwords with configurable character sets.

go get github.com/sethvargo/go-password
INSTALL
IMPORT
SIG · SETHVARGO-GO-PASSW
S
sethvargo-go-password
cryptogov0.3.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

password
github.com/sethvargo/go-password/password

Generate a random password of length 16 with 4 digits and 4 symbols.

package main import ( "fmt" "github.com/sethvargo/go-password/password" ) func main() { pwd, err := password.Generate(16, 4, 4, false, false) if err != nil { panic(err) } fmt.Println(pwd) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
sethvargo-go-password — go get sethvargo-go-password · libregistry