mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 18:47:15 -07:00
Added the user login for emby users #435
This commit is contained in:
parent
4193cb88fd
commit
643676e7ea
15 changed files with 296 additions and 137 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue