News for hackers. Stuff that matters.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by tptacek on Sunday September 18, 2011 @06:04PM (#3011401)
You aren't worried that doing this via Javascript will make it insecure for that use? In almost the same manner as uploading your file to a server (simply to get the hash) would be?
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by chadkeck on Sunday September 18, 2011 @06:07PM (#3011405)
I dont' really understand what you're saying here. Other services that calculate the digest of a file online require you to upload your file to the service/site where you don't know what they will do with it. With Browser Hash, not one bit of your file leaves your computer or travels over the network.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by tptacek on Sunday September 18, 2011 @09:47PM (#3011869)
How do I know that my file is never leaving my computer? To verify that, I have to verify every line of Javascript code influencing that page, every time I use it, to make sure it isn't spiriting away my file contents or feeding bogus SHA fingerprint values back to me.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by xtacy on Sunday September 18, 2011 @06:11PM (#3011424)
I think he means that the JavaScript that computes the hash can be MITM'd.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by chadkeck on Sunday September 18, 2011 @06:26PM (#3011459)
Well I guess I'm not so paranoid if you're worried about the JS being MITM'd :D
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by wccrawford on Sunday September 18, 2011 @06:15PM (#3011433)
How would it be MITM'd? It all happens on your computer. Nothing travels over the network after the page is downloaded.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by antimatter15 on Sunday September 18, 2011 @06:25PM (#3011455)
I think what xtacy means by MITM is that the javascript sent by the server might be MITM'd and altered to return a different value than the actual hash.

But for instance, if I'm trying to SHA1 a Windows 8 iso (the kind which I imagine would be by far the most common use case - in which a cryptographically secure hash algorithm isn't even a prerequisite any checksum would do).

It's not any worse than downloading the sha1sum app from any http site.

Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by tptacek on Sunday September 18, 2011 @09:46PM (#3011862)
No, it's worse than downloading the "sha1sum" app, because you only have to download "sha1sum" once. You can use a variety of out-of-band methods to verify the file that you can't reasonably or cost-effectively do with a website.

A website is essentially "installed" every time you visit it.

Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by justinschuh on Sunday September 18, 2011 @06:22PM (#3011451)
Tom's point is that you're serving the JavaScript and HTML over HTTP. So, the entire site can be man-in-the-middled.
Re:Show HN: Calculate MD5, SHA-1 in your browser using HTML5... by Zash on Sunday September 18, 2011 @06:31PM (#3011469)
Quickly, someone, make an identical looking site that actually uploads whatever you drop on it! ;)