From eb8366abdc95ed6876a09bdc882f46e3ea1d5934 Mon Sep 17 00:00:00 2001 From: C-3PO Date: Sun, 8 Jul 2018 23:29:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20modify=20password=20functi?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ssn/decryption/modifyPassword.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssn/decryption/modifyPassword.ts b/src/ssn/decryption/modifyPassword.ts index 0f7e041..a5417d6 100644 --- a/src/ssn/decryption/modifyPassword.ts +++ b/src/ssn/decryption/modifyPassword.ts @@ -5,7 +5,7 @@ export default function modifyPassword(passwordIn: Uint8Array) { for (let i = 0; i < passwordLength; i += 1) { if (passwordIn[i] === 0) { break; } - let curChar = passwordIn[i] + (1 << (i % 32)); + let curChar = passwordIn[i] + ((1 << (i % 32)) & 0xFF); if (curChar > 0x7E) { if (curChar === 0xFF || curChar === 0x7F) { curChar = 0x3F;