Adds the ability to create key files (no entropy generator for now)

This commit is contained in:
BONNEVILLE Geoffroy
2017-11-17 10:20:54 +01:00
parent 3089609c19
commit 5273a25385
5 changed files with 27 additions and 3 deletions

View File

@@ -117,6 +117,13 @@ namespace ModernKeePass.ViewModels
UpdateStatus("Database composite key updated.", StatusTypes.Success);
}
public void CreateKeyFile(StorageFile file)
{
// TODO: implement entropy generator
KcpKeyFile.Create(file, null);
KeyFile = file;
}
private void UpdateStatus(string text, StatusTypes type)
{
Status = text;