switching to sha1 instead of md5.

This commit is contained in:
Claus
2016-08-04 15:23:57 +02:00
parent ba11de51e3
commit ae0ad2becf

View File

@@ -196,7 +196,7 @@ JOIN umbracoNode ON umbracoRedirectUrl.contentKey=umbracoNode.uniqueID");
private static string HashUrl(string url)
{
using (var crypto = new MD5CryptoServiceProvider())
using (var crypto = new SHA1CryptoServiceProvider())
{
var inputBytes = Encoding.UTF8.GetBytes(url);
var hashedBytes = crypto.ComputeHash(inputBytes);