Quick question. I am trying to find or write an encoder in Python to shorten a string of numbers using upper and lower case letters. Numeric lines look something like this:
20120425161608678259146181504021022591461815040210220120425161608667
The length is always the same.
My initial thought was to write some simple encoder to use upper and lower case letters and numbers to shorten this line into something more like this:
a26Dkd38JK
It was completely arbitrary, just trying to be as clear as possible. I am sure there is a really smooth way to do this, perhaps already built-in. Maybe this is a question that is awkward even to be asked.
In addition, I need to remove the shortened string and convert it to a longer numeric value. Do I have to write something and publish the code, or is it one line built into the Python function that I should already know about?
Thanks!
Ryan martin
source share