def str642int(string):
 if (not ((type(string) is types.ListType) or (type(string) is types.StringType))):
  raise TypeError('You must pass a string or a list')
 integer = 0
 for byte in string:
  integer *= 64
  if (type(byte) is types.StringType):
   byte = ord(byte)
  integer += from64(byte)
 return integer

def str642int ( string ) : if ( not ( ( type ( string ) is types . ListType ) or ( type ( string ) is types . StringType ) ) ) : raise TypeError ( 'You must pass a string or a list' ) integer = 0 for byte in string : integer *= 64 if ( type ( byte ) is types . StringType ) : byte = ord ( byte ) integer += from64 ( byte ) return integer
converts a base64 encoded string into an integer .