3 ms·
The passwords generated by this do not have enough entropy. The code that does the generation is: def generatePassword(password, site): letters = 'abcdef
by jgrahamc 14y ago
The passwords generated by this do not have enough entropy. The code that does the generation is:
def generatePassword(password, site):
letters = 'abcdefghijklmnopqrstuvwxyz'
u_letters = letters.upper()
all_letters = letters + u_letters
numbers = '0123456789'
symbols = '!@#$%*-?+='
length = 10
i.e. a 10 character password is generated from an alphabet with 72 characters in it. That gives 10 * log_2 72 which is roughly 61.7 bits.
Currently you'd want to have at least 80 bits for a good password.
Of course, it's trivial for them to fix this given that they are generating the passwords: just change length to 13 or greater.
- qixxiq 14y agoI'm curious to know where the 80 bit number comes from? The 61 bits seems like a crazy large number to try and brute-force, but perhaps there are other issues besides brute force that I'm not considering? Unfortunately while changing the 10 to 13 was a rather trivial change yesterday, now that the site has launched its not really possible. It would change and break everyones password on the site. That said the entire thing is open-source, so anyone 'could' set up a version of password.ly with length=13 for themselves if they wanted.
- mekwall 14y agoProbably from NIST Special Publication 800-63. Level 3 authentication requires cryptographic keys with an entropy of at least 80 bits. http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1...
- benologist 14y agoYou should consider making the password generator versioned, there may be many breaking changes between now and the day it dies.
- mekwall 14y agoI think 80 is overkill. I'd say anything above 60 is secure enough for most passwords. One of my main password (consisting of only lowercase letters) has an entropy of 78.7 bits, which is good enough to safely guard sensitive information like financial records, but then again, it's 21 characters long :)
- alexkus 14y agoIt has less entropy now that you've given away some information about it.
- jgrahamc 14y agoA 21-character password chosen randomly from [a-z] would have about 98 bits of entropy. But better be random.
- mekwall 14y agoMatters not. You still have no idea which one of my main passwords, how many they are nor where its used. Also, this particular password is non-critical which is why I used it as an example, but you're welcome to try and hack my accounts ;)