Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <?php
  2.   $ciphertext = base64_decode("zA/eeF+WFVMDsZ7+iA==");
  3.   $iv = substr($ciphertext, 0, 8);
  4.   $text = substr($ciphertext, 8, strlen($ciphertext) - 8);
  5.  
  6.   $td = mcrypt_module_open("rijndael-256", "", "cbc", $iv);
  7.   mcrypt_generic_init($td, "PasswordPassword", $iv);
  8.   $plaintext = mdecrypt_generic($td, $text);
  9.   echo $plaintext;
  10.   mcrypt_generic_deinit($td);
  11.   mcrypt_module_close($td);
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement