|
-
Jul 11th, 2006, 11:01 AM
#1
Thread Starter
Addicted Member
[2.0] XML Encryption and Decryption
Hi,
I have been trying to use the Microsoft example code from the following link to encrypt elements in an XML file. There is a link at the foot of the page relating to the corresponding decrypt code.
http://msdn2.microsoft.com/en-us/library/ms229746.aspx
As suggested just before the example this is ideal for applications that want to save encrypted data between times taht they are run. Encrypting the file is not a problem, this works really well. The problem comes when i attempt to decrypt the data. I get an exception stating:
"Unable to retrieve decryption key."
The XML file is then not translated back to its initial plain text form.
Has anyone used this code before and could give me some guidance as to what i'm doing wrong.
Any ideas/help would be greatfully recieved.
Thanks in advance,
Grant
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|