JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #1  
Old 20.07.2012, 05:33
Wachimiro Wachimiro is offline
Baby Loader
 
Join Date: Jul 2012
Posts: 5
Default I need help for encrypting with click n load 2

First sorry for my english I use a traslator.

I would like to integrate click n load 2 on my website, but i dont know how to get the encrypted link.

The easy way uncodified link explaining the web. I understand and working properly

But in the way encrypted, do not know how to encrypt the link as in the example of the web.

example:

Quote:
<html>
<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>
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

Last edited by Jiaz; 20.07.2012 at 08:56.
Reply With Quote
  #2  
Old 20.07.2012, 08:56
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,886
Default

everything basic is explained here
http://jdownloader.org/knowledge/wiki/glossary/cnl2

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.
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 20.07.2012, 21:12
Wachimiro Wachimiro is offline
Baby Loader
 
Join Date: Jul 2012
Posts: 5
Default

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:

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**;
$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;

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
Reply With Quote
  #4  
Old 20.07.2012, 21:19
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 70,886
Default

this is normal php code and AES encrypts the $link , thats your
crypted
$ke is jk
__________________
JD-Dev & Server-Admin
Reply With Quote
  #5  
Old 01.04.2013, 05:15
Matrosko Matrosko is offline
Ultra Loader
 
Join Date: Mar 2013
Posts: 47
Default

It is possible to change the key used to encrypt?
How do i generate a new control number to match the custom key?
Quote:
$key="1234567890987654";

<INPUT TYPE="hidden" NAME="jk" VALUE="function f(){ return '31323334353637383930393837363534';}">
thanke

Last edited by Matrosko; 01.04.2013 at 05:18.
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 04:11.
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 - 2021, Jelsoft Enterprises Ltd.