i need to use base 64 to encrypt some data.
but while everyone can decode it, does it make sense to encode it?
so i need to use custom maping table to encode insted of “ABCD……789+/”
i found a function at php.net –
http://www.php.net/manual/en/function.base64-encode.php#78765
it can do what i need
but i don’t know how to decode the encrypted data.
base64 encryption really isn’t for security. You want to use mcrypt or similar for that. base64 is specifically for transferring data in a way that is safe and can be understood by multiple interested parties.
But, here is how you’d go about undoing that poster’s method:
If you look at his comments, he’s switched ‘s’ and 9 (actually, his array has two ‘S’, but I think the second was a typo). So this should work: