Initial commit

This commit is contained in:
2026-01-30 03:53:38 +07:00
commit 42abc57430
85 changed files with 8922 additions and 0 deletions

1
public/models/.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.glb filter=lfs diff=lfs merge=lfs -text

Binary file not shown.

BIN
public/models/character.enc Normal file

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c287a4d10bbbbc4c779f7b0a68b666b530ef9754142843aa048b4d5976c0d052
size 1537316

16
public/models/encrypt.cjs Normal file
View File

@@ -0,0 +1,16 @@
const crypto = require("crypto");
const fs = require("fs");
const encryptFile = (inputFile, outputFile, password) => {
const key = crypto.createHash("sha256").update(password).digest();
const iv = crypto.randomBytes(16);
const cipher = crypto.createCipheriv("aes-256-cbc", key, iv);
const input = fs.createReadStream(inputFile);
const output = fs.createWriteStream(outputFile);
output.write(iv);
input.pipe(cipher).pipe(output);
};
encryptFile("character.glb", "character.enc", "Character3D#@");