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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T00:03:27+00:00 2026-06-15T00:03:27+00:00

I understand that I should md5(password.salt) before saving it to the database. But I

  • 0

I understand that I should md5(password.salt) before saving it to the database. But I have some curious questions:
+ Should I also md5 the content / text strings as well (with password as salt)?
Examples: if database is leaked, the attacker can’t read the contents of the closed forum
+ In case I shouldn’t md5 the content, and save them all as plain text, then what’s the point for attacker trying to get userpassword when he has database in hand?

  • 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-15T00:03:28+00:00Added an answer on June 15, 2026 at 12:03 am

    The purpose of hashing passwords is to prevent a third party who gains access to your database from learning what the users’ passwords are. Your database contents are already compromised if they’ve gotten that far, so the forum contents are already exposed. What you don’t want is for people’s passwords to be compromised because many people use the same passwords across multiple web sites.

    If you have a secure forum then you need to prevent attackers from accessing the database. If they get in, your forum posts are exposed. Don’t bother trying to protect them further. The idea is that if an attacker gains access to the database, you’ve limited the surface area of the damage. Your site data is compromised but hopefully not the users’ credentials. Some people will use their bank username and password on your web site, and that’s what you’re trying to protect.

    Remember that hashing functions are one way. You can’t un-hash data. That’s fine for passwords: you don’t need to know what people’s passwords are, you just need to be able to compare them. It wouldn’t work for forum posts. Hashing isn’t encryption. Encrypted data can be decrypted. Hashed data cannot be un-hashed.

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

Sidebar

Related Questions

I'm a newcomer to Python but I understand that things should not be done
This is a short question. At some point my thread understand that it should
I understand that Android Activities have specific lifecycles and that onCreate should be overridden
I understand that I should use mod_wsgi to run Python, and I have been
I understand that some countries have laws regarding website accessibility. In general, what are
Good evening, I have a quick question that should be pretty easy, but for
Creating liquid layouts is an immense pain. Now, I totally understand that tables should
I understand that in my unit test I should do BOOST_TEST_MESSAGE(message); instead of std::cout
I'm having trouble with something that I understand should function out of the box
In C++ I understand that (++i) should return a reference to i because the

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.