def digest_integer(m):
 from hashlib import sha1
 return string_to_int(sha1(int_to_string(m)).digest())

def digest_integer ( m ) : from hashlib import sha1 return string_to_int ( sha1 ( int_to_string ( m ) ) . digest ( ) )
convert an integer into a string of bytes .