def to_string(self): salt = b64encode(self.salt, CTA_ALTCHARS).decode('ascii') chk = b64encode(self.checksum, CTA_ALTCHARS).decode('ascii') return uh.render_mc3(self.ident, self.rounds, salt, chk, rounds_base=16)
def _get_config(self): rounds = self.rounds if rounds == 400: rounds = None return uh.render_mc3(self.ident, rounds, self.salt, None, rounds_base=16)
def to_string(self): rounds = self.rounds if rounds == 400: rounds = None return uh.render_mc3(self.ident, rounds, self.salt, self.checksum, rounds_base=16)
def to_string(self, config=False): chk = None if config else self.checksum return uh.render_mc3(self.ident, self.rounds, self.salt, chk)
def to_string(self): return uh.render_mc3(self.ident, self.rounds, self.salt, self.checksum)
def to_string(self): salt = ab64_encode(self.salt).decode('ascii') chk = ab64_encode(self.checksum).decode('ascii') return uh.render_mc3(self.ident, self.rounds, salt, chk)
def to_string(self): salt = hexlify(self.salt).decode('ascii').upper() chk = hexlify(self.checksum).decode('ascii').upper() return uh.render_mc3(self.ident, self.rounds, salt, chk, sep=u('.'))