kcp: noise, header-custom, sudoku

This commit is contained in:
MHSanaei
2026-04-27 01:23:38 +02:00
parent 0aca2d3b3d
commit 9791b05a4e
6 changed files with 174 additions and 74 deletions
+6
View File
@@ -152,6 +152,12 @@ class RandomUtil {
return Base64.alternativeEncode(String.fromCharCode(...array));
}
static randomBase64(length = 16) {
const array = new Uint8Array(length);
window.crypto.getRandomValues(array);
return Base64.alternativeEncode(String.fromCharCode(...array));
}
static randomBase32String(length = 16) {
const array = new Uint8Array(length);