Created
August 2, 2018 19:53
-
-
Save AndrolGenhald/4dca331ea5ecc36bfa6d13dc81356d65 to your computer and use it in GitHub Desktop.
Test to see how prevalent single letter syllables are in apg's pronounceable 15 character passwords, and specifically how prevalent they are at the end of the password.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apg -m 15 -x 15 -t -M l -n 100000 | cut -f 2 -d ' ' | sed 's/^.//; s/.$//' | sed 's/\(\w\{2,\}\)//g' | grep '[^-]' > /tmp/passwords | |
echo -n 'Total: '; wc -l </tmp/passwords | |
echo -n 'Single letter syllable at end: '; grep -c -- '[^-]$' /tmp/passwords | |
echo -n 'Single letter syllable anywhere else: '; grep -c -- '[^-]-\|[^-]\{2\}$' /tmp/passwords | |
echo -n 'Single letter syllable at end and no others: '; grep -c -- '^-*[^-]$' /tmp/passwords | |
rm /tmp/passwords |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment