import sha, md5 # Return a binary digest def compute( data ): return sha.new( data ).digest() #return md5.new( data ).digest()