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