Click here to Skip to main content
15,915,164 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
there are two parameters frm=table& id=24in url , then its encrypted url is
:enc=/3wUm3yXa4unZoIYymf8mHqQTVE5wB6Xyn2Kqfsnlu+DQyKYzrBop+7wxuKxjUGN
and for decryption i use byte[] decrypt=convert.fromBase64String(inputstr); it gives an error -Invalid character in a Base-64 string. what can i do?
Posted

1 solution

You have to replace the chars +, / with different chars from the encrypted string before posting, there there won't be problem in the decryption. After posting to cross check, replace the same in the comparable decrypted string and make the comparison or put back the replaced chars back in the post handling event.
 
Share this answer
 
v2

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