Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6878371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:42:56+00:00 2026-05-27T04:42:56+00:00

I am about to import about 10,000 users to my WordPress site from another

  • 0

I am about to import about 10,000 users to my WordPress site from another CMS. Problem is, none of their passwords are going to work because they are not encrypted.

How do I encrypt all of these passwords quickly and in a way that WordPress will recognize and accept so that users can login?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:42:57+00:00Added an answer on May 27, 2026 at 4:42 am

    As it turns out, I found a couple of other ways to do this. One is done through your mysql phpmyadmin area (on the “sql” tab once you’ve selected the right database) and was posted by Andrew Vit on another thread within stackoverflow:

    UPDATE wp_users SET user_pass = MD5(user_pass) WHERE ...
    

    for the “where” condition, if all your passwords are the same length, you might use the following condition:

    WHERE CHAR_LENGTH(wp_users.user_pass) = 12
    

    Of course, if your password length is different, simply change the “12” above to whatever the length of your passwords is. If they are NOT the same character length then you’ll have to use some other criteria for determining which passwords to encrypt (unless they ALL need to be encrypted, in which case you can leave the “where” condition off entirely.

    I personally ended up using a php script to do the work, so that the passwords could be encrypted by WordPress itself (or at least using the method that WordPress uses). Here are the contents of my php file:

    <?php 
      require_once '/home/evaluate/public_html/members-blog/wp-config.php';
    
    $sql="SELECT user_pass,ID FROM wp_users WHERE CHAR_LENGTH(wp_users.user_pass) = 12";
    $find = mysql_query($sql) or die(mysql_error());
    
      while($row = mysql_fetch_array($find))
      {
    
      $current_password = $row['user_pass'];
      $current_id = $row['ID'];
      $hashed_password = wp_hash_password( $current_password );
    
      $update_sql= "UPDATE wp_users SET user_pass = '" . $hashed_password . "' WHERE ID = " . $current_id . "";
      $update = mysql_query($update_sql) or die(mysql_error());  
    
      echo $current_id . " " . $hashed_password;
      echo "<br />";
      }
    
     ?>
    

    Done this way, not only are the passwords encrypted using WordPress’ own method, but, you also get a printout on your screen each time you run the script, showing you the ID of all the records that were updated and providing the corresponding hashed password.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to import a matrix (about 80.000 rows) from a csv file to
from pack.mod import f How to get from object f information about import -
I was about to import data from a table in MySQL to SQL SErver
I need to export about 300,000 rows from a table on MS SQL server
Abstract problem : I have a graph of about 250,000 nodes and the average
Here's my problem: I'm trying to parse a big text file (about 15,000 KB) and
About 6 months ago I rolled out a site where every request needed to
About 2 years ago I dropped windows from my home PC and switched 100%
i have a table with 500,000 rows and about 10 columns that is in
I am about to import my project into svn but don't want to stuff

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.