View Single Post
  #66  
Old 10-12-2014, 04:50 PM
gaaara gaaara is offline
Member
 
Join Date: Nov 2013
Posts: 63
gaaara is on a distinguished road
Default

Re: how to decrypt and decode png files to real file (.ass)


hello

i have a probleme with key générated of your script dénobis

is a good key is not a probleme juste but it works randomly

on the script
Code:
   $open = fopen("php\key\keyfile.txt", "r");
  $okey=fgets($open,255);
  $td  = mcrypt_module_open('rijndael-128', '', 'ecb', '');
  $iv  = str_repeat("\x00", 16);

  $key = pack("A*",$okey); ## **not working**

  $key = $key . str_repeat("\x00", 32 - strlen($key));
  mcrypt_generic_init($td, $key, $iv);
  $key = mcrypt_generic($td, $key);
  $key = str_repeat(substr($key, 0, 16), 2);
  mcrypt_generic_deinit($td);
the key is readable

test code
Code:
<?php
$key = pack('A*', 'b8e3c43ee882b09ec4e7ace525dfd45');
echo "$key"
?>
résult
Code:
[gaaara@localhost adn]$ php test
b8e3c43ee882b09ec4e7ace525dfd45
jus actualy not works
Reply With Quote