Encrypt and Decrypt a file using .NET 2.0?
- From: JDeats <Jeremy.Deats@xxxxxxxxx>
- Date: 23 Apr 2007 18:07:46 -0700
I have some .NET 1.1 code that utilizes this technique for encrypting
and decrypting a file.
http://support.microsoft.com/kb/307010
In .NET 2.0 this approach is not fully supported (a .NET 2.0 build
with these methods, will appear to encrypt and decrypt, but the
resulting decrypted file will be corrupted. I tried encrypting a .bmp
file and then decrypting, the resulting decrypted file under .NET 2.0
is garbage, the .NET 1.1 build works as expected).
I would like to know why this approach is no longer supported, aside
from building a .NET 1.1 class library and referencing it in my .NET
2.0 project, what is the proper way to encrypt and decrypt a file
using ,NET 2.0 and the DES encryption algorithm.
.
- Follow-Ups:
- Re: Encrypt and Decrypt a file using .NET 2.0?
- From: William Stacey [C# MVP]
- Re: Encrypt and Decrypt a file using .NET 2.0?
- Prev by Date: Multi Threaded App - Stack Trace Error
- Next by Date: Re: Encrypt and Decrypt a file using .NET 2.0?
- Previous by thread: Multi Threaded App - Stack Trace Error
- Next by thread: Re: Encrypt and Decrypt a file using .NET 2.0?
- Index(es):
Relevant Pages
|