Commit 87e0a75c authored by Andrews Medina's avatar Andrews Medina Committed by Claude Paroz
Browse files

[py3] Decoded base64-encoded hash in contrib.auth.hashers

parent cb38fd96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -219,7 +219,7 @@ class PBKDF2PasswordHasher(BasePasswordHasher):
        if not iterations:
            iterations = self.iterations
        hash = pbkdf2(password, salt, iterations, digest=self.digest)
        hash = base64.b64encode(hash).strip()
        hash = base64.b64encode(hash).decode('ascii').strip()
        return "%s$%d$%s$%s" % (self.algorithm, iterations, salt, hash)

    def verify(self, password, encoded):