From b3c05b28faa9cb1f34025340966a60871d130e5b Mon Sep 17 00:00:00 2001 From: Dario48true Date: Wed, 25 Sep 2024 13:17:38 +0200 Subject: [PATCH] key is int :noway: --- site/bin/crypt.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/site/bin/crypt.js b/site/bin/crypt.js index ed26129..d816854 100644 --- a/site/bin/crypt.js +++ b/site/bin/crypt.js @@ -14,6 +14,8 @@ function mod(n, p) { function encrypt(msg, key) { var encMsg = ""; + key -= 0; + for (var i = 0; i < msg.length; i++) { var code = msg.charCodeAt(i);