Skip to content

Instantly share code, notes, and snippets.

@Beyley
Last active January 10, 2024 00:04
Show Gist options
  • Save Beyley/c3bc7d5319bd0e8f22b69010898b18dd to your computer and use it in GitHub Desktop.
Save Beyley/c3bc7d5319bd0e8f22b69010898b18dd to your computer and use it in GitHub Desktop.
extract LBP PSP 128-bit decryption kley
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