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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user