Lurker News

Comments (485) 80 threads

Earlier comments
Aissen2 replies#
Anyone good enough in AWS pricing can reproduce the $100k pricing for one collision ? Using EC2 g2.xlarge instances I'm more at $2.8M.
bbarn1 reply#
This would still be just an average, right? Isn't it 0$ to $2.8M depending on luck?
Aissen#
I don't think that's how averages work. But it's true that relying on the birthday paradox, you can reduce the average. I was just trying to compute the "cloud" cost of 110 GPUs for 1 year (or the equivalent for a day, assuming this is embarrassingly parallel).
Aissen#
I found my mistake g2.8xlarge have 4 GPUs each, so it cuts the cost by 4 (~626k per collision). p2.16xlarge have 16 GPUs (~867k per collision). Exact model of GPU not taken into account, so this could vary widely.
bch2 replies#
I wish there were sample documents, but if one had two computed hashes would this mitigate this SHA1-shattered flaw ? e.g. good_doc.pdf sha1=da39a3ee5e6b4b0d3255bfef95601890afd80709, md5=d41d8cd98f00b204e9800998ecf8427e ? With the sample project I'm looking at (GraphicsMagick) on Sourceforge for example, it provides both SHA-1 and MD5 hashes...
bch#
Ugh -- browsing on a desktop now I clearly see there are two sample PDFs, and:

  host$ sha1 ./Downloads/shattered-*
  SHA1 (./Downloads/shattered-1.pdf) = 38762cf7f55934b34d179ae6a4c80cadccbb7f0a
  SHA1 (./Downloads/shattered-2.pdf) = 38762cf7f55934b34d179ae6a4c80cadccbb7f0a
  host$ md5 ./Downloads/shattered-*
  MD5 (./Downloads/shattered-1.pdf) = ee4aa52b139d925f8d8884402b0a750c
  MD5 (./Downloads/shattered-2.pdf) = 5bd9d8cabc46041579a311230539b8d1
  host$
fletom1 reply#
Why would you ever want to add a second broken hash like MD5 instead of just using a single secure function like SHA2, SHA3, or BLAKE2?
bch#
Only for the case like I mentioned (SourceForge example above) of verifying payloads that only ship with those two broken hashes. Not advocating for publishing new work like this.

Load more comments