Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 23rd, 2012  |  syntax: PHP  |  size: 0.40 KB  |  views: 13  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data