.net - Change Microsoft Config File Encryption Method From TripleDES -


when encrypting ("protecting") microsoft config sections, looks xml below. follows (at least partially) w3 spec xml encryption.

however, in xml below you'll see encryptionmethod under encrypteddata section "tripledes-cbc". able change more-secure alternative, aes, specified in aforementioned w3 spec well.

in many calls microsoft's support engineers, near understanding question, less answering it. there way change encryption method?

i forgot mention earlier set rsaprotectedconfigurationprovider, key appears encrypted rsa, whereas data encrypted 3des.

<misccryptodata configprotectionprovider="someconfigprotectionprovider">   <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</keyname>         </keyinfo>         <cipherdata>           <ciphervalue>asf78ag78asg\...cryptoyadayada...asdf8r=</ciphervalue>         </cipherdata>       </encryptedkey>     </keyinfo>     <cipherdata>       <ciphervalue>zxcv6asdf35...largercryptoyadayada...u7i8o9p=</ciphervalue>     </cipherdata>   </encrypteddata> </misccryptodata> 

i've checked rsaprotectedconfigurationprovider reflector , found out there nothing can change tripledes-cbc else.

so have write own protectedconfigurationprovider if want use aes encryption. may want use reflector give start.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -