Alaa-abdulridha / aspnetCryptTools

Just some random small tools for dealing with asp.net Forms Authentication Cookies

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aspnetCryptTools

Instructions

-Create a new C# (.net framework) console application in Visual Studio

-Replace the contents of program.cs with that of FormsDecrypt.cs or FormsEncrypt.cs (whichever you are compiling)

-Replace the contents of app.config with the app.config in this repo

-Put the desired decryption / validation keys in the app.config, make sure the algo's are set correctly

-Build the solution, and then use from the command line

For FormsDecrypt.cs:

After building, run on the command line. Example: FormsDecrypt.exe [your encrypted forms cookie]

For FormsEncrypt.cs:

By default, it loads an existing cookie and swaps out the userData field, and adds time to the expiry. To change the username, simply comment out the existing one and use the currently commented line which uses a user-defined username.

About

Just some random small tools for dealing with asp.net Forms Authentication Cookies


Languages

Language:C# 100.0%