harbor
A diceware-like password generator for your command prompt.
Disclaimer: This is a hobbyist project, I do not guarantee the passwords generated are crypto-secure or anything like that.
Installation
Option 1, Download A Release
- Head over to the releases page.
- Download a zip file.
- Extract it, then move the binary file into a directory on your PATH. (I use ~/bin/harbor)
If you downloaded the harbor_jar.zip, extract it and move the JAR into a directory on your PATH. Then add the following line to the .bashrc file in your HOME directory:harbor(){ java -jar PATH_TO_JAR_HERE "$@"; }
- Set sail, you’re done!
Option 2, Generate A Binary File
- Generate a binary file using the leiningen
lein bin
command (requires lein-bin). - Move the binary file into a directory on your PATH.
- Cast off, you’re done!
Option 3, Generate A JAR
- Generate a JAR using the Leiningen
lein uberjar
command. - Move the jar into a directory on your PATH
- Add the following line to the .bashrc file in your HOME directory:
harbor(){ java -jar PATH_TO_JAR_HERE "$@"; }
- Weigh anchor, you’re done!
Usage
The harbor
command takes a single argument, the number of words you want to generate.
Using harbor 2
will generate a 2 word passphrase like moore roar.
If no argument is specified, harbor will default to a 5 word passphrase.
Options
-
--help
Help information -
--version
Version information -
--length LENGTH
Length of passphrase sequence -
--repeat COUNT
Generates COUNT number of sequences -
--special COUNT
Inserts a COUNT number of special characters into a sequence -
--number COUNT
Inserts a given number of numeric characters into a sequence -
--capital COUNT
Capitalizes a given number of characters in the generated sequence -
--wait COUNT
Specifies the number of seconds a generated password will remain in the clipboard
Have an idea for an option? File an issue!
License
MIT License