From a45e9de47256710020cdf6ee0e21d88102979616 Mon Sep 17 00:00:00 2001 From: "Shishkevich D." <135337715+shishkevichd@users.noreply.github.com> Date: Sun, 9 Mar 2025 06:06:27 +0000 Subject: [PATCH] chore: use Base64 library for generating SS password --- web/assets/js/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/assets/js/util/index.js b/web/assets/js/util/index.js index 99c76377..cecc8dd4 100644 --- a/web/assets/js/util/index.js +++ b/web/assets/js/util/index.js @@ -139,7 +139,7 @@ class RandomUtil { static randomShadowsocksPassword() { let array = new Uint8Array(32); window.crypto.getRandomValues(array); - return btoa(String.fromCharCode.apply(null, array)); + return Base64.encode(String.fromCharCode.apply(null, array)); } }