Exemplo n.º 1
0
 def _calc_checksum_builtin(self, secret):
     if isinstance(secret, unicode):
         secret = secret.encode("utf-8")
     if _BNULL in secret:
         raise uh.exc.NullPasswordError(self)
     chk = _builtin_bcrypt(secret, self.ident.strip("$"), self.salt.encode("ascii"), self.rounds)
     return chk.decode("ascii")
Exemplo n.º 2
0
 def _calc_checksum_builtin(self, secret):
     if isinstance(secret, unicode):
         secret = secret.encode("utf-8")
     if _BNULL in secret:
         raise uh.exc.NullPasswordError(self)
     chk = _builtin_bcrypt(secret, self.ident.strip("$"),
                           self.salt.encode("ascii"), self.rounds)
     return chk.decode("ascii")
Exemplo n.º 3
0
 def _calc_checksum_builtin(self, secret):
     chk = _builtin_bcrypt(secret, self.ident.strip("$"),
                           self.salt.encode("ascii"), self.rounds)
     return chk.decode("ascii")
Exemplo n.º 4
0
 def _calc_checksum_builtin(self, secret):
     chk = _builtin_bcrypt(secret, self.ident.strip("$"),
                           self.salt.encode("ascii"), self.rounds)
     return chk.decode("ascii")
Exemplo n.º 5
0
 def _calc_checksum_builtin(self, secret, config):
     chk = _builtin_bcrypt(secret, config[1:config.index("$", 1)],
                           self.salt.encode("ascii"), self.rounds)
     return chk.decode("ascii")