gravatar

Alternative for Gravatar which supports SHA256


In our c# application we are not using MD5 as it is not secure, we are using SHA256. but when we use SHA256 we are not getting any images from gravatar. My questions are

  1. will gravatar support SHA 256?
  2. what is the alternative to gravatar that supports SHA256, We don't want to install or include any libraries as gravatar requires just the URL to get he image.

Solution

  • As MSalters already mentioned, I don't think it really matters in this use case. You're not doing anything cryptographic, so I don't think there are any issues with MD5 in this scenario. However, if you do specifically want an alternative that supports SHA-256 hashes of emails to get user avatars (though definitely not as popular as gravatar), there's Libravatar. Libravatar's API documentation does state that it supports SHA-256 for retrieving avatars.