Use random salt for each fingerprint key

Salt length depended on fingerprint name length, which lead to weak salts in some cases
It's now a fixed length (12 bytes)
This commit is contained in:
2021-06-05 12:20:14 +02:00
parent 3b1755b793
commit d7691e414b
5 changed files with 69 additions and 7 deletions

View File

@@ -11,6 +11,8 @@ namespace Akari.Prototype.Server.Services
{
IEnumerable<KeyValuePair<string, TimedEntry<AesGcm>>> Pairs { get; }
void GenerateSalt(string name);
void Auth(string name, byte[] token);
bool Remove(string name);