I have a string that may vary in length somewhere between 20 and 80 characters and will only contain a-z, dashes, periods and 0-9
Its basically the productid-itemtype-domainname
Most of these come well under 50 characters in total length but a domain name can be ordered with up to 63 characters (plus the .com) in length alone.
This example string is 54 characters long. The problem is that I need to store this as 50 characters or less and I need to be able to reverse the encoding or encryption so I can read it without knowing what it is or entering it initially to be hashed.
Basically I need something like like what the php function base64_encode and base64_decode does but with a resulting character length limit of 50...
Is this possible?