Although the MD5 of the cipher is limited, but the number is 6.3340286662973277706162286946812e+49, if the number does not feel, you can imagine 100 million five times to multiply by tens of millions of on the almost ....
Previously contacted a lot of procedures (when rookie hackers that time ...). , most of the program encryption method is "MD5", and is pure encryption, originally this is not wrong, that the MD5 algorithm is not cracked after all, but with the collection of character strings, using pure MD5 encryption has become increasingly dangerous.
Write your own program general habits plus character string again MD5, think foolproof, but today found cmd5 incredibly can crack this encryption way, of course, the prerequisite is to know the character string, although my more complex, but out of defense psychology, or the encryption function has been complicated.
| The code is as follows |
Copy Code |
function md123 ($SSTR)
{
$MD _asc= "";
$mds =md5 ("Qweqw". $sstr. " 2ddsdf ");
$mds =md5 ("Rtrttyr". $mds. " Zcv34r ");
for ($i =1; $i < strlen ($MDS); $i + +) {
$MD _asc.=168/ord (substr ($mds, $i, 1));
}
return MD5 ($MD _ASC);
}
|
This allows the password security to be further enhanced by passing strings and ASCII, and a simple 1 has been converted to the character when passing Ord:
1.73195876288662.94736842105261.66336633663373.1111
1111111113.23076923076923.16981132075471.731958762
88661.683.42857142857142.94736842105261.681.681.6470
5882352943.11111111111111.66336633663372.94736842
105263.42857142857141.66336633663373.1698113207547
3.16981132075473.11111111111111.69696969696971.681.7
1428571428573.16981132075471.71428571428573.294117
64705881.681.64705882352941.69696969696971.64705882
352946ccc2eceada95b64bc7f55c07c2a6af6
This then carries on the MD5 encryption, is safe, if this also is cracked, then uses the noodles to hang oneself