commit 7031709658b05ece4b9c1ae10e12fc64b42f24c3
parent d706da6a5b2edd141337cec64b54602244cbb1af
Author: boredpasta <boredpasta@tutanota.com>
Date: Thu, 5 Jun 2025 17:13:55 +0300
badphrase: add an additional comment about diceware and remove extraneous \'s
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/badphrase b/badphrase
@@ -1,6 +1,7 @@
#!/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
@@ -54,7 +55,7 @@ awk -v diceware="$diceware" 'BEGIN {
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
@@ -77,7 +78,7 @@ END {
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