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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:25:09+00:00 2026-05-12T16:25:09+00:00

I’ve been trying to improve my password hashing class for a CMS I’m currently

  • 0

I’ve been trying to improve my password hashing class for a CMS I’m currently building as a personal project. I originally used md5 without salt, then switched to md5salt+md5, then to sha1salt+sha1 and now I’ve moved over to sha512salt+sha512.

I was thinking about adding an iteration loop onto the hashing procedure also. My question is this… Am I going totally over the top with this? Or should I do it anyway as it doesn’t really cost much development time. I do intend to release the system eventually and want it to be as scalable as possible so I guess with the iteration, it could slow the login procedure down too much.

I’m just a little confused as whether to stop at what I’ve got now (sha512salt+sha512) or possibly backstep to sha1 and use a smaller salt?

Does anybody have any experience with creating such classes and also, what hashing procedure did they finally settle on? I’ve heard about bcrypt but couldnt find any php examples on this.

Thanks in advance,
Drew

Edit…

Reason for md5 hash – obvious.

Reason for sha1 – wanted more security as md5 is the lowest of the low.

Reason for sha512 – I read a few things suggesting sha1 is broken and can be concidered weak.

…Maybe the last step was unneeded?

Also, what is the accepted method or generating a random salt… just a simple 4 byte rand() Would converting this 4 byte hash to a sha hash make any difference at all?

Thanks

  • 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-12T16:25:09+00:00Added an answer on May 12, 2026 at 4:25 pm

    All this sound wuite complex ; using a single combinaison of salt+sha1 should be quite enough, I suppose, from a security-related point of view.

    Here are a couple of questions/answers that might get you some more informations (there have already been quite a lot of questions about password and salting and hashing in the past — some of those could probably help you) :

    • Going from unsalted to salted MD5 passwords
    • Salting Your Password: Best Practices?
    • Non-random salt for password hashes
    • Need some help understanding password salt
    • Should We Mask Passwords?
    • Is using a ‘salt’ all that good?
    • Password hash and salting – is this a good method?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a jquery bug and I've been looking for hours now, I can't
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I am trying to understand how to use SyndicationItem to display feed which is
I used javascript for loading a picture on my website depending on which small
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am doing a simple coin flipping experiment for class that involves flipping a
I want use html5's new tag to play a wav file (currently only supported
I am trying to render a haml file in a javascript response like so:
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

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.