def longToString(l):
 result = ''
 while (l > 0L):
  result = (chr((l % 256)) + result)
  l = (l / 256L)
 return result

def longToString ( l ) : result = '' while ( l > 0 L ) : result = ( chr ( ( l % 256 ) ) + result ) l = ( l / 256 L ) return result
convert long to digest .