From 57e7c7cff171be516ad2cc7e882580ac00fd9d0e 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)); } }