Forums

Encrypt MsSQL password in wp-config.php (2 posts)

  1. foxtrot123
    Member
    Posted 2 years ago #

    I created a testing site for my blog by copying the WP files, creating a new MySQL database and user, etc. I gave the new user (for the testing site database) the same password I use for the blog database.

    When I went to manually update the copied wp-config.php file with the new MySQL details (new database and username), I noticed the password in the original wp-config.php file was encrypted. I tried to keep it this way but my test site couldn't connect. I had to replace the encrypted version with the actual, exposed password.

    How can I go about re-encrypting it? I don't recall how it was done originally.

    Also, the encrypted pass in wp-config.php file is about 12 characters, whereas the encrypted pass in the database (i.e., the user_pass value in the wp_users table of the database) is about 30 characters. I know how the 30 character one was generated, but not the 12 character one. Any ideas?

  2. Samuel B
    moderator
    Posted 2 years ago #

    the database pass is a salted MD5 hash
    I've never seen or heard of the password in wp-config.php being encrypted and am pretty sure that would not work anyway

    you can move it one directory up for added security
    http://codex.wordpress.org/Hardening_WordPress#Securing_wp-config.php

Topic Closed

This topic has been closed to new replies.

About this Topic