Last active
January 10, 2024 00:04
-
-
Save Beyley/c3bc7d5319bd0e8f22b69010898b18dd to your computer and use it in GitHub Desktop.
extract LBP PSP 128-bit decryption kley
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require("fs"); | |
//key.bin is a file containing the extracted 64-byte region starting from 0x003d9f30 in the decrypted LBP PSP US 2.0.5 EBOOT.BIN | |
let block = fs.readFileSync('key.bin'); | |
let key = Buffer.alloc(16); | |
for (let i = 0; i < 16; ++i) | |
key[i] = block[(i * 4) + (i % 4)]; | |
//psp.key is the output key. | |
fs.writeFileSync('psp.key', key); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment