core: fix SCRAM challenge parsing.
This commit is contained in:
parent
3d30449a93
commit
8752c60a84
1 changed files with 3 additions and 1 deletions
|
|
@ -88,7 +88,9 @@ class ScramSha:
|
|||
@param challenge: Challenge string from the server.
|
||||
@return: Client proof.
|
||||
"""
|
||||
challenge_parts = dict(item.split("=") for item in challenge.decode().split(","))
|
||||
challenge_parts = dict(
|
||||
item.split("=", 1) for item in challenge.decode().split(",")
|
||||
)
|
||||
self.server_nonce = challenge_parts["r"]
|
||||
salt = base64.b64decode(challenge_parts["s"])
|
||||
iterations = int(challenge_parts["i"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue