[PHP]¿JDownloader wordpress Click'N'Load 2 Examples AES encrypt?

Discussion in 'PHP' started by bacanzito, May 6, 2013.

  1. #1
    ¿JDownloader wordpress Click'N'Load 2 Examples AES encrypt?
    I want to know how can i integrate Click'n'load 2 in my wordpress by using a bbcode or something like [cnl][/cnl], that way i can protect links.
    everything basic is explained here
    jdownloader.org/knowledge/wiki/glossary/cnl2
    Examples?
    jk: AES Key as Javascript funktion. the f function always has to return the correct key. crypted: The Crypted URL Text. See PhP section for encryption details.
    That is what explains the web, but I don't know the way to get the code end, that's what I would need, someone explain to me how to get the encrypted code.
    What we really I need is to know how to converted this:

    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="https://mega.co.nz/files/xxxxx/jDownloader.dmg\r\nhttps://mega.co.nz/files/xxxxx/jDownloader2.dmg";
    $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;
    PHP:
    In this:
    DRurBGEf2ntP7Z0WDkMP8e1ZeK7PswJGeBHCg4zEYXZSE3Qqxsbi5EF1KosgkKQ9SL8qOOUAI+eDPFypAtQS9A==
    I do not know the method to obtain the encryption code, perhaps requires some specific software for the encoding the link, that's what you I really need.
    Sorry for the inconvenience
    this is normal php code and AES encrypts the $link , thats your crypted $ke is jk
    <html>
    <FORM ACTION="http://127.0.0.1:9666/flash/addcrypted2" 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>
    HTML:
    I searched information, but can not find anything about the encoding method of links for click n load 2.
    Would greatly appreciate some help on this issue.
     
    bacanzito, May 6, 2013 IP