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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:21:37+00:00 2026-05-24T19:21:37+00:00

Suppose I were designing a web service with modest security requirements. For the most

  • 0

Suppose I were designing a web service with modest security requirements. For the most part, the threat model would be more about bored college students and less about anything you’d ever find in a spy novel. Would there be anything practically wrong with using the following password storage scheme?

salt || hash(site || password || salt)

where site is a unique identifier of my site, password is the user password, and salt is a user-specific random salt, and the hash is a general purpose cryptographic hash function like SHA-1, and || indicates concatenation.

I’m aware of certain issues that come up with this scheme.

  • The hash is (designed to be) fast to evaluate, and one iteration would leave particular weak passwords guessable.

  • Concatenation alone might cause “puns” in the overall input to the hash.

Now, there are certain security professionals on the Internet who would have me believe that, if this is my idea of a good enough password hashing scheme, I could not possibly deserve employment and desperately need to return to school. They point out that there are well-known password hashing schemes with far better properties from a security perspective. They demand that I switch to something better.

But really, should I? I have a bit of a counter argument here.

  • This is probably not going to be the weakest link in my service. Someone truly determined to break in has plenty of other avenues, and I should prioritize my time to secure the weaker ones.

  • Cost-benefit is already against the attacker’s favor if my site has little intrinsic value. How much of a practical concern is it that a large cluster/botnet could recover a weak password in a day/week? Surely it has more valuable things to be doing that day/week.

  • Compromised accounts are more likely to happen because of trojans, keyloggers, social engineering attacks, what have you. Technology isn’t the limiting factor in this security.

  • The more complex my scheme is, the more difficult it might be to move/expand to another platform. If I used bcrypt (hypothetically), I’d potentially have to write a bcrypt wrapper and incorporate that.

I really like this scheme. It’s really simple. The implementation is hard to get wrong. And I would argue, for all intents and purposes with regard to an average site, it should be fine. Asking me to put in a better hashing scheme almost sounds like asking me to install a bigger lock on a door that is already very vulnerable to chainsaws.

If I would be doing something wrong here, I would very appreciate that someone point it out, especially in terms of practical and real-world-applicable concerns.

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-24T19:21:38+00:00Added an answer on May 24, 2026 at 7:21 pm

    See What is the point of salt and hashing if database is accessible?

    Salts prevent (some) rainbow table attack sbut they they don’t prevent dictionary or brute force attacks.

    Use Scrypt or bcrypt instead, where Scrypt is much stronger but both uses a Proof of Work system to make it much harder to crack a password. See the OWASP Password Storage Cheat Sheet

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

Sidebar

Related Questions

I'm just designing a web project which is about cooking recipes. When a user
I'm thinking about designing a method that would return an object that implements an
I'm in a process of designing a multi-tier ASP.NET web application that is supposed
Suppose I'm designing a robot that can pickup various tools and use them. I
Suppose you are designing a PC game that keeps track of high scores. In
Suppose I am designing a class that can handle any database technology to create
Suppose I was designing a component representing grips on a UI control for resizing
Suppose you created an online game in HTML5/JavaScript. All the code would be downloaded
I'm designing (and developing) web software that will allow the general public to sign
Suppose I have a class that downloads a news feed from the web public

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.