"How can I convert this number (which is a string read from a file) to any base between 2-256?" . . . .