def hash_question(question, timestamp):
 timestamp = format_timestamp(timestamp)
 hexsha = checksum_question(question, timestamp)
 return u''.join((hexsha, timestamp, b64encode(question.encode(u'utf-8')).decode(u'ascii')))

def hash_question ( question , timestamp ) : timestamp = format_timestamp ( timestamp ) hexsha = checksum_question ( question , timestamp ) return u'' . join ( ( hexsha , timestamp , b64encode ( question . encode ( u'utf-8' ) ) . decode ( u'ascii' ) ) )
hashes question so that it can be later verified .