commit - d706da6a5b2edd141337cec64b54602244cbb1af
commit + 7031709658b05ece4b9c1ae10e12fc64b42f24c3
blob - ce160b684b74819885c8cae42bb59ffffe2dcd24
blob + a768c862f223c58fd95f95890aa2ad928f55a3a6
--- badphrase
+++ badphrase
#!/bin/sh
# badphrase: generate passphrases or something lol
# diceware example: ./badphrase -dvl /tmp/diceware.wordlist.asc -w 10
+# please use it with diceware bacause all other wordlists suck ToT
# yay!
set -e
else
rec = 1
}
-{ print $rec }' "$wordlist" | \
+{ print $rec }' "$wordlist" |
# filter and shuffle the wordlist
grep -x "${re_class}\{${charmin},${charmax}\}" | sort -R | \
# test entropy against $entropymin and if that worked print first $wordnum lines
for (i = 1; i < wordnum; i++)
print line[i]
}
-}' || exit 1; } | \
+}' || exit 1; } |
# output passphrase
if [ "$copy" -eq 1 ]; then
paste -sd '' - | xclip -selection clipboard