This commit is contained in:
TheXamlGuy
2024-04-30 20:46:47 +01:00
parent 2a4194ee22
commit 81f266d8c4
22 changed files with 296 additions and 162 deletions
+13
View File
@@ -0,0 +1,13 @@
namespace Bitvault;
public class VaultFactory(IVaultKeyGenerator keyGenerator,
IVaultStorage vaultStorageFactory) :
IVaultFactory
{
public bool Create(string name,
string password)
{
VaultKey key = keyGenerator.Create(password);
return vaultStorageFactory.Create(name, key);
}
}