Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MD5 md5;
- byte rgbT[256] = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd', 'f', 'i', 'l', 'e', 0x0c, 0x9d, 0x4a, 0xe4, 0x1e, 0x83, 0x15, 0xfc};
- int cbT = 12+8;
- for (int i=0; i<5; i++) {
- md5.Update(rgbT, cbT);
- cbT = md5.DigestSize();
- md5.Final(rgbT);
- }
- rgbT[cbT] = 0;
- CryptoPP::DES::Decryption desDecryption(rgbT, 8);
- CBC_Mode_ExternalCipher::Decryption decryptor(desDecryption, &rgbT[8]);
- byte out[256];
- decryptor.ProcessData(out, (const byte *)cipher, cb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement