Files
Akari.Prototype/Akari.Prototype.Server/Services/IAuthManager.cs
Eveldee d7691e414b 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)
2021-06-05 12:20:14 +02:00

21 lines
466 B
C#

using Akari.Prototype.Server.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public interface IAuthManager
{
IEnumerable<KeyValuePair<string, TimedEntry<AesGcm>>> Pairs { get; }
void GenerateSalt(string name);
void Auth(string name, byte[] token);
bool Remove(string name);
}
}