Solved

Viewstate encoding (algorithm behind it)

Posted on 2004-10-22
846 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
Question by:rxraza
    6 Comments
     
    LVL 3

    Accepted Solution

    by:
    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
    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
    You accepted the answer, can you tell me what your final code looks like?
    0
     

    Author Comment

    by:rxraza
    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
    0
     
    LVL 3

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    933 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now