checkpoint: secure assets and login flow baseline

This commit is contained in:
Lorenzune
2026-04-23 07:01:09 +02:00
parent f6096371be
commit 237c523f9a
17 changed files with 3573 additions and 694 deletions
+13
View File
@@ -0,0 +1,13 @@
const KEY = new TextEncoder().encode('slogga-dist-assets-2026');
export const encodeBytes = bytes =>
{
const output = new Uint8Array(bytes.length);
for(let index = 0; index < bytes.length; index++)
{
output[index] = bytes[index] ^ KEY[index % KEY.length] ^ ((index * 31) & 255);
}
return output;
};