Live data from Hacker News

Show HN: Correct Horse Battery Staple password generator

correcthorse.pw

51–60 of 99 posts

Re: Show HN: Correct Horse Battery Staple password generator

#51
post #50
post #45

Earlier quoted context omitted.

Interesting. They stopped using /dev/urandom as the default random file in version 7.3, which created the insecure default situation. Later, in version 8.6, they updated to use a default nonce from /dev/urandom. It's odd that the documentation has not be updated. Perhaps it's because the latest version will still default to an insecure nonce if there is no /dev/urandom?

If you're on a Linux OS that's from ~2013 or later, then you're most likely on a version of coreutils that will default to /dev/urandom. The master branch of coreutils is using getrandom(2). It will continue to draw entropy from the urandom source by default.

The latest versions of RHEL/CentOS 6 use coreutils version 8.4, so I assume their shuf defaults to insecure. I imagine that RHEL 5 ELS must have the same issue. I don't know of any other currently-supported Linux or BSD versions that might be a problem.

Re: Show HN: Correct Horse Battery Staple password generator

#52
post #51
post #50

Earlier quoted context omitted.

If you're on a Linux OS that's from ~2013 or later, then you're most likely on a version of coreutils that will default to /dev/urandom. The master branch of coreutils is using getrandom(2). It will continue to draw entropy from the urandom source by default.

The latest versions of RHEL/CentOS 6 use coreutils version 8.4, so I assume their shuf defaults to insecure. I imagine that RHEL 5 ELS must have the same issue. I don't know of any other currently-supported Linux or BSD versions that might be a problem.

RHEL 5 is from 2007, and is already past end of life (end of extended support is this November).

RHEL 6 is from 2009, and it's end of life is this November.

Both of those OS are not from 2013 or later. They may have minor versions that were released later, but minor versions typically don't make significant changes to core packages.

RHEL 7 (2014) and Ubuntu 13.04 both have coreutils 8.20 or newer.

Re: Show HN: Correct Horse Battery Staple password generator

#53
post #52
post #51

Earlier quoted context omitted.

The latest versions of RHEL/CentOS 6 use coreutils version 8.4, so I assume their shuf defaults to insecure. I imagine that RHEL 5 ELS must have the same issue. I don't know of any other currently-supported Linux or BSD versions that might be a problem.

RHEL 5 is from 2007, and is already past end of life (end of extended support is this November). RHEL 6 is from 2009, and it's end of life is this November. Both of those OS are not from 2013 or later. They may have minor versions that were released later, but minor versions typically don't make significant changes to core packages. RHEL 7 (2014) and Ubuntu 13.04 both have coreutils 8.20 or newer.

RHEL 6 ELS will be supported until 2024.

My comments are not contradictory to your point about 2013. They are only meant to make people aware that there are supported OS versions in use that have this issue.

Re: Show HN: Correct Horse Battery Staple password generator

#55
post #31

Can someone explain to me why 1password doesn't have something like this built in? You can use words, or random/symbols, but not both. Which fails miserably every time you're faced with some sort of silly password requirement to have a symbol and a number and a capital or whatever.

Yeah, I find myself having to generate a passphrasea and then change the capitalisation and add a number.

Re: Show HN: Correct Horse Battery Staple password generator

#57
post #56

Problem with generators and this scheme, they allow regeneration. Most people not using the first version, they generate a new until they like it enough to stop, which is not that random anymore as they think.

So you're saying that generating a new password looses entropy?

Re: Show HN: Correct Horse Battery Staple password generator

#58

Earlier quoted context omitted.

Yup. With the ability to add a separator (like a space, -, .) I'd switch over to this. Currently I use and recommend https://preshing.com/20110811/xkcd-password-generator/

Good idea, just added separators to the website.

You could(/should) add space and make it the default separator :)

Re: Show HN: Correct Horse Battery Staple password generator

#59
post #57
post #56

Problem with generators and this scheme, they allow regeneration. Most people not using the first version, they generate a new until they like it enough to stop, which is not that random anymore as they think.

So you're saying that generating a new password looses entropy?

Choosing is the problem here -- it's now only as random as your preference

Eg the scheme doesn't do its job well if you don't know the word, so the dictionary can be reduced by that much

Post reply on HN