in reply to Base64 Encoding
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Base64 Encoding
by mikemc24 (Novice) on Feb 19, 2011 at 06:04 UTC | |
by ikegami (Patriarch) on Feb 19, 2011 at 06:51 UTC | |
by mikemc24 (Novice) on Feb 19, 2011 at 20:06 UTC | |
by ikegami (Patriarch) on Feb 20, 2011 at 00:13 UTC | |
by mikemc24 (Novice) on Feb 19, 2011 at 20:12 UTC | |
by jethro (Monsignor) on Feb 20, 2011 at 03:50 UTC | |
by mikemc24 (Novice) on Feb 20, 2011 at 06:37 UTC |