Skip to content

Instantly share code, notes, and snippets.

@7flash
Created October 5, 2016 18:57
Show Gist options
  • Save 7flash/41c698e8d2769f062096052267ec2464 to your computer and use it in GitHub Desktop.
Save 7flash/41c698e8d2769f062096052267ec2464 to your computer and use it in GitHub Desktop.
<?php
$file = file_get_contents('aes.txt');
$data = json_decode($file);
$orig = $data->data;
$key = pack('H*', "3dbb8dd8a8b153e9f1aaab6d657e01c2");
$result = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, '3dbb8dd8a8b153e9f1aaab6d657e01c2', $orig, MCRYPT_MODE_CBC, base64_decode($data->iv));
echo $result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment