I found a question about making short codes like TinyURL (https://stackoverflow.com/a/960364/1778465), and I am not sure if what I am doing is working.
I have the following test code:
<?php $val = intval('murwaresuperchainreaction', 36); echo $val."\n"; echo base_convert($val, 10, 36) . "\n"; echo "---\n"; $val = intval('murwarebarnstormers', 36); echo $val."\n"; echo base_convert($val, 10, 36) . "\n"; echo "---\n"; $val = intval('murwarenightmare', 36); echo $val."\n"; echo base_convert($val, 10, 36) . "\n"; and I am getting these results:
9223372036854775807 1y2p0ij32e8e7 --- 9223372036854775807 1y2p0ij32e8e7 --- 9223372036854775807 1y2p0ij32e8e7 The question I have, is why are all the results the same? according to the answer I linked to above I should be getting "collision-proof" results, but they are all the same...