Hello reader's today we will discuss about "Password Hashing Method in WordPress".
WordPress doesn't store password in plane text. If you lose your password you need to reset your password via email.
WordPress stores its cryptographic salts in the global wp-config.php file. These salts are rare for every Wordpress installation. WordPress used MD5 to hash stored passwords. Wordpress version supports multi-level MD5 (more secure), Data Encryption Standard, and even a more secure Blowfish algorithm.
<?php
function encrypt_for_wordpress($plain_text_password) {
return md5("\$P\$B" . $plain_text_password);
}
?>
0 Comment(s)