Added the user login for emby users #435

This commit is contained in:
tidusjar 2017-01-30 23:12:12 +00:00
commit 643676e7ea
15 changed files with 296 additions and 137 deletions

View file

@ -25,6 +25,7 @@
// ************************************************************************/
#endregion
using System.Linq;
using System.Security.Cryptography;
using System.Text;
@ -49,5 +50,10 @@ namespace Ombi.Helpers
return sb.ToString();
}
}
public static string GetSha1Hash(string input)
{
return string.Join("", (new SHA1Managed().ComputeHash(Encoding.UTF8.GetBytes(input))).Select(x => x.ToString("x2")).ToArray());
}
}
}