{"modulePath":"github.com/RedAFD/code-core","version":"v1.14.0-rc8","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package password\n\n## Functions\n\n```go\nfunc BuildComplexityError(ctx *context.Context) string\n```\nBuildComplexityError builds the error message when password complexity checks fail\n\n```go\nfunc Generate(n int) (string, error)\n```\nGenerate a random password\n\n```go\nfunc IsComplexEnough(pwd string) bool\n```\nIsComplexEnough return True if password meets complexity settings\n\n```go\nfunc IsPwned(ctx context.Context, password string) (bool, error)\n```\nIsPwned checks whether a password has been pwned NOTE: This func returns true if it encounters an error under the assumption that you ALWAYS want to check against HIBP, so not getting a response should block a password until it can be verified.\n\n```go\nfunc NewComplexity()\n```\nNewComplexity for preparation\n\n","path":"github.com/RedAFD/code-core/modules/password","name":"password","synopsis":"","isRedistributable":true}
