Add IMasterKeyService

This commit is contained in:
2021-06-06 20:06:04 +02:00
parent 7a1f2946fc
commit efbac54600
2 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;
using System.Threading.Tasks;
namespace Akari.Prototype.Server.Services
{
public interface IMasterKeyService
{
public bool IsLoggedIn { get; }
public bool CheckConfig();
public bool Login(string password);
public bool TryGetKey(out AesGcm key);
public bool CreatePassword(string password);
}
}