compression - PHP to convert a string of 20 alphanumeric characters into 10 alphanumeric characters -


for work, we'll given alphanumeric string of 20 characters. need find out if can convert 20 character string 10 characters, , able reverse later.

i thinking of converting alpha characters numbers, dividing number, 16.8347464849, give me smaller number. going other way, multiply small number 16.8347464849 original, converting numbers letters tricky.

is there way other storing database on server of converted values?

example:
$string = "8d89a6df8fg7fg87f87";
$converted = $string / magic; //$converted = "8a0s9872aa";

you can not without other information format of original string. if input string can have * * 20 alphanumeric characters, , transforming 10 alphanumeric characters, there several 20 character strings output same 10 character string, making impossible revert transformation.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -