Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2012
1,076
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. MD5 md5;
  2. byte rgbT[256] = {'p', 'a', 's', 's', 'w', 'o', 'r', 'd', 'f', 'i', 'l', 'e', 0x0c, 0x9d, 0x4a, 0xe4, 0x1e, 0x83, 0x15, 0xfc};
  3. int cbT = 12+8;
  4. for (int i=0; i<5; i++) {
  5. md5.Update(rgbT, cbT);
  6. cbT = md5.DigestSize();
  7. md5.Final(rgbT);
  8. }
  9. rgbT[cbT] = 0;
  10. CryptoPP::DES::Decryption desDecryption(rgbT, 8);
  11. CBC_Mode_ExternalCipher::Decryption decryptor(desDecryption, &rgbT[8]);
  12. byte out[256];
  13. decryptor.ProcessData(out, (const byte *)cipher, cb);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement