def int2str64(number):
 if (not ((type(number) is types.LongType) or (type(number) is types.IntType))):
  raise TypeError('You must pass a long or an int')
 string = ''
 while (number > 0):
  string = ('%s%s' % (to64((number & 63)), string))
  number /= 64
 return string

def int2str64 ( number ) : if ( not ( ( type ( number ) is types . LongType ) or ( type ( number ) is types . IntType ) ) ) : raise TypeError ( 'You must pass a long or an int' ) string = '' while ( number > 0 ) : string = ( '%s%s' % ( to64 ( ( number & 63 ) ) , string ) ) number /= 64 return string
converts a number to a string of base64 encoded characters in the range of 0-9 .