Started to try and organize all the authentication code.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SecureCore.Authentication
|
||||
{
|
||||
public class SessionManager
|
||||
{
|
||||
public static string CreateSessionToken()
|
||||
{
|
||||
var token = new byte[Settings.SessionKeySize];
|
||||
|
||||
ByteGenerator.GetRandomBytes(ref token);
|
||||
|
||||
return Convert.ToBase64String(token);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user