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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T20:48:32+00:00 2026-05-25T20:48:32+00:00

I decided to drop md5() as the password-encrypting algorithm when storing user passwords in

  • 0

I decided to drop md5() as the password-encrypting algorithm when storing user passwords in DB, in favor of phpass library.

On the systems using md5, it was no problem to have a Production/Development dyad, as the resulting hash was the same. So, in case I created a test user in either one of them, the same password worked in the other environment.

From what I gather, this is not the same for other types of hashing algorithms, as phpass (or its internal php functions) creates platform-dependent hashes (I’m a hashing/encryption novice).

My question is, how should one approach this situation? Different database in prod/dev? But what if “upstairs” decided that we should move our web application (along with its DB) to another server – wouldn’t the hashed passwords be now invalid – as phpass would create different hashes for the same (old) passwords?

Later edit:

Well, I didn’t bother to check a dev hash to a production one. Even though they’re different, their comparison results in “true”, as in “they’re quivalent”. I thought, if hashes are different, they don’t match (like md5).

  • 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-25T20:48:33+00:00Added an answer on May 25, 2026 at 8:48 pm

    A very simple solution to your problem: Always use the latest stable version of PHP. As of 5.3 PHP provides native implementations of crypt algorithms and thus isn’t platform dependent anymore. Your hashes should thus be compatible.

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

Sidebar

Related Questions

I'm using Visual SVN with drop box to version control my code. I've decided
I decided to make a system for a client using Castle ActiveRecord , everything
Well, I finally decided to totally drop IE6. It's great. First big benefit which
I'm having trouble hashing out how to test whether a user is active using
My phone, running Windows Mobile 6, has suddenly decided to drop an hour every
I am using Single Table Inheritance for managing different types of projects. I decided
We are using a software library from a major US manufacturer. For years the
I decided on an effect I would like for a vertical drop down list.
I decided to learn a little bit android progrramming and by using Eclipse +
I have decided to use floating div's for my drop down menu because i

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.