Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $privateKey = "d7f8g9hk0dj2s712";
- $iv = "f7h9a5d0gkvi7v6v";
- $data = "http://tivi.crackgame.net/youtubefaker/Hai-co-tien-365.mp4";
- $encrypted1 = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $privateKey, $data . " ", MCRYPT_MODE_CBC, $iv);
- $encrypted2 = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $privateKey, padding($data), MCRYPT_MODE_CBC, $iv);
- echo $data . "mao" . strlen($data);
- echo "<br>";
- echo padding($data) . "mao" . strlen(padding($data));
- echo "<br>";
- echo strToHex($encrypted1);
- echo "<br>";
- echo strToHex($encrypted2);
- //echo "<br>";
- //echo(base64_encode($encrypted));
- function strToHex($string){
- $hex='';
- for ($i=0; $i < strlen($string); $i++){
- $hex .= dechex(ord($string[$i]));
- }
- return $hex;
- }
- function padding($string){
- $len = strlen($string);
- $du = $len % 16;
- $space = 16 - $du;
- $output = $string;
- for($i=0; $i<$space; $i++){
- $output = $output . " ";
- }
- return $output;
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment