JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 19.07.2012, 23:16
Wachimiro Wachimiro is offline
Baby Loader
 
Join Date: Jul 2012
Posts: 5
Default Como encriptar link para Click'n'Load 2?

Resulta que llevo un par de dias mirando el tema del Click'n'Load 2 y la manera sencilla sin tener que encriptar el link lo entiendo por que es sencilla, pero la otra manera que en la web ponen de ejemplo esto:

Quote:
<FORM ACTION="**External links are only visible to Support Staff** target="hidden" METHOD="POST">
<INPUT TYPE="hidden" NAME="passwords" VALUE="myPassword">
<INPUT TYPE="hidden" NAME="source" VALUE="http://jdownloader.org/spielwiese">
<INPUT TYPE="hidden" NAME="jk" VALUE="function f(){ return '31323334353637383930393837363534';}">
<INPUT TYPE="hidden" NAME="crypted" VALUE="DRurBGEf2ntP7Z0WDkMP8e1ZeK7PswJGeBHCg4zEYXZSE3Qqxsbi5EF1KosgkKQ9SL8qOOUAI+eDPFypAtQS9A==">
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Add Link to JDownloader">
</FORM>
No se como conseguir encriptar un link como el ejemplo de la web.

El paso que me falta es saber como pasar de esto:

Quote:
function base16Encode($arg){
$ret="";
for($i=0;$i<strlen($arg);$i++){
$tmp=ord(substr($arg,$i,1));
$ret.=dechex($tmp);
}
return $ret;
}

$key="1234567890987654";
$transmitKey=base16Encode($key);
$link="**External links are only visible to Support Staff**\r\n**External links are only visible to Support Staff**;
$cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', '');
@mcrypt_generic_init($cp, $key,$key);
$enc = mcrypt_generic($cp, $link);
mcrypt_generic_deinit($cp);
mcrypt_module_close($cp);
$crypted=base64_encode($enc);

echo $crypted;
a esto DRurBGEf2ntP7Z0WDkMP8e1ZeK7PswJGeBHCg4zEYXZSE3Qqxsbi5EF1KosgkKQ9SL8qOOUAI+eDPFypAtQS9A==

Alguien podria ayudarme con este problema?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 14:45.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.