This part of the code looks correct. You construct $encode much too big, but substr() corrects that
You didn't show the rest of your code, it might be that the problem is there. It might be that the problem is on the other side on the server
I would suggest you try to test your code with a really short $user_string and a short key, so that you can calculate everything by hand and compare that with what your script does.
You do know that the encryption you are using is horribly weak?
In reply to Re: Base64 Encoding
by jethro
in thread Base64 Encoding
by mikemc24
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |