An open API service indexing awesome lists of open source software.

https://github.com/pnelson/wordlist

Package wordlist implements password and passphrase generators.
https://github.com/pnelson/wordlist

Last synced: 6 months ago
JSON representation

Package wordlist implements password and passphrase generators.

Awesome Lists containing this project

README

          

# wordlist

Package wordlist implements secure password and passphrase generators.

## Usage

In the most simple use case, generate a password or passphrase with defaults.

```go
password := wordlist.NewPassword()
// 9pbeFr4VamXq

passphrase := wordlist.NewPassphrase()
// starless curse respect shelter murmuring frying
```

You can get creative with this.

Maybe you need a six digit PIN:

```go
pin := wordlist.NewPassword(wordlist.WithLength(6), wordlist.WithCharset("0123456789"))
// 742351
```

Or an unambiguous eight character discount code:

```go
code := wordlist.NewPassword(wordlist.WithLength(8), wordlist.WithCharset("ABCDEFGHKLMNPRSTWXY3456789"))
// E4PRBPPL
```

## Licenses

Package wordlist is licensed under the terms described in
[LICENSE](https://github.com/pnelson/wordlist/blob/master/LICENSE).

Passphrase generation depends on data generated from
[eff_large_wordlist.txt](https://www.eff.org/files/2016/07/18/eff_large_wordlist.txt)
found in the blog post
[Deep Dive: EFF's New Wordlists for Random Passphrases](https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases).