Click here to Skip to main content
15,911,142 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi all

Im encrypting and passing id from one page to another
in test1.aspx
listing all attachemt when click on preview in one item im passing id of that field after encryption to next page say test2.aspx
Response.Redirect("~/test/test2.aspx?id=" + ls_encry);
in page test2 i used code to decrypt this and im getting all these well
problem coming when i passed this url to next system
www.mydom.com/test/test2.asp?id=FFvruvzDN%2bA%3d
login page comes .. after successfull login redirect to test2 page but in this case decryption not works showing bad data

why coming so i tried many encryption and decrption algorithams but result is same in all cases.
wht i noticed is
hcrEC2WtGoE= :-guery value in first working case
hcrec2wtgoe= :- query value in not working case all characters converted to lower case
Any solution for this problem

Thanks in advance
Amritha
Posted
Comments
Why have you converted to lower case? Any reasons?
amritha444 21-Mar-14 23:44pm    
hi i didnt converted. its coming so
when i paste www.mydom.com/test/test2.asp?id=FFvruvzDN%2bA%3d seperately its coming in lowecase .at that time decryption not occurs and ends with bad data error ..
but when going through my project
Response.Redirect("~/test/test2.aspx?id=" + ls_encry);
its working well
why coming so any idea??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900