Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/MHSanaei/3x-ui.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-09 09:06:27 +0300
committerShishkevich D. <135337715+shishkevichd@users.noreply.github.com>2025-03-09 09:06:27 +0300
commita45e9de47256710020cdf6ee0e21d88102979616 (patch)
tree4f7c1e0f6c73b3758d9195eb17880476d952687d
parent101e9ebf3575f0dfa75b25c1d44b483349ad6fe4 (diff)
chore: use Base64 library for generating SS password
-rw-r--r--web/assets/js/util/index.js2
1 files changed, 1 insertions, 1 deletions
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));
}
}