Re: Can't get basic encryption to work
- From: Dominick Baier <dbaier@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 7 Mar 2007 05:55:46 +0000 (UTC)
IIRC closing the underlying writer also does it - but yes you are right, thats good style.
-----
Dominick Baier (http://www.leastprivilege.com)
Developing More Secure Microsoft ASP.NET 2.0 Applications (http://www.microsoft.com/mspress/books/9989.asp)
You should always call FlushFinalBlock when working with block ciphers
(which AES/Rjindael is one of). Block ciphers need to add padding to
data to make the final output be an even block size, so they need to
know when you are done adding data.
Joe K.
.
- References:
- Re: Can't get basic encryption to work
- From: Joe Kaplan
- Re: Can't get basic encryption to work
- Prev by Date: Re: Can't get basic encryption to work
- Next by Date: Re: Can't get basic encryption to work
- Previous by thread: Re: Can't get basic encryption to work
- Next by thread: Good old webservices and SSL
- Index(es):