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

@@ -2,6 +2,7 @@ using Akari.Prototype.Server.Cli.Commands;
using Akari.Prototype.Server.Options;
using Akari.Prototype.Server.Utils.Extensions;
using CliFx;
using Isopoh.Cryptography.Argon2;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;