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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T22:29:50+00:00 2026-05-31T22:29:50+00:00

I have read from this article http://codahale.com/how-to-safely-store-a-password/ and it says using a salt isn’t

  • 0

I have read from this article http://codahale.com/how-to-safely-store-a-password/ and it says using a salt isn’t even safe against GPU brute force attacks. I don’t want to get hacked and have passwords decrypted in a few weeks… So I read some more and the solution was bcrypt however I don’t want to implement the phpass class, I like SHA-512.

However if one can add rounds to sha-512 to slow down GPU attacks… how can that be done? Does rounds mean iterations?

How do you add rounds to slow down sha512?

  • 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-31T22:29:52+00:00Added an answer on May 31, 2026 at 10:29 pm

    One of the most secure ways for storing password that I found is following:

    <?php    
    function createPasswordSalt($saltLength = 20) {
        return substr(md5(uniqid(rand(), true)), 0, $saltLength);
    }
    
    function createPasswordHash($password, $salt = null, $staticKey = null) {
        if ($staticKey === null) {
            $staticKey = "Some passphrase that will be only in your php script";
        }
    
        if ($salt === null) {
            $salt = self::createPasswordSalt(); 
        }       
    
        return hash_hmac('sha512', $password . $salt, $staticKey);
    
    }
    

    And I store in database password and hash…

    So here I have used multiple layers of security. And one can only hack your passwords if he get your database and php scripts together. In any case if the hacker has your scripts he can hack any password you have in your database as he knows the scheme that you use for hashing passwords.

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

Sidebar

Related Questions

I have a silly question. I read this article about std::exception http://www.cplusplus.com/doc/tutorial/exceptions/ On catch
I have read this article from High Scalability about Stack Overflow and other large
I have previously read Spolsky's article on character-encoding, as well as this from dive
Firstly, I have read these: (1) http://www.gaiagps.com/news/article/iOS5%20Breaks%20Data%20Storage%20and%20Crushes%20My%20Soul (2) http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5 (I can not submit more
I've recently read an article http://www.ravelrumba.com/blog/static-cookieless-domain/ about Serving Static Content from a Cookieless Domain
i laughed out loud when i read this article on Daily WTF : http://thedailywtf.com/Articles/WellFormed-XML.aspx
I have a string read from another source such as \b\bfoo\bx. In this case,
Ignoring unsafe code, .NET cannot have memory leaks. I've read this endlessly from many
I have this function to read in all ints from the file. The problem
I have read from some article that say's Apple doesn't approve the application which

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.