/// <summary> /// Generates an email hash as per the Gravatar specifications. /// </summary> /// <param name="email">The email to hash.</param> /// <returns>The hash of the email.</returns> /// <remarks> /// The process of creating the hash are specified at http://en.gravatar.com/site/implement/hash/ /// </remarks> private static string HashEmail(string email) { return(MD5.CalcMD5(email.Trim().ToLowerInvariant())); }