Started to try and organize all the authentication code.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace SecureCore.Authentication
|
||||
{
|
||||
public static class ByteGenerator
|
||||
{
|
||||
public static void GetRandomBytes(ref byte[] bytes)
|
||||
{
|
||||
using var rng = RandomNumberGenerator.Create();
|
||||
rng.GetBytes(bytes);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user