Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
![]() ![]() |
|
Thread Tools | Display Modes |
#31
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)Hi, I use the php script of KSV and my .ass can't be open in aegisub.
Pictures : http://www.hostingpics.net/viewer.ph...912aegisub.jpg http://www.hostingpics.net/viewer.ph...038notepad.jpg Png files are around 30 ko and .ass around 25. Any ideas ? Thanks ![]() |
#32
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)me too, i think adn change crypt in png files
we need you KSV ![]() ![]() Code:
package com.wowza.encryptionAS3 { public class TEA extends Object { public function TEA() { return; }// end function public static function encrypt(param1:String, param2:String) : String { var _loc_9:Number = NaN; var _loc_10:Number = NaN; var _loc_14:Number = NaN; if (param1.length == 0) { return ""; } var _loc_3:* = charsToLongs(strToChars(param1)); if (_loc_3.length <= 1) { _loc_3[1] = 0; } var _loc_4:* = charsToLongs(strToChars(param2.substr(0, 16))); var _loc_5:* = _loc_3.length; var _loc_6:* = _loc_3[(_loc_5 - 1)]; var _loc_7:* = _loc_3[0]; var _loc_8:Number = 2654435769; var _loc_11:* = Math.floor(6 + 52 / _loc_5); var _loc_12:Number = 0; while (_loc_11-- > 0) { _loc_12 = _loc_12 + _loc_8; _loc_10 = _loc_12 >>> 2 & 3; _loc_14 = 0; while (_loc_14 < _loc_5) { _loc_7 = _loc_3[(_loc_14 + 1) % _loc_5]; _loc_9 = (_loc_6 >>> 5 ^ _loc_7 << 2) + (_loc_7 >>> 3 ^ _loc_6 << 4) ^ (_loc_12 ^ _loc_7) + (_loc_4[_loc_14 & 3 ^ _loc_10] ^ _loc_6); var _loc_15:* = _loc_3[_loc_14] + _loc_9; _loc_3[_loc_14] = _loc_3[_loc_14] + _loc_9; _loc_6 = _loc_15; _loc_14 = _loc_14 + 1; } } var _loc_13:* = longsToChars(_loc_3); return charsToHex(_loc_13); }// end function public static function decrypt(param1:String, param2:String) : String { var _loc_9:Number = NaN; var _loc_10:Number = NaN; var _loc_14:Number = NaN; if (param1.length == 0) { return ""; } var _loc_3:* = charsToLongs(hexToChars(param1)); var _loc_4:* = charsToLongs(strToChars(param2.substr(0, 16))); var _loc_5:* = _loc_3.length; var _loc_6:* = _loc_3[(_loc_5 - 1)]; var _loc_7:* = _loc_3[0]; var _loc_8:Number = 2654435769; var _loc_11:* = Math.floor(6 + 52 / _loc_5); var _loc_12:* = Math.floor(6 + 52 / _loc_5) * _loc_8; while (_loc_12 != 0) { _loc_10 = _loc_12 >>> 2 & 3; _loc_14 = _loc_5 - 1; while (_loc_14 >= 0) { _loc_6 = _loc_3[_loc_14 > 0 ? ((_loc_14 - 1)) : ((_loc_5 - 1))]; _loc_9 = (_loc_6 >>> 5 ^ _loc_7 << 2) + (_loc_7 >>> 3 ^ _loc_6 << 4) ^ (_loc_12 ^ _loc_7) + (_loc_4[_loc_14 & 3 ^ _loc_10] ^ _loc_6); var _loc_15:* = _loc_3[_loc_14] - _loc_9; _loc_3[_loc_14] = _loc_3[_loc_14] - _loc_9; _loc_7 = _loc_15; _loc_14 = _loc_14 - 1; } _loc_12 = _loc_12 - _loc_8; } var _loc_13:* = longsToChars(_loc_3); return charsToStr(_loc_13); }// end function private static function charsToLongs(param1:Array) : Array { var _loc_2:* = new Array(Math.ceil(param1.length / 4)); var _loc_3:Number = 0; while (_loc_3 < _loc_2.length) { _loc_2[_loc_3] = param1[_loc_3 * 4] + (param1[_loc_3 * 4 + 1] << 8) + (param1[_loc_3 * 4 + 2] << 16) + (param1[_loc_3 * 4 + 3] << 24); _loc_3 = _loc_3 + 1; } return _loc_2; }// end function private static function longsToChars(param1:Array) : Array { var _loc_2:* = new Array(); var _loc_3:Number = 0; while (_loc_3 < param1.length) { _loc_2.push(param1[_loc_3] & 255, param1[_loc_3] >>> 8 & 255, param1[_loc_3] >>> 16 & 255, param1[_loc_3] >>> 24 & 255); _loc_3 = _loc_3 + 1; } return _loc_2; }// end function private static function longToChars(param1:Number) : Array { var _loc_2:* = new Array(); _loc_2.push(param1 & 255, param1 >>> 8 & 255, param1 >>> 16 & 255, param1 >>> 24 & 255); return _loc_2; }// end function private static function charsToHex(param1:Array) : String { var _loc_2:* = new String(""); var _loc_3:* = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f"); var _loc_4:Number = 0; while (_loc_4 < param1.length) { _loc_2 = _loc_2 + (_loc_3[param1[_loc_4] >> 4] + _loc_3[param1[_loc_4] & 15]); _loc_4 = _loc_4 + 1; } return _loc_2; }// end function private static function hexToChars(param1:String) : Array { var _loc_2:* = new Array(); var _loc_3:* = param1.substr(0, 2) == "0x" ? (2) : (0); while (_loc_3 < param1.length) { _loc_2.push(parseInt(param1.substr(_loc_3, 2), 16)); _loc_3 = _loc_3 + 2; } return _loc_2; }// end function private static function charsToStr(param1:Array) : String { var _loc_2:* = new String(""); var _loc_3:Number = 0; while (_loc_3 < param1.length) { _loc_2 = _loc_2 + String.fromCharCode(param1[_loc_3]); _loc_3 = _loc_3 + 1; } return _loc_2; }// end function private static function strToChars(param1:String) : Array { var _loc_2:* = new Array(); var _loc_3:Number = 0; while (_loc_3 < param1.length) { _loc_2.push(param1.charCodeAt(_loc_3)); _loc_3 = _loc_3 + 1; } return _loc_2; }// end function } } Last edited by blurg : 09-10-2014 at 09:26 AM. |
#33
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)out to date
Last edited by gaaara : 09-14-2014 at 11:13 AM. |
#35
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)the key have 1 more time change but........=>MP
|
#36
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)résolv
Last edited by gaaara : 09-14-2014 at 11:13 AM. |
#37
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)i don't understand what you guys are trying to say. why you are replacing new key with something else and then asking why it's not working? i have tested the script on following sample and it works as expected.
http://www.filedropper.com/m321 |
#38
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)the new key in files swf
Last edited by gaaara : 09-14-2014 at 10:31 AM. |
#39
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)KSV i know, but ADN have 1 more time changing the key since last time
|
#40
|
|||
|
|||
![]() Re: how to decrypt and decode png files to real file (.ass)hmm.. either it was a pure coincidence or they are changing keys on some rotational basis. anyway i have pushed the new key.
|
![]() ![]() |
Tags: assfiles, rtmpdump |
Thread Tools | |
Display Modes | |
|
|