diff options
| author | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-09 09:06:27 +0300 |
|---|---|---|
| committer | Shishkevich D. <135337715+shishkevichd@users.noreply.github.com> | 2025-03-09 09:06:27 +0300 |
| commit | a45e9de47256710020cdf6ee0e21d88102979616 (patch) | |
| tree | 4f7c1e0f6c73b3758d9195eb17880476d952687d | |
| parent | 101e9ebf3575f0dfa75b25c1d44b483349ad6fe4 (diff) | |
chore: use Base64 library for generating SS password
| -rw-r--r-- | web/assets/js/util/index.js | 2 |
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)); } } |
