This commit is contained in:
2018-06-28 23:08:13 +00:00
commit 877637f1e5
69 changed files with 13521 additions and 0 deletions

20
util/ShortId.cs Normal file
View File

@@ -0,0 +1,20 @@
using System;
namespace GZTW.Pecklist.Util
{
//Authentication controller
public static class ShortId
{
/////////////////////////////////
// Generate a random shortId
//
// Based off this: https://stackoverflow.com/a/9279005/8939
public static string Generate()
{
return Convert.ToBase64String(Guid.NewGuid().ToByteArray()).Replace("=","").Replace("/","").Replace("+","");
}
}//eoc
}//eons