First pass at members resource controller

This commit is contained in:
watsonb8
2020-01-20 16:55:12 -05:00
parent 4ec9db4a45
commit 320967be89
10 changed files with 630 additions and 7 deletions

27
Aurora/Utils/HashUtil.cs Normal file
View File

@ -0,0 +1,27 @@
using System.Security.Cryptography;
using System.Text;
using System;
namespace Aurora.Utils
{
public class HashUtil
{
public static Guid GetHashGuid(string[] inputs)
{
string input = "";
foreach (string str in inputs)
{
input += str;
}
Guid result;
using (SHA256 sha = SHA256.Create())
{
byte[] hash = sha.ComputeHash(Encoding.Default.GetBytes(input));
result = new Guid(hash);
}
return result;
}
}
}