Live data from Hacker News

Correct Horse Battery Staple: Secure Password Generator

correcthorsebatterystaple.net

21–30 of 61 posts

Re: Correct Horse Battery Staple: Secure Password Generator

#22

But having a wordlist of ~2281 words means the search space is 2281^4 = 2.7e+13 which is less than an ascii password (roughly 100 usable ascii characters?) of length 7 i.e. 100^7 = 1e+14

I had a idea similar to this, where you would misspell one or two words randomly - and then generate a sentence below the password to help with remembering the built-in obfuscation.

Such as the Generate Password would be listed as:

> Correct Horce Battery Staple

> "Correct Horse-with-a-C Battery Staple"

Re: Correct Horse Battery Staple: Secure Password Generator

#23

But having a wordlist of ~2281 words means the search space is 2281^4 = 2.7e+13 which is less than an ascii password (roughly 100 usable ascii characters?) of length 7 i.e. 100^7 = 1e+14

I had a idea similar to this, where you would misspell one or two words randomly - and then generate a sentence below the password to help with remembering the built-in obfuscation. Such as the Generate Password would be listed as: > Correct Horce Battery Staple > "Correct Horse-with-a-C Battery Staple"

Why not just use "Correct Horse-with-a-C Battery Staple" as your password then?

Re: Correct Horse Battery Staple: Secure Password Generator

#24
post #9

There are a number of such generators, but this one has good defaults (with the number at the end). IMHO, it would be better if it would generate a list of passwords, so if the site is malicious, it wouldn't know which one you picked. It's weak, I know... But for this reason, I like this one: https://xkpasswd.net/s/

There's no way people actually use random websites to generate their passwords, right? Like, I can't just post or comment a password generator to a reasonably-tech-savvy forum like HN and have people actually use it to generate their next email password, can I? Surely there's at least some communal wisdom about how to correctly obtain software that you can reasonably trust with such an important task?

Re: Correct Horse Battery Staple: Secure Password Generator

#25

Earlier quoted context omitted.

I had a idea similar to this, where you would misspell one or two words randomly - and then generate a sentence below the password to help with remembering the built-in obfuscation. Such as the Generate Password would be listed as: > Correct Horce Battery Staple > "Correct Horse-with-a-C Battery Staple"

Why not just use "Correct Horse-with-a-C Battery Staple" as your password then?

Adding grammar will make it more predictable and less secure for the same word count.

Re: Correct Horse Battery Staple: Secure Password Generator

#26
This goes against the whole idea of that XKCD comic. If you want to come up with a password you can remember, you should string together a bunch of words that make sense to you. But if you want a password you can remember, randomly generating it (especially in a way that has low overall entropy per the current top comment) seems like a bad way to do it.

IMO the days of remembering multiple passwords are gone - either use a password manager, or thankfully the industry is moving to passkeys.

Re: Correct Horse Battery Staple: Secure Password Generator

#27

But having a wordlist of ~2281 words means the search space is 2281^4 = 2.7e+13 which is less than an ascii password (roughly 100 usable ascii characters?) of length 7 i.e. 100^7 = 1e+14

The default settings append a number at the end, so that's 2.7e+14. Moreover, there's a separator character that may or may not be there, and may or may not be changed from the default. Furthermore, I don't know why the "jargon" list isn't included by default, which adds 8,800 relatively common words (e.g. born, advice, engine, perspective). So with the digit at the end and all other default settings, that's 11000^4*10 = 1.46e+17.

Re: Correct Horse Battery Staple: Secure Password Generator

#28

Earlier quoted context omitted.

Why not just use "Correct Horse-with-a-C Battery Staple" as your password then?

Adding grammar will make it more predictable and less secure for the same word count.

It doesn't reduce the entropy any, so I don't see how it could be less secure (assuming you don't count "with a C" as the additional words, which obviously you wouldn't).

Re: Correct Horse Battery Staple: Secure Password Generator

#29
post #21

Promoting diceware is admirable, but I don't like the idea of trusting a remote website generator. A local diceware generator is probably available in your package manager, e.g: sudo apt install diceware diceware -n 6 QuickenPrisonThermosDefilingBasicsVengeful

Or could just do something like this:

    cat /usr/share/dict/words | shuf | head -n 4

Re: Correct Horse Battery Staple: Secure Password Generator

#30
post #21

Promoting diceware is admirable, but I don't like the idea of trusting a remote website generator. A local diceware generator is probably available in your package manager, e.g: sudo apt install diceware diceware -n 6 QuickenPrisonThermosDefilingBasicsVengeful

Diceware is supposed to be done with Dice in an entirely offline manner. I guess a local program is still useful, but in theory the program could be a shoddy RNG with non-random passwords. The program shouldn't be trusted unless you wrote it yourself, or otherwise performed a security audit yourself.

For all of its faults, 5x six-sided dice looking up this wordlist (https://theworld.com/~reinhold/diceware.wordlist.asc) is something that can be accomplished by hand, without computer assistance.

Assuming you have trustworthy dice (they don't have to be perfectly balanced, just something you can trust to be random), then you can diceware your own password by hand.

Post reply on HN