i’m using a weird proprietary scripting language for a project.
i need to provide a user with a large (14+ digit) number, which they will have to reenter into another system (for later data correlation). having a user enter a number that large (by hand) with no errors will be almost impossible, and will undoubtedly disenfranchise users.
i have been trying to come up with a solution to shorten that number using base64, but all the code i have found is way to complex for this scripting language. is there a simple math algorithm (lossless compression) i can use to make a large number smaller? the result being alpha numeric is fine.
thanx for the great discussion everone.
i ended up implementing a combination of many of your suggestions.
i ended used encoding it in base36 (hexatridecimal) and delimited the string into smaller blocks.
biziclop – if you has submitted an answer as opposed to a comment i would have accepted it. your js code got me thinking in the right direction… thanx!