简体   繁体   English

PHP中的md5解密

[英]md5 Decryption in PHP

I am developing a system for Online Hotel booking system which I did not start from scratch. 我正在为网上酒店预订系统开发系统,而这并不是我从头开始的。 The information of customers(bookers) in the system are encrypted using MD5 but unlike normal md5() php function the system is quite complicated as you can see here : 系统中的客户(预订者)信息使用MD5加密,但是与普通的md5()php函数不同,该系统非常复杂,如您在此处看到的:

$psw = md5("vhdsxnjuobef");
$t_cred_num = md5_encrypt($t_cred_num, $psw, 16);

and for Decryption it goes like : 对于解密,它就像:

$psw = md5("vhdsxnjuobef");
$t_credit_num = md5_decrypt($t_cred_num, $psw, 16);

this code is not Working though on my Server and there is alot of Customer's information Encrypted. 此代码在我的服务器上无法正常运行,并且有大量的客户信息已加密。

Example of hash of t_cred_num variable => t_cred_num变量的哈希示例=>

 fdRucZHctr7vIX+U400xGHq53Qemze0YQH1sAUjvmaC1P+XaRadI9CaX0wrkDXu6

Any Ideas on how to Decrypt these hashes ? 关于如何解密这些哈希的任何想法? When I use md5_decrypt with the hashes nothing happens. 当我将md5_decrypt与哈希一起使用时,没有任何反应。

I think the md5_crypt and md5_encrypt are functions hand crafted by the previous developer. 我认为md5_crypt和md5_encrypt是以前的开发人员手工制作的函数。 md5 isn't supposed to be decryptable. md5不应被解密。 Hash's are supposed to be one way functions: http://en.wikipedia.org/wiki/Hash_function 散列应该是函数的一种方式: http : //en.wikipedia.org/wiki/Hash_function

So, you'll need to find the definition of those functions. 因此,您需要找到这些函数的定义。 A search for "function md5_" in the code files should find the place in the code where they are defined. 在代码文件中搜索“ function md5_”应在代码中找到定义它们的位置。

there's no way to decrypt an md5. 无法解密md5。 there are two things you can do: 您可以做两件事:

  1. if you have other account or know the password of another account then copy the md5 characters of it and place it on yours. 如果您有其他帐户,或者知道其他帐户的密码,请复制该帐户的md5字符并将其放在您的帐户上。
  2. search for an md5 of let's say "admin". 搜索一个说“ admin”的md5。 Paste the md5 equivalent of the word "admin" on your account. 将与“ admin”一词对应的md5粘贴到您的帐户上。 You can also use other words. 您也可以使用其他词语。

After that, login to your account then change back your password 之后,登录到您的帐户,然后更改您的密码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM