Пример #1
0
        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);
        }
Пример #2
0
 protected AeadCrypto()
 {
     secretFactory  = new TransientSecretFactory();
     nonceGenerator = new NonceGenerator();
 }
Пример #3
0
 public TransientSecretFactory()
 {
     secretFactory = new ProtectedMemorySecretFactory();
 }
Пример #4
0
 public TransientSecretFactory(IConfiguration configuration = null)
 {
     Debug.WriteLine("TransientSecretFactory: New");
     secretFactory = new ProtectedMemorySecretFactory(configuration);
 }