I am Encrypting a string in c# and sending this to a php page like this.
sfplr.Attributes.Add("href", "http://sml.com.pk/a/sfpl/reports.php?id=" + Convert.ToBase64String(Encoding.Unicode.GetBytes(emailid)));
and the url genrated from this code is like this
http://sml.com.pk/a/sfpl/reports.php?id=bQBhAGwAaQBrAC4AYQBkAGUAZQBsAEAAcwBoAGEAawBhAHIAZwBhAG4AagAuAGMAbwBtAC4AcABrAA==
Now I want to decrypt again this bQBhAGwAaQBrAC4AYQBkAGUAZQBsAEAAcwBoAGEAawBhAHIAZwBhAG4AagAuAGMAbwBtAC4AcABrAA== in php o display in php page.Please any one help me to do this
Try using
base64_decodefunctionReference http://php.net/manual/en/function.base64-decode.php
In your case, it will be: