Exemplo n.º 1
0
 public SymetricEncryption()
 {
     EncryptionKey = new EncryptionKey(GenerateEncryptionKey(), GenerateNonce());
     _encryptor    = new ChaCha20(EncryptionKey.Key, EncryptionKey.Nonce, 1);
 }
Exemplo n.º 2
0
 public SymetricEncryption(EncryptionKey key)
 {
     EncryptionKey = key;
     _encryptor    = new ChaCha20(EncryptionKey.Key, EncryptionKey.Nonce, 1);
 }