This commit is contained in:
tidusjar 2017-03-04 14:18:53 +00:00
parent 4df12281c5
commit 9a1b0c49ec
4 changed files with 45 additions and 22 deletions

View file

@ -35,6 +35,10 @@ namespace Ombi.Helpers
{
public static string CalcuateMd5Hash(string input)
{
if (string.IsNullOrEmpty(input))
{
return string.Empty;
}
using (var md5 = MD5.Create())
{
var inputBytes = Encoding.UTF8.GetBytes(input);