![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,308
|
little php help
Anyway to reverse this?
Code:
function hex2bin($data) { $len = strlen($data); return pack("H" . $len, $data); } function check_key($input){ $iv = "qe3jigneqfrgnqw2egfmas4qetjkn5lg"; $key = "589752d5b0f4217747bd721111be9057"; $text = hex2bin($input); $domain = mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $key, $text, MCRYPT_MODE_ECB, $iv); echo $input. '<br/>' .$domain; }
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Registered User
Join Date: Oct 2009
Posts: 28
|
What do you mean by reverse? Are you talking about an algorithmic reversal or the possibility of reverse engineering?
For an algorithmic reversal, the reverse would be taking the output contained in $domain, running it through mcrypt_encrypt() using the same key, IV, and mode, then running the output from that through a bin2hex function. As for reverse engineering, you have no worries about anything provided your key and IV are secure. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
|
PHP Code:
|
![]() |
![]() ![]() ![]() ![]() ![]() |