const aesjs

This commit is contained in:
ReznoRMichael 2021-01-25 21:45:53 +01:00
parent c6d04b5e69
commit c60e12eeba

View file

@ -1,6 +1,4 @@
/* global require HKReadTextArea */
// AES JS
const aesjs = require("./aes-js.js");
/*
Parts of the code thanks to bloodorca https://github.com/bloodorca/hollow (base64.js, functions.js) with slight modifications.
The steps used there for decryption were taken from KayDeeTee https://github.com/KayDeeTee/Hollow-Knight-SaveManager
@ -9,6 +7,9 @@ const aesjs = require("./aes-js.js");
// ---------------- Constants ----------------- //
// AES JS for file decryption
const aesjs = require("./aes-js.js");
const CSHARP_HEADER = [0, 1, 0, 0, 0, 255, 255, 255, 255, 1, 0, 0, 0, 0, 0, 0, 0, 6, 1, 0, 0, 0]; // 22 bytes
const BASE64_ARRAY = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").map(c => c.charCodeAt(0));