1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Initial support for saving games

This commit is contained in:
tobspr
2020-05-14 21:54:11 +02:00
parent 23874c43dc
commit b01d38e55d
44 changed files with 690 additions and 777 deletions

View File

@@ -31,13 +31,6 @@ function performJob(job, data) {
case "compressX64": {
return compressX64(data);
}
case "compressWithChecksum": {
const checksum = rusha
.createHash()
.update(data + encryptKey)
.digest("hex");
return compressX64(checksum + data);
}
case "compressFile": {
const checksum = sha1(data.text + salt);
return data.compressionPrefix + compressX64(checksum + data.text);