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 bincommand (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 uberjarcommand. - 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
-
--helpHelp information -
--versionVersion information -
--length LENGTHLength of passphrase sequence -
--repeat COUNTGenerates COUNT number of sequences -
--special COUNTInserts a COUNT number of special characters into a sequence -
--number COUNTInserts a given number of numeric characters into a sequence -
--capital COUNTCapitalizes a given number of characters in the generated sequence -
--wait COUNTSpecifies the number of seconds a generated password will remain in the clipboard
Have an idea for an option? File an issue!
License
MIT License