Exemple #1
0
 def to_string(self, native=True):
     hash = u"_%s%s%s" % (h64.encode_int24(self.rounds).decode("ascii"),
                          self.salt, self.checksum or u'')
     return to_hash_str(hash) if native else hash
Exemple #2
0
 def to_string(self):
     hash = u("_%s%s%s") % (h64.encode_int24(self.rounds).decode("ascii"), self.salt, self.checksum or u(""))
     return uascii_to_str(hash)
Exemple #3
0
 def to_string(self):
     hash = u("_%s%s%s") % (h64.encode_int24(self.rounds).decode("ascii"),
                          self.salt, self.checksum or u(''))
     return uascii_to_str(hash)