Пример #1
0
 public SymetricEncryption()
 {
     EncryptionKey = new EncryptionKey(GenerateEncryptionKey(), GenerateNonce());
     _encryptor    = new ChaCha20(EncryptionKey.Key, EncryptionKey.Nonce, 1);
 }
Пример #2
0
 public SymetricEncryption(EncryptionKey key)
 {
     EncryptionKey = key;
     _encryptor    = new ChaCha20(EncryptionKey.Key, EncryptionKey.Nonce, 1);
 }