[feature] multi-user shadowsocks

This commit is contained in:
Alireza Ahmadi
2023-05-02 19:56:41 +02:00
parent 4736786c6f
commit 39c1a4276d
9 changed files with 281 additions and 102 deletions

View File

@@ -146,6 +146,12 @@ class RandomUtil {
}
return string;
}
static randomShadowsocksPassword(){
let array = new Uint8Array(32);
window.crypto.getRandomValues(array);
return btoa(String.fromCharCode.apply(null, array));
}
}
class ObjectUtil {