Last post Sep 08, 2020 06:36 AM by Mikesdotnetting
None
0 Points
12 Posts
Sep 08, 2020 04:15 AM|alvinoo|LINK
Hi there,
I was referring to the below two links to encrypt viewstate will it work?
https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-3.0/w8h3skw9(v=vs.85)?redirectedfrom=MSDN
https://himabinduvejella.blogspot.com/2011/02/what-is-machine-key-in-webconfig.html
All-Star
194506 Points
28081 Posts
Moderator
Sep 08, 2020 06:36 AM|Mikesdotnetting|LINK
Yes, it will work. But ViewState is not the best place to store sensitive data. You should use session instead, in my opinion.
None
0 Points
12 Posts
How do I encrypt viewstate?
Sep 08, 2020 04:15 AM|alvinoo|LINK
Hi there,
I was referring to the below two links to encrypt viewstate will it work?
https://docs.microsoft.com/en-us/previous-versions/dotnet/netframework-3.0/w8h3skw9(v=vs.85)?redirectedfrom=MSDN
https://himabinduvejella.blogspot.com/2011/02/what-is-machine-key-in-webconfig.html
All-Star
194506 Points
28081 Posts
Moderator
Re: How do I encrypt viewstate?
Sep 08, 2020 06:36 AM|Mikesdotnetting|LINK
Yes, it will work. But ViewState is not the best place to store sensitive data. You should use session instead, in my opinion.