Salt length depended on fingerprint name length, which lead to weak salts in some cases It's now a fixed length (12 bytes)
21 lines
466 B
C#
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);
|
|
}
|
|
}
|