views:

38

answers:

1

Hi All,

Why is it that I see the same hash value generated when I use different algorithms for viewstate encryption. I have added below lines to the web.config file

pages viewstateEncryptionMode="Always" enableViewStateMac="true".../>

machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="AES" decryption="Auto" />

Also, compilation debug="false" ... > is set.

No matter what I use (AES, MD5, SHA1, 3DES), it generates the same hash. Is there something I am missing out.

Please let me know.

-Thanks

A: 

Here is an article on Encrypting Viewstate. It's for ASP.Net 2.0. which should be fine for 3.5.

Chuck Conway
Thanks. But this link only talk about encrypting the viewstate. My question is about making different algorithms to work with the viewstate encryption.
ajk