Skip to content

Commit a45e9de

Browse files
committed
chore: use Base64 library for generating SS password
1 parent 101e9eb commit a45e9de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/assets/js/util/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class RandomUtil {
139139
static randomShadowsocksPassword() {
140140
let array = new Uint8Array(32);
141141
window.crypto.getRandomValues(array);
142-
return btoa(String.fromCharCode.apply(null, array));
142+
return Base64.encode(String.fromCharCode.apply(null, array));
143143
}
144144
}
145145

0 commit comments

Comments
 (0)