From 0a301a537c817ae5e314f595c41601d8819fe774 Mon Sep 17 00:00:00 2001 From: sindoring Date: Mon, 9 Mar 2026 21:16:59 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=D0=BE=D0=B7?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20=D0=B0=D0=BA=D0=BA=D0=B0=D1=83?= =?UTF-8?q?=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- create-account.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create-account.sh b/create-account.sh index 9e3c152..ad82689 100644 --- a/create-account.sh +++ b/create-account.sh @@ -179,7 +179,8 @@ if len(email) > 255: salt = secrets.token_bytes(32) inner = hashlib.sha1(f"{username}:{password}".encode("utf-8")).digest() x = hashlib.sha1(salt + inner).digest() -verifier_int = pow(G, int.from_bytes(x, "big"), N) +# AzerothCore SRP6 treats the SHA1 digest as a little-endian bignum. +verifier_int = pow(G, int.from_bytes(x, "little"), N) verifier = verifier_int.to_bytes(32, "little") email_insert = sql_quote(email)