25.12.2014 Views

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

Analysis and Evaluation of the Windows Event Log - Bill Buchanan

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C:\Documents <strong>and</strong> Settings\Barrie\My ...-aes\simpletcpserver-aes\Program.cs<br />

{<br />

int decryptedByteCount = cryptoStream.Read(plainTextBytes, 0, plainTextBytes.<br />

Length);<br />

memoryStream.Close();<br />

cryptoStream.Close();<br />

plainText = Encoding.UTF8.GetString(plainTextBytes, 0, decryptedByteCount);<br />

}<br />

catch<br />

{<br />

plainText = "Wrong Encryption Key Used";<br />

memoryStream.Close();<br />

}<br />

return plainText;<br />

}<br />

3<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!