In my Application_Error handler in global.aspx, I email myself some information if my web app faults on my remote server. Included in the information I email myself is my viewstate. I would really like to decode the viewstate so I can get a better picture of what is going on at the time of the fault.
The problem is that my viewstate is 3DES encoded. In my web.config I have a <machineKey> tag, with a fixed validationKey, descryptionKey, and validation="3DES". So in theory I can base-64 decode my viewstate and decrypt it with my validationKey (?). I'm having a problem finding the right tools to do this. I've found some viewstate decoders but they either fail (presumably because it's 3DES encrypted?) or spit out some data that I don't know how to 3DES decrypt.
What is the encoding/encrypting sequence here, does the server first encrypt then base-64 encode? So to reverse I need a base-64 decoder that won't choke and then some kind of 3DES decryption tool for the result, does anyone have any suggestions? Or is there some sourcode code I can use to cobble together a little decrypter of my one?
View Complete Post