Click here to Skip to main content
15,913,941 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

I have the below code in config file which is encrypted:

<connectionstrings configprotectionprovider="RsaProtectedConfigurationProvider">
<encrypteddata type="http://www.w3.org/2001/04/xmlenc#Element">
xmlns="http://www.w3.org/2001/04/xmlenc#">
<encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc">
<keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<encryptedkey xmlns="http://www.w3.org/2001/04/xmlenc#">
<encryptionmethod algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5">
<keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<keyname>Rsa Key

<cipherdata>
<ciphervalue>G7PVGIQ5088SpJ9Z14NRx59DBxSXDVvWyRWE7X6Msb48T9zT3gNizWnzpWIvDrmSY3+o58=



<cipherdata>
<ciphervalue>L5ON3uqf8Y1y3SgEmpkR+aoeQFe1OIaieOVuaOqtC1JpQkz4g9hgnjbdxiMvcFEGVUijP01xeQ=




I need to decrypt this.Please suggest solution.

Thanks
Posted
Comments
Sergey Alexandrovich Kryukov 11-Jun-12 17:47pm    
Is it only one key from the pair? Is that RSA or what?
--SA

1 solution

To the most common believe of the mathematicians, experts in public-key cryptography, nobody can decrypt any data if only the encryption key is known, and nobody can modify encrypted data if only the decryption key is known. It is equally infeasible to find one key if another key in the pair is known. The whole idea of the public-key cryptography is based on these features.

In fact, this is not strongly proven, but this is the important conjecture which states that a one-way function exists, that is, a function which is not feasible to invert, and the backdoor does not exist. It's commonly believed by the specialists, that the modern public-key cryptography algorithms are the candidates for the one-way functions and that property will be proven sooner or later.

For further information, please see:
http://en.wikipedia.org/wiki/One-way_function[^],
http://en.wikipedia.org/wiki/Backdoor_%28computing%29[^],
http://en.wikipedia.org/wiki/Public-key_cryptography[^],
http://en.wikipedia.org/wiki/RSA_%28algorithm%29[^].

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900