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
Yes, it will work. But ViewState is not the best place to store sensitive data. You should use session instead, in my opinion.