def tokey(*args):
 salt = u'||'.join([force_text(arg) for arg in args])
 hash_ = hashlib.md5(encode(salt))
 return hash_.hexdigest()

def tokey ( * args ) : salt = u'||' . join ( [ force_text ( arg ) for arg in args ] ) hash_ = hashlib . md5 ( encode ( salt ) ) return hash_ . hexdigest ( )
computes a unique key from arguments given .