as follow are the steps to encrypt & decrypt web configuration. using aspnet_regiis.exe, which supports RSA encryption in webfarm scenario
1. Open command prompt
2. From command prompt, You must go to folder: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
3. Write this code to Encrypt : aspnet_regiis.exe -pef "appSettings" "C:\temp".
4. Write this code to Decrypt : aspnet_regiis.exe -pdf "appSettings" "C:\temp".
Note:
- '-pef' means to encrypt; '-pdf' means to decrypt
- 'appSettings' is the section that want to be encrypted
- that folder 'temp' in drive C is the physical location where the web configuration file should exist
5. whoaalaaa... there you go. it was encrypted or decrypted.
phfeww... i thought that it was encrypt/decrypted on other planet...
thanks to http://odetocode.com/blogs/scott/archive/2006/01/08/encrypting-custom-configuration-sections.aspx
Warning: This encrypt can only be decrypt in the same computer and cannot be share to other computer to decrypt.
if you want to share or use other computer to decrypt, you must use custom keys and the RSA provider, for more details klik here: http://msdn2.microsoft.com/en-us/library/68ze1hb2(en-US,VS.80).aspx
or http://www.c-sharpcorner.com/blogs/BlogDetail.aspx?BlogId=229
Best Regards,
Fedrik
Hi,
ReplyDeleteVery good thought, I like your contents. Thanks a lot...
PDF File Protection
wow.. i can't imagine if the computer to be encrypt to crash :)
ReplyDelete