Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $ciphertext = base64_decode("zA/eeF+WFVMDsZ7+iA==");
- $iv = substr($ciphertext, 0, 8);
- $text = substr($ciphertext, 8, strlen($ciphertext) - 8);
- $td = mcrypt_module_open("rijndael-256", "", "cbc", $iv);
- mcrypt_generic_init($td, "PasswordPassword", $iv);
- $plaintext = mdecrypt_generic($td, $text);
- echo $plaintext;
- mcrypt_generic_deinit($td);
- mcrypt_module_close($td);
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement