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

https://github.com/dbrgn/xkcdpass-rs

Generate XKCD style passwords.
https://github.com/dbrgn/xkcdpass-rs

Last synced: 10 months ago
JSON representation

Generate XKCD style passwords.

Awesome Lists containing this project

README

          

# xkcdpass - XKCD Style Password Generator

[![Crates.io][crates-io-badge]][crates-io]
[![CircleCI][circle-ci-badge]][circle-ci]

Generate passwords made up by four (or any other number of) random words from a
word list (7776 common English words).

With the default of 4 words, there are 7776^4 = 3656158440062976 possible word
combinations, which corresponds to about 51 bits of entropy. When using 6
words, the entropy is increased to about 77 bit.

https://xkcd.com/936/

## Installing

Install via cargo...

$ cargo install xkcdpass

...or build locally.

$ cargo build --release

## Usage

$ xkcdpass
pleased excellence space strain
$ xkcdpass -c 6
simplified far shade warranty carmen messages

## Word List

By default, this program uses the "Long" wordlist by EFF:
https://www.eff.org/deeplinks/2016/07/new-wordlists-random-passphrases

Alternatively, you can provide your own wordlist(s):

$ xkcdpass -w wordlist1.txt -w wordlist2.txt

When providing multiple wordlists, they are concatenated.

## License

Licensed under either of

* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([LICENSE-MIT](LICENSE-MIT) or
http://opensource.org/licenses/MIT) at your option.

[crates-io]: https://crates.io/crates/xkcdpass
[crates-io-badge]: https://img.shields.io/crates/v/xkcdpass.svg
[circle-ci]: https://circleci.com/gh/dbrgn/xkcdpass-rs/tree/master
[circle-ci-badge]: https://circleci.com/gh/dbrgn/xkcdpass-rs/tree/master.svg?style=shield