const aesjs
This commit is contained in:
parent
c6d04b5e69
commit
c60e12eeba
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,4 @@
|
||||||
/* global require HKReadTextArea */
|
/* 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.
|
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
|
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 ----------------- //
|
// ---------------- 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 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));
|
const BASE64_ARRAY = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split("").map(c => c.charCodeAt(0));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue