Im trying to reverse engineering some Javascript code and recode it in PHP. There is a String which is "converted" with parseInt(String, 36) to an Integer. I need a posibility to convert the integer back to the secret String in PHP, without knowing the secret string.
secretCode = "0vo8fz4kvy03";
decode = parseInt(secretCode, 36).toString();
console.log(decode); //= 115802171408044510
How i can do that in PHP?
115802171408044510
back to 0vo8fz4kvy03
This interger contains some informations:
decode="115802171408044510";
storeID = decode.substr(0, 4); // 1158
posID = decode.substr(12, 2); // 04
orderID = decode.substr(14, 2); // 45
day = decode.substr(6, 2); // 17
month = decode.substr(4, 2); // 02
hour = decode.substr(8, 2); // 14
minutes = decode.substr(10, 2); // 08
I would like to edit this values above and convert this back to a "secretCode" String. They are doing exactly this somehow server-side.