Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to encrypt and decrypt viewstate values in web.config and page files in the most secure manner?
When Tested with App Scan tool vulnerability shown is higher for the viewstate encryption decryption process. Hackers can tamper the data because of this. Viewstate has been avoided in max places as it causes Performance issues. I am using VS 2005(asp.net with c#) and Sql server 2005.
Posted

Refer How to make ViewState secure in ASP.NET[^].
Quote:
We can also enable these settings for EnableViewStateMAC and ViewStateEncryptionMode in web.config:


 
Share this answer
 
Comments
Nirav Prabtani 4-Jun-14 2:36am    
my 5+
Thanks Nirav. :)
Another way is playing it with your own encryption library.

This article explains how to intercept the viewstate handling process:
ViewState Compression[^]

This article explains how to encrypt bytes:
C# AES 256 bits Encryption Library with Salt[^]

Combining these 2 articles enables you to encrypt the viewstate yourself.
 
Share this answer
 
v3

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