<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Battery+Staple+Corrector+Horse</id>
		<title>explain xkcd - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Battery+Staple+Corrector+Horse"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php/Special:Contributions/Battery_Staple_Corrector_Horse"/>
		<updated>2026-04-30T13:08:54Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=936:_Password_Strength&amp;diff=102675</id>
		<title>936: Password Strength</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=936:_Password_Strength&amp;diff=102675"/>
				<updated>2015-09-30T21:58:24Z</updated>
		
		<summary type="html">&lt;p&gt;Battery Staple Corrector Horse: /* Explanation */ Gibson is completely wrong (as pointed out later). What matters is that the password is chosen uniformly at random from 2^44 possibilities. The length in characters is not relevant.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{comic&lt;br /&gt;
| number    = 936&lt;br /&gt;
| date      = August 10, 2011&lt;br /&gt;
| title     = Password Strength&lt;br /&gt;
| image     = password strength.png&lt;br /&gt;
| titletext = To anyone who understands information theory and security and is in an infuriating argument with someone who does not (possibly involving mixed case), I sincerely apologize.&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Explanation==&lt;br /&gt;
This comic is saying that the password in the top frames &amp;quot;Tr0ub4dor&amp;amp;3&amp;quot; is easier for password cracking software to guess because it has less entropy than &amp;quot;correcthorsebatterystaple&amp;quot; and also more difficult for a human to remember, leading to insecure practices like writing the password down on a post-it attached to the monitor.&lt;br /&gt;
&lt;br /&gt;
In simple cases the {{w|Entropy (information theory)|entropy}} of a password is calculated as ''a^b'' where ''a'' is the number of allowed symbols and ''b'' is its length. A dictionary word (however long) has an entropy of around 65000, i.e. 16 bits. A truly random string of length 11 (not like &amp;quot;Tr0ub4dor&amp;amp;3&amp;quot;, but more like &amp;quot;J4I/tyJ&amp;amp;Acy&amp;quot;) has 94^11 = 72.1 bits. However the comic shows that &amp;quot;Tr0ub4dor&amp;amp;3&amp;quot; has only 28 bits of entropy. Another way of selecting a password is to have 2048 &amp;quot;symbols&amp;quot; (common words) and select only 4 of those symbols. 2048^4 = 44 bits, much better than 28.&lt;br /&gt;
&lt;br /&gt;
It is absolutely true that people make passwords hard to remember because they think they are &amp;quot;safer&amp;quot;, and it is certainly true that length, all other things being equal, tends to make for very strong passwords and this can confirmed by using [http://rumkin.com/tools/password/passchk.php rumkin.com's password strength checker]. Even if the individual characters are all limited to [a-z], the exponent implied in &amp;quot;we added another lowercase character, so multiply by 26 again&amp;quot; tends to dominate the results.&lt;br /&gt;
&lt;br /&gt;
In addition to being easier to remember, long strings of lowercase characters are also easier to type on smartphones and {{w|Virtual keyboard|soft keyboards}}.&lt;br /&gt;
&lt;br /&gt;
xkcd's password generation scheme requires the user to have a list of 2048 common words (log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(2048) = 11). For any attack we must assume that the attacker knows our password generation algorithm, but not the exact password. In this case the attacker knows the 2048 words, and knows that we selected 4 words, but not which words. The number of combinations of 4 words from this list of words is (2&amp;lt;sup&amp;gt;11&amp;lt;/sup&amp;gt;)&amp;lt;sup&amp;gt;4&amp;lt;/sup&amp;gt; = 2&amp;lt;sup&amp;gt;44&amp;lt;/sup&amp;gt; bits. For comparison, the [http://world.std.com/~reinhold/dicewarefaq.html#calculatingentropy entropy offered by Diceware's 7776 word list is 13 bits per word]. If the attacker doesn't know the algorithm used, and only knows that lowercase letters are selected, the &amp;quot;common words&amp;quot; password would take even longer to crack than depicted. 25 ''random'' lowercase characters would have [http://www.wolframalpha.com/input/?i=log2%2826^25%29 117 bits of entropy], vs 44 bits for the common words list.&lt;br /&gt;
&lt;br /&gt;
;Example&lt;br /&gt;
Below there is a detailed example which shows how different rules of complexity work to generate a password with supposed 44 bits of entropy. The examples of expected passwords were generated in random.org.(*)&lt;br /&gt;
&lt;br /&gt;
If ''n'' is the number of symbols and ''L'' is the length of the password, then ''L'' = 44 / log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(n).&lt;br /&gt;
&lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!Symbols&lt;br /&gt;
!Number of symbols&lt;br /&gt;
!Minimum length&lt;br /&gt;
!colspan=&amp;quot;2&amp;quot;|Examples of expected passwords&lt;br /&gt;
!Example of an actual password&lt;br /&gt;
!Actual bits of entropy&lt;br /&gt;
!Comment&lt;br /&gt;
|-&lt;br /&gt;
|a||26||9.3||mdniclapwz||jxtvesveiv||troubadorx||16+4.7 = 20.7||Extra letter to meet length requirement; log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(26) = 4.7&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|a 9&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|36&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|8.5&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|qih7cbrmd&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|ewpltiayq&lt;br /&gt;
|tr0ub4d0r||16+3=19||3 = common substitutions in the comic&lt;br /&gt;
|-&lt;br /&gt;
|troubador1||16+3.3=19.3||log&amp;lt;sub&amp;gt;2&amp;lt;/sub&amp;gt;(10) = 3.3&lt;br /&gt;
|-&lt;br /&gt;
|a A||52||7.7||jAwwBYne||NeTvgcrq||Troubador||16+1=17||1 = caps? in the comic&lt;br /&gt;
|-&lt;br /&gt;
|a &amp;amp;amp;||58||7.5||j.h?nv),||c/~/fg\:||troubador&amp;amp;amp;||16+4=20||4 = punctuation in the comic&lt;br /&gt;
|-&lt;br /&gt;
|a A 9||62||7.3||cDe8CgAf||RONygLMi||Tr0ub4d0r||16+1+3=20||1 = caps?; 3 = common substitutions&lt;br /&gt;
|-&lt;br /&gt;
|a 9 &amp;amp;amp;||68||7.2||_@~&amp;quot;#^.2||un$l&amp;amp;#x7c;!f]||tr0ub4d0r&amp;amp;amp;||16+3+4=23||3 = common substitutions; 4 = punctuation&lt;br /&gt;
|-&lt;br /&gt;
|a A 9 &amp;amp;amp;||94||6.7||Re-:aRo||^$rV{3?||Tr0ub4d0r&amp;amp;||16+1+3+4=24||1 = caps?; 3 = common substitutions; 4 = punctuation&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|common words&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|2048&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|4&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|reasonable&amp;amp;#8203;retail&amp;amp;#8203;sometimes&amp;amp;#8203;possibly&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|constant&amp;amp;#8203;yield&amp;amp;#8203;specify&amp;amp;#8203;priority||reasonable&amp;amp;#8203;retail&amp;amp;#8203;sometimes&amp;amp;#8203;possibly||11&amp;amp;times;4=44||Go to random.org and select 4 random integers between 1 and 2048; then go to your list of common words &lt;br /&gt;
|-&lt;br /&gt;
|correct&amp;amp;#8203;horse&amp;amp;#8203;battery&amp;amp;#8203;staple&lt;br /&gt;
|0&lt;br /&gt;
|Because of this comic, this password has no entropy&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
:a = lowercase letters&lt;br /&gt;
:A = uppercase letters&lt;br /&gt;
:9 = digits&lt;br /&gt;
:&amp;amp;amp; = the 32 special characters in an American keyboard; Randall assumes only the 16 most common characters are used in practice (4 bits)&lt;br /&gt;
&lt;br /&gt;
:(*)&amp;amp;nbsp;The use of random.org explains why &amp;lt;code&amp;gt;jAwwBYne&amp;lt;/code&amp;gt; has two consecutive w's, why &amp;lt;code&amp;gt;Re-:aRo&amp;lt;/code&amp;gt; has two R's, why &amp;lt;code&amp;gt;_@~&amp;quot;#^.2&amp;lt;/code&amp;gt; has no letters, why &amp;lt;code&amp;gt;ewpltiayq&amp;lt;/code&amp;gt; has no numbers, why &amp;quot;constant yield&amp;quot; is part of a password, etc. A human would have attempted at passwords that looked random.&lt;br /&gt;
&lt;br /&gt;
The title text likely refers to the fact that this comic could cause people who understand information theory and agree with the message of the comic to get into an infuriating argument with people who do not — and disagree with the comic.&lt;br /&gt;
&lt;br /&gt;
If you're confused, don't worry; you're in good company.  Even security &amp;quot;experts&amp;quot; like Steve Gibson and Bruce Schneier misunderstand the comic's point: [https://www.grc.com/sn/sn-313.htm#!s!math%20is%20wrong Steve Gibson Security Now transcript] and [https://subrabbit.wordpress.com/2011/08/26/how-much-entropy-in-that-password/ rebuttal], [https://www.schneier.com/blog/archives/2014/03/choosing_secure_1.html#!s!xkcd Schneier original article] and rebuttals: [http://robinmessage.com/2014/03/why-bruce-schneier-is-wrong-about-passwords/ 1] [http://www.reddit.com/r/technology/comments/1yxgqo/bruce_schneier_on_choosing_a_secure_password/cfp2z9k 2] [http://www.reddit.com/r/YouShouldKnow/comments/232uch/ysk_how_to_properly_choose_a_secure_password_the/cgte7lp 3] [http://www.reddit.com/r/YouShouldKnow/comments/232uch/ysk_how_to_properly_choose_a_secure_password_the/cgszp62 4] [http://www.reddit.com/r/YouShouldKnow/comments/232uch/ysk_how_to_properly_choose_a_secure_password_the/cgt6ohq 5]&lt;br /&gt;
&lt;br /&gt;
Computer security consultant Mark Burnett has posted a [http://xato.net/passwords/analyzing-the-xkcd-comic/ discussion and analysis] of this comic on his blog.&lt;br /&gt;
&lt;br /&gt;
==Transcript==&lt;br /&gt;
:The comic illustrates the relative strength of passwords assuming basic knowledge of the system used to generate them.&lt;br /&gt;
:A set of boxes is used to indicate how many bits of entropy a section of the password provides.&lt;br /&gt;
:The comic is laid out with 6 panels arranged in a 3x2 grid.&lt;br /&gt;
:On each row, the first panel explains the breakdown of a password, the second panel shows how long it would take for a computer to guess, and the third panel provides an example scene showing someone trying to remember the password.&lt;br /&gt;
&lt;br /&gt;
:[The password &amp;quot;Tr0ub4dor&amp;amp;3&amp;quot; is shown in the center of the panel. A line from each annotation indicates the word section the comment applies to.]&lt;br /&gt;
&lt;br /&gt;
:Uncommon (non-gibberish) base word&lt;br /&gt;
:[Highlighting the base word - 16 bits of entropy.]&lt;br /&gt;
:Caps?&lt;br /&gt;
:[Highlighting the first letter - 1 bit of entropy.]&lt;br /&gt;
:Common Substitutions&lt;br /&gt;
:[Highlighting the letters 'a' (substituted by '4') and both 'o's (the first of which is substituted by '0') - 3 bits of entropy.]&lt;br /&gt;
:Punctuation&lt;br /&gt;
:[Highlighting the symbol appended to the word - 4 bits of entropy.]&lt;br /&gt;
:Numeral&lt;br /&gt;
:[Highlighting the number appended to the word - 3 bits of entropy.]&lt;br /&gt;
:Order unknown&lt;br /&gt;
:[Highlighting the appended characters - 1 bit of entropy.]&lt;br /&gt;
:(You can add a few more bits to account for the fact that this is only one of a few common formats.)&lt;br /&gt;
&lt;br /&gt;
:~28 bits of entropy &lt;br /&gt;
:2&amp;lt;sup&amp;gt;28&amp;lt;/sup&amp;gt; = 3 days at 1000 guesses sec&lt;br /&gt;
:(Plausible attack on a weak remote web service. Yes, cracking a stolen hash is faster, but it's not what the average user should worry about.)&lt;br /&gt;
:Difficulty to guess: Easy.&lt;br /&gt;
&lt;br /&gt;
:[Cueball stands scratching his head trying to remember the password.]&lt;br /&gt;
:Cueball: Was it trombone? No, Troubador. And one of the O's was a zero?&lt;br /&gt;
:Cueball: And there was some symbol...&lt;br /&gt;
:Difficulty to remember: Hard.&lt;br /&gt;
&lt;br /&gt;
:[The passphrase &amp;quot;correct horse battery staple&amp;quot; is shown in the center of the panel.]&lt;br /&gt;
:Four random common words {Each word has 11 bits of entropy.}&lt;br /&gt;
&lt;br /&gt;
:~44 bits of entropy&lt;br /&gt;
:2&amp;lt;sup&amp;gt;44&amp;lt;/sup&amp;gt; = 550 years at 1000 guesses sec&lt;br /&gt;
:Difficulty to guess: Hard.&lt;br /&gt;
&lt;br /&gt;
:[Cueball is thinking, in his thought bubble a horse is standing to one side talking to an off-screen observer. An arrow points to a staple attached to the side of a battery.]&lt;br /&gt;
:Horse: That's a battery staple.&lt;br /&gt;
:Observer: Correct!&lt;br /&gt;
:Difficulty to remember: You've already memorized it&lt;br /&gt;
&lt;br /&gt;
:Through 20 years of effort, we've successfully trained everyone to use passwords that are hard for humans to remember, but easy for computers to guess.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*Some info was used from the highest voted answer given to the question of &amp;quot;how accurate is this XKCD comic&amp;quot; at StackExchange [http://security.stackexchange.com/questions/6095/xkcd-936-short-complex-password-or-long-dictionary-passphrase].&lt;br /&gt;
*Similarly, a question of &amp;quot;how right this comic is&amp;quot; was made at AskMetaFilter [http://ask.metafilter.com/193052/Oh-Randall-you-do-confound-me-so] and [[Randall]] responded [http://ask.metafilter.com/193052/Oh-Randall-you-do-confound-me-so#2779020 there].&lt;br /&gt;
*Also the Wikipedia article on '{{w|Passphrase}}' is useful.&lt;br /&gt;
*In case you missed it in the explanation, GRC's Steve Gibson has a fantastic page [https://www.grc.com/haystack.htm] about this (and may have prompted this comic, as his podcast [http://www.grc.com/sn/sn-303.htm] about this was posted the month before this comic).&lt;br /&gt;
&lt;br /&gt;
{{comic discussion}}&lt;br /&gt;
[[Category:Comics featuring Cueball]]&lt;br /&gt;
[[Category:Math]]&lt;br /&gt;
[[Category:Computers]]&lt;/div&gt;</summary>
		<author><name>Battery Staple Corrector Horse</name></author>	</entry>

	</feed>