public TransientSecretFactory(IConfiguration configuration = null) { if (configuration == null) { configuration = new ConfigurationBuilder() .SetBasePath(Directory.GetCurrentDirectory()) .AddJsonFile("appsettings.json", true).Build(); } Debug.WriteLine("TransientSecretFactory: New"); secretFactory = new SecureMemorySecretFactory(configuration); }
protected AeadCrypto() { secretFactory = new TransientSecretFactory(); nonceGenerator = new NonceGenerator(); }
public TransientSecretFactory() { secretFactory = new ProtectedMemorySecretFactory(); }
public TransientSecretFactory(IConfiguration configuration = null) { Debug.WriteLine("TransientSecretFactory: New"); secretFactory = new ProtectedMemorySecretFactory(configuration); }