This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11597|Reply: 0

[Encryption and Decryption] Discuz!

[Copy link]
Posted on 4/1/2015 9:55:30 AM | | |

Discover that Discuz forum encryption is multi-encryption.

(Encryption method of dz6.1: md5 (md5 (forum password), shell))



Share it now:


User Table: cdb_uc_members

field: uidusernamepasswordsalt

//==============

Database link omitted....

//=============

$user=$GET["user"];

$pass=$GET["pass"];

$result=mysql_query("select*fromcdb_memberswhereusername=’$user’");

@$salt=mysql_result($result,0,"salt");

$pas=md5($pass);

$pas=$pas.$salt;

$pas=md5($pas);  
$result=mysql_query("select*fromcdb_memberswhereusername=’$user’andpassword=’$pas");

@$username=mysql_result($result,0,"username");  
if($username!=’’){

echo"ok";

}else{

echo"no";

}

?>


To quote a cow:

Use the salt method to obtain a random string, then connect the plaintext password MD5, and then connect it with the random string, and then MD5 again. This greatly improves the safety factor.  
Encryption password: md5(md5($newpw).$salt) $salt the string $hash returned as random  
This greatly improves the security of user passwords




Previous:Is there anyone bathing in the fountain in Wuhan Optics Valley Pedestrian Street World City?
Next:asp.net landing interface source code with database scripts
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com