commit 7031709658b05ece4b9c1ae10e12fc64b42f24c3 from: boredpasta date: Thu Jun 5 14:15:29 2025 UTC badphrase: add an additional comment about diceware and remove extraneous \'s commit - d706da6a5b2edd141337cec64b54602244cbb1af commit + 7031709658b05ece4b9c1ae10e12fc64b42f24c3 blob - ce160b684b74819885c8cae42bb59ffffe2dcd24 blob + a768c862f223c58fd95f95890aa2ad928f55a3a6 --- badphrase +++ 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