I have a very large integer of 12-14 digits, and I want to encrypt / compress this to an alphanumeric value so that the integer can be recovered later from the alphanumeric value. I tried converting this integer using base 62 and tried to match these values ββwith a-zA-Z0-9, but the value generated from this is 7 characters. This length is still long enough, and I want to convert it to about 4-5 characters.
Is there a general way to do this or some method in which this can be done so that integer recovery would be possible? I am asking the mathematical aspects here, but I would program it in PHP, and recently I started programming in php.
Edit:
I thought about assigning a masking bit and used it in such a way as to generate fewer characters. I am aware of the fact that the range is not enough, and that is why I focused on using a mathematical trick or presentation method. Base 62 was an idea that I have already applied, but does not work.
source
share