Started to try and organize all the authentication code.

This commit is contained in:
2021-01-03 22:09:36 -06:00
parent ddb42da7bb
commit e03610e390
16 changed files with 174 additions and 91 deletions
+13
View File
@@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Cryptography.KeyDerivation;
namespace SecureCore.Authentication
{
public static class Settings
{
public static int Iterations { get; } = 100000;
public static KeyDerivationPrf KeyType { get; } = KeyDerivationPrf.HMACSHA512;
public static int KeySize { get; } = 512 / 8;
public static int SaltSize { get; } = 128 / 8; //128 bit salt
public static int SessionKeySize { get; } = 32; //32 bytes
}
}