@PhiLiP: 这份文档能否公开、上传至如互联网档案馆、IPFS...--Akishima Yuka(留言) 2024年12月17日 (二) 10:44 (UTC)回复
- 还是先别吧,特别是没有修复的情况下。--Vertin,do you want to be the timekeeper? 2025年8月23日 (六) 07:33 (UTC)回复
上述加密内容的密钥为“iloveyouwikipedia”
- 我复现了一下它的解密过程,成功了
- // Final decryption: AES-256-CBC, key = utf8("iloveyouwikipedia") zero-padded to 32 bytes,
- // IV = first 16 bytes of ciphertext, PKCS#7 padding
- const crypto = require('crypto');
- const fs = require('fs');
- const ct = Buffer.from(fs.readFileSync(__dirname + '/cipher.b64', 'utf8').trim(), 'base64');
- const keyStr = 'iloveyouwikipedia';
- const kb = Buffer.from(keyStr, 'utf8');
- const key = Buffer.concat([kb, Buffer.alloc(32 - kb.length)]); // 17 -> 32, zero-padded
- const iv = ct.subarray(0, 16);
- const data = ct.subarray(16);
- const d = crypto.createDecipheriv('aes-256-cbc', key, iv);
- const pt = Buffer.concat([d.update(data), d.final()]);
- const text = pt.toString('utf8');
- fs.writeFileSync(__dirname + '/decrypted.txt', text, 'utf8');
- console.log(`[+] plaintext bytes: ${pt.length}, chars: ${text.length}`);
- console.log('[+] saved to decrypted.txt\n');
- console.log(text);
|
- --Vertin,do you want to be the timekeeper? 2026年9月22日 (二) 06:35 (UTC)回复