A simple Diceware implementation in Clojure
Generate a passphrase of Diceware words
$ java -jar diceware-0.1.0-standalone.jar <num-words>
I place the following shell script in $HOME/bin/diceware
:
#!/bin/sh
if [[ $# -lt 1 ]]; then
echo "Generates, prints, and copies a passphrase to the clipboard"
echo "usage: $(basename $0) <num-words>"
exit 0
fi
java -jar $(dirname $0)/diceware-0.1.0-SNAPSHOT-standalone.jar $1 | tee /dev/tty | pbcopy
Copyright © 2015-2016 Christian Romney
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.