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 8423489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:44:12+00:00 2026-06-10T03:44:12+00:00

I have an existing database with about 1.6 million users in it. Currently the

  • 0

I have an existing database with about 1.6 million users in it. Currently the passwords are stored as salted SHA1, I’d like to upgrade them all to salted SHA256.

The approach I’ve taken so far if to migrate each user as they login, essentially validate their password against the old hash and if it matches create a new stronger hash. This works fine, but it’s a slow process.

As far as I can see there is no easy way to shortcut this process. Is there a better way?

  • 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-06-10T03:44:13+00:00Added an answer on June 10, 2026 at 3:44 am

    What you describe is an appropriate and legitimate method of migrating users from a weaker/older hash algorithm to a stronger/newer hash algorithm. I have successfully implemented this technique in multiple situations. Trying to migrate everyone at once is a horrible UX idea and then you run into the problem of needing to mail out passwords, which is a bad idea for multiple reasons, both security and UX.

    I would suggest that since you are undertaking such an effort now, that you consider using a different algorithm than salted SHA-256. Salted SHA-512 offers a higher level of security, and implementing a scheme where you stretch the hash is even better (do some high number of iterations of SHA-512 – starting with the password+salt of course). Or, you can take advantage of an algorithm already specifically designed for password hashing such as bcrypt, scrypt, or PBKDF2.

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

Sidebar

Related Questions

I have an existing database with users and administrators in different tables. I am
I have an existing mongo database where all documents in a collection have a
So I have an existing database that I'm trying to manipulate through ActiveRecord. All
Our current scenario is like this: we have an existing database that needs to
I have an existing database(myDatabse) that I created with Microsoft Sql Managenent studio and
I have an existing database containing some pictures in blob fields. For a web
I have an existing database with tables which each have 4 partitions (there are
I have an existing database in mysql. One of my tables has discontinuous ids.
I have an existing database based on SQLiteOpenHelper that has several versions and code
I have a copy of an existing database with existing records. when i was

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.