pwgen

package
v0.0.0-...-49a8380 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// CharsetAlpha defines a character set containing only letters.
	CharsetAlpha = []byte("abcdefghijklmnopqrstuvwxyz")
	// CharsetAlphaNum defines a character set containing letters and numbers.
	CharsetAlphaNum = []byte("abcdefghijklmnopqrstuvwxyz0123456789")
	// CharsetAlphaNumSpecial defines a character set containing letters,
	// numbers, and special characters.
	CharsetAlphaNumSpecial = []byte("abcdefghijklmnopqrstuvwxyz0123456789{}_*()&^%$@!\\<>;'|[]=+-`~,.?")
)

Functions

func GeneratePassphrase

func GeneratePassphrase(charset []byte, length uint) (string, error)

GeneratePassphrase creates a new random passphrase with the length defined by `length` using the characters defined by charset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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