News for hackers. Stuff that matters.
Re:Show HN: YouTransfer – Self-hosted file sharing by tokenizerrr on Monday October 05, 2015 @04:45AM (#10330546)
Just to reiterate what dchest said, you should never use MD5 anymore, even if you do intent to hash something. MD5 is is broken and should not be used for anything anymore.
Re:Show HN: YouTransfer – Self-hosted file sharing by rasur on Monday October 05, 2015 @05:04AM (#10330599)
> MD5 is is broken and should not be used for anything anymore.

With the possible exception of demonstrating brokenness in hashing algorithms ;) (Sorry, couldn't resist!)

Re:Show HN: YouTransfer – Self-hosted file sharing by strayptr on Monday October 05, 2015 @01:59PM (#10333542)
MD5 is is broken and should not be used for anything anymore.

Actually, HMAC-MD5 is secure.

Re:Show HN: YouTransfer – Self-hosted file sharing by scott_karana on Monday October 05, 2015 @03:17PM (#10334110)
It's a stretch to say it's "secure".

Yes, there aren't any known attacks right now, but since MD5 itself already has practical collision attacks against it, there isn't any good reason to use HMAC-MD5 in a new cryptosystem when there are better alternatives.

---

Supporting evidence: new versions of OpenSSHD do not use HMAC-MD5 by default anymore: it has to be enabled manually.

  The default is:
  
  [email protected],[email protected], 
  [email protected],[email protected], 
  [email protected],[email protected], 
  hmac-sha2-256,hmac-sha2-512
http://www.openbsd.org/cgi-bin/man.cgi/OpenBSD-current/man5/...
Re:Show HN: YouTransfer – Self-hosted file sharing by nsgi on Monday October 05, 2015 @05:06AM (#10330609)
What about Gravatar?
Re:Show HN: YouTransfer – Self-hosted file sharing by dchest on Monday October 05, 2015 @05:34AM (#10330723)
Of course, you'll have to use whatever the third-party API uses, which includes Gravatar, but don't use it for anything under your control.

Replace with:

- BLAKE2 if you need a fast cryptographic hash function (e.g. for hashing file contents)

- SHA512 (or SHA256, or SHA-3) if you want a standard cryptographic hash function that is available in your programming language libraries

(Speaking of Gravatar, their use of md5(email) or even more secure hash function won't help protect email addresses against dedicated attackers, as it's easy to iterate over billions of them in seconds, just like in the stories about password cracking you hear, but it works as a simple anti-spam measure.)

Re:Show HN: YouTransfer – Self-hosted file sharing by Sir_Substance on Monday October 05, 2015 @06:19AM (#10330867)
Please just stop using it? It's the feature no one asked for.
Re:Show HN: YouTransfer – Self-hosted file sharing by scrollaway on Monday October 05, 2015 @08:49AM (#10331430)
I am not a very important person but I certainly ask for it, and I'd like you to stop discarding me and my "kind" as "no one".
Re:Show HN: YouTransfer – Self-hosted file sharing by hobs on Monday October 05, 2015 @10:49AM (#10332148)
Do you ask for that with the awareness that gravatar then gets to track your presence around the internet for the cost of a tiny picture?

I would rather have less ad tracking pixels on someone elses websites if possible, but I am genuinely interested in the value that gravatar provides to people who like the service.

Re:Show HN: YouTransfer – Self-hosted file sharing by scrollaway on Monday October 05, 2015 @10:56AM (#10332192)
There's a lot of things that can track presence around the web and gravatar's not one of them. Iff you decide to implement gravatar without mirroring their images, avatars are indeed loaded on their first query (and not subsequent ones) and, god knows what they're doing with that information ohgod. They certainly can't "track my presence around the web", though - no js means no fingerprinting, no tracking cookie, nothing. Juuuust a blind IP address.

But the recommended way is to prefetch the avatars directly from your server and offer them on your own cdn.

As for the value it provides, well for one thing I pretty much never have to upload my avatar to websites anymore - it's an avatar attached to my email addresses instead and that's very nice. Of course I'd prefer a proper identity protocol but nobody's working on one. If you want to, be my guest...

Re:Show HN: YouTransfer – Self-hosted file sharing by hobs on Monday October 05, 2015 @02:38PM (#10333817)
I think we disagree on one basic topic, I dont want an easily distinguishable identity to track across the internet.

I would rather external actors (say gravatar does nothing wrong) not be able to identify which email address I use on a site they do not own, and not be able to track my user signups by something that might be public information, which generally a site does not advertise.

It just feels wrong.

Re:Show HN: YouTransfer – Self-hosted file sharing by scrollaway on Monday October 05, 2015 @07:05PM (#10335633)
Unlike every actual tracker on the internet, Gravatar is opt-in. Things like google analytics, facebook like button/tweet button etc, they are all opt-out.