Exemple #1
0
        public async void Encrypted_stream_should_be_decryptable()
        {
            var encryptedData = await _streamHandler.EncryptData(_nonEncryptedSourceData);

            var decryptedData = await _streamHandler.DecryptData(encryptedData);

            Assert.Equal(_nonEncryptedSourceData, decryptedData);
        }
Exemple #2
0
        public async void It_should_decrypt_encrypted_stream()
        {
            var decryptedData = await _streamHandler.DecryptData(_encryptedData);

            var decryptedvalue = Encoding.UTF8.GetString(decryptedData);

            Assert.Equal("Servanda", decryptedvalue);
        }