Skip to content

Instantly share code, notes, and snippets.

@AndrolGenhald
Created August 2, 2018 19:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrolGenhald/4dca331ea5ecc36bfa6d13dc81356d65 to your computer and use it in GitHub Desktop.
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.
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