Password Security
Security
● Password security = difficulty to guess
● More possible passwords = harder to guess
● Longer and more complex passwords = better
passwords
Entropy
Informational Entropy (bits): log2
(n)
n = combinations for password
n = a^b
a = valid characters
b = # of characters
Entropy = log2
(ab
)
Traditional Passwords
Password: eE7zqv@
Valid Characters (a) = 96
# Characters (b) = 8
Entropy = log2
(968
) = 52.68
Traditional Benefits
● High per-character entropy
– Permits small passwords that are still secure
● Good in situations where password length is
limited
Traditional Harms
● Hard to remember
● Bad User Habits
– Post-its
– Forms of sharing (e.g. email)
● Low-overall entropy
Proper Passwords
Dictionary Based
Example: muddle refresh laureate sanitation
comfort mimic
Actual Password:
muddlerefreshlaureatesanitationcomfortmimic
Phrase Passwords (Worst-Case)
Password: copper bleakness foul curious disciple
flesh
Valid “Characters” (Words) (a) = 2048
# Words (b) = 6
Entropy = log2
(20486
) = 66.00
Note on Worst-Case Phrase
● Entropy of Dictionary Attack relies on word set
picked from (and assuming hacker knows/uses
this dictionary with no additional words)
● Larger word set = more secure
● 2200 formal noun generators exist
● 7776 common word algorithm exists
– Log2
(77766
) = 77.55
Phrase Benefits
● Overall high entropy
● Easy to remember
● Prevents bad user habits
Phrase Harms
● Very long length may result in high user error
● Low entropy per-letter but see next slide
Phrase Lowercase Letters
Password: copper bleakness foul curious disciple
flesh
Valid Characters (a) = 26
# Characters (b) = 40
Entropy = log2
(2640
) = 188.02
Phrase All Characters
Password: copper bleakness foul curious disciple
flesh
Valid Characters (a) = 96
# Characters (b) = 40
Entropy = log2
(9640
) = 263.40
Entropy Summary
Traditional Entropy: 52.68
Phrase Worst-Case Entropy: 77.5
Phrase Best-Case Entropy: 263.40
User Habits Are Much More Important
Entropy Recommendations
● Recent paper suggests entropy at least ~75 for
vital info
● This means >12 random characters or six
random words from 7776 word dictionary (7
words from 2048 word dictionary)
Summary
Old, Less-Secure Way: `=RD~:7Zz"2h
New, More-Secure Way: rich clam flytrap frisky
empty serenity parasite
Password

Password Security

Editor's Notes

  • #18 rich clam flytrap frisky empty serenity parasite