Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Viewstate encoding (algorithm behind it)

Posted on 2004-10-22
6
Medium Priority
?
857 Views
Last Modified: 2011-10-03
Hi folks:

Does any one of you know what is the encoding algorithm behind viewstate hidden field. I hope it is not proprietary. Can we do the same encoding by using System.Security.Cyrptography namespace. thanks in advance.
0
Comment
Question by:rxraza
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
nitrogenx earned 200 total points
ID: 12389675
Viewstate is basically a base64encodedstring  

This should answer all your questions:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspnet/html/asp11222001.asp

Refer especially to: "Making ViewState More Secure"
0
 

Author Comment

by:rxraza
ID: 12400924
Ok it is base64encoded string, thanks for providing me with the info. Is there a way I can see what actually in it. IS THERE A WAY WE CAN READ base64encoded string?
0
 
LVL 3

Expert Comment

by:nitrogenx
ID: 12405324
You accepted the answer, can you tell me what your final code looks like?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:rxraza
ID: 12411141
NitrogenX:

Actually Still I need to know how to decode it back. I asked the question about the algorithm behind it for which I got the answer. I have not tried encoding/decoding as of yet.
0
 
LVL 3

Expert Comment

by:nitrogenx
ID: 12417589
Please let me know if that helped.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have developed many web applications with asp & asp.net and to add and use a dropdownlist was always a very simple task, but with the new asp.net, setting the value is a bit tricky and its not similar to the old traditional method. So in this a…
A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question