Results 1 to 2 of 2

Thread: [2.0] XML Encryption and Decryption

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 2003
    Location
    Bonny Scotland
    Posts
    141

    [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

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2.0] XML Encryption and Decryption

    Since you're working with an example and I'm so lazy, can you upload your sample project up here (in a ZIP)?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width