base_convert() does not seem to be working as I expected.
I ran the following code:
$ccNumStr = "5555444433331111";
echo "CC#: ".$ccNumStr;
$encrypt = base_convert($ccNumStr,10,36);
echo " <P>Encrypt: ".$encrypt;
$decrypt = base_convert($encrypt,36,10);
echo " <P>Decrypt: ".$decrypt." <P>";
Ans I got the following results:
CC#: 5555444433331111
Encrypt: cesv7b0f53
Decrypt: 2498396201895
So did I do something wrong?
Or is base_convert() malfunctioning?