3 releases

0.1.2 Oct 3, 2024
0.1.1 Mar 22, 2020
0.1.0 Mar 22, 2020

#392 in Cryptography

GPL-3.0 license

40KB
169 lines

hrp

License: GPL v3 Crates.io

hrp generates Human-Readable Passwords

hrp uses libsodium (through sodiumoxide) for cryptographically-secure psudeorandom number generation (CSPRNG).

hrp selects words from a list of the 10,000 most common medium-length (5-8 characters) English words, as determined by the Google Trillion Word Corpus.

hrp's default password format (WWWDDDD) results in 9,997,000,200,000,000 possible passwords.

Usage

hrp 0.1.2
Ian Brault <ian@brault.dev>

hrp generates human-readable passwords.

USAGE: hrp [OPTIONS] [FORMAT]

ARGS:
    <FORMAT>    Specifies the format of the generated password. Can be provided
                as a single string or multiple strings. Defaults to WWWDDDD.
                Acceptable format characters are (case-insensitive):
                    W - word
                    D - digit

OPTIONS:
    -h, --help       Prints help information
    -v, --version    Prints version information

Installation

hrp can be installed with cargo

  • Note that the binary file may be larger than expected, as it contains debug symbols. To remove these, run strip on the binary
$ cargo install hrp

Building

hrp can also be built from source

$ git clone https://github.com/ianbrault/hrp
$ cd hrp
$ cargo build --release
$ ./target/release/hrp --version
hrp 0.1.2

License

Licensed under GNU General Public License, Version 3.0
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Dependencies

~17–27MB
~121K SLoC