Kaydet (Commit) 967aa7f6 authored tarafından Tim Graham's avatar Tim Graham Kaydeden (comit) GitHub

Fixed #27010 -- Made Argon2PasswordHasher decode with ASCII.

The underlying hasher only generates strings containing ASCII
characters so this is merely a cosmetic change.
üst 272eccf7
......@@ -323,7 +323,7 @@ class Argon2PasswordHasher(BasePasswordHasher):
hash_len=argon2.DEFAULT_HASH_LENGTH,
type=argon2.low_level.Type.I,
)
return self.algorithm + data.decode('utf-8')
return self.algorithm + data.decode('ascii')
def verify(self, password, encoded):
argon2 = self._load_library()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment