Earlier quoted context omitted.
And of course double the compute for half the time = same cost (more or less). I would imagine the NSA has sunk enough into hardware to do this fairly cheaply per-pass, and very quickly (hours not weeks).
Cloud computing makes this true for everybody else too now, at least within a practical range. Now I can easily afford a multi-million dollar distributed compute facility... for a few hours, rented from Amazon. I'd be surprised if the NSA has a clear purpose for bulk colliding SHA-1. It's a pretty niche thing to want to do even compared to say, "cracking" DES. For MD5 we know such government agencies made some collis…
SHA-1 collisions now cost $45k [pdf]
41–50 of 64 posts
Re: SHA-1 collisions now cost $45k [pdf]
#42How safe is SHA-256 now? Or Is SHA-512 needed in the near future?
SHA-256 is still secure for plenty of applications, but for awhile it's been regarded as a suboptimal choice for password hashing. SHA512 is probably overkill.
Algorithms designed for password hashing are intentionally both compute and memory intensive, to make guessing slower, whereas general cryptographic hash functions are by contrast intended to be fast, as most applications will want that. The idea is that password hashing algorithms should be fast enough to keep up with a human and no faster; if you already know he password the performance is not a hindrance but if you have to guess it makes doing so impractical.
Re: SHA-1 collisions now cost $45k [pdf]
#43Earlier quoted context omitted.
SHA-256 is still secure for plenty of applications, but for awhile it's been regarded as a suboptimal choice for password hashing. SHA512 is probably overkill.
"for a while" suggests that this was ever a recommended choice, which is not the case. As others have pointed out, for password hashing you want a specialized algorithm, not a general purpose cryptographic hash function. This is true regardless of whether the hash function is "compromised;" it just wasn't designed for that application in the first place. Algorithms designed for password hashing are intentionally both…
Re: SHA-1 collisions now cost $45k [pdf]
#44Earlier quoted context omitted.
Not only sub-optimal, but unsuitable. Use algorithms specifically designed for password hashing: argon2 / scrypt etc. SHA256, SHA512 and Blake* algorithms are suitable for secure checksums and HMACs, but not password hashing
I disagree, I would argue that they are optimal for passwords with sufficient entropy (which includes passwords generated by a password manager) > argon2 It uses BLAKE2 internally
Re: SHA-1 collisions now cost $45k [pdf]
#45Earlier quoted context omitted.
Not only sub-optimal, but unsuitable. Use algorithms specifically designed for password hashing: argon2 / scrypt etc. SHA256, SHA512 and Blake* algorithms are suitable for secure checksums and HMACs, but not password hashing
I disagree, I would argue that they are optimal for passwords with sufficient entropy (which includes passwords generated by a password manager) > argon2 It uses BLAKE2 internally
Re: SHA-1 collisions now cost $45k [pdf]
#46Re: SHA-1 collisions now cost $45k [pdf]
#47I understand not wanting to use SHA-1 now for security reasons, but is it still an OK practice to use it as a general hashing function for a uuid/data checksum?
Re: SHA-1 collisions now cost $45k [pdf]
#48I understand not wanting to use SHA-1 now for security reasons, but is it still an OK practice to use it as a general hashing function for a uuid/data checksum?
Are you protecting against random accidental data corruption? Or malicious attackers?
Even when you ask people "is there any universe in which this could be used as an attack?" most people will reflexively say "no, of course not."
Most of us are wrong, which is why you have professional pen testers.
Re: SHA-1 collisions now cost $45k [pdf]
#49Earlier quoted context omitted.
I disagree, I would argue that they are optimal for passwords with sufficient entropy (which includes passwords generated by a password manager) > argon2 It uses BLAKE2 internally
Secure checksums should have high performance. Password hashing should have low performance (ie high cost).
Re: SHA-1 collisions now cost $45k [pdf]
#50Earlier quoted context omitted.
I disagree, I would argue that they are optimal for passwords with sufficient entropy (which includes passwords generated by a password manager) > argon2 It uses BLAKE2 internally
If you have two solutions and the first solution requires humans behave in a certain manner (getting them to use high entropy passwords) and the second does not. The second is more secure.