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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:00:39+00:00 2026-05-18T12:00:39+00:00

I have a field (regular field, not a password) that is being stored in

  • 0

I have a field (regular field, not a password) that is being stored in the database twice: as a hash (SHA512) and as an encrypted value. Changing this setup would require many changes which I don’t want to get myself into. My question: in the case that the database is broken into, does the fact that the field is being stored twice as a hash and encrypted weakens its security? why?

Some people have said yes
because now they have 2 ways to
possibly crack it. Duh, I know that.
What I’m asking about is whether one
can be used to make cracking the other
easier? Can the very fact that the
field has 2 variations somehow make it
easier for the attacker to use one to
make cracking the other easier? Look at it this way: if the
attacker is given only variant A, it
would take them a day. If given only
variant B, it would take them 3 days.
If the attacker runs both cracks
independently, they would crack variant A
faster (it takes only a day). But if the attacker is given
both, they can crack one in just 6
hours. This is what I’m asking.

  • 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-18T12:00:39+00:00Added an answer on May 18, 2026 at 12:00 pm

    Assuming that the hash and encryption method are cryptographically strong, then the attack would be brute force. So the cost would be to run the weaker of the two: hash or encryption. If the hash is computed with a large number of iterations (e.g., with PBKDF2) and the encryption is a simple application of a password run through a single iteration of a hash function to get the key data, then the encrypted value would actually be the weak point in terms of CPU cost. In that situation, the answer would be that storing both does not really weaken it, but rather that the encrypted value weakens it.

    Edit to specifically address the updated question. From a mathematical standpoint, I suspect it would be very difficult to prove that an attacker cannot somehow use both pieces of data to reduce the attack time. Some of the attacks that have been devised against hashing and encryption are extremely sophisticated, so it seems in the realm of the possibility that it could be done. And I do know for sure it is possible to reduce the attack time in some situations. A very specific example:

    Suppose the attacker can somehow learn the length of the password from the encrypted version. That would vastly decrease the time of brute-forcing the hash version.

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

Sidebar

Related Questions

I have a field in a database that is nearly unique: 98% of the
I have a database field where date is stored as DD/MM/YYYY format. Now what
How can I construct a regular expression such that a password field I am
I have an input field where both regular text and sprintf tags can be
I have field X that contains text with spaces in the end of the
I have one field that I need to sum lets say named items However
I have a number of exported text fields from an old access database that
I'd like an input field that I can have javascript set certain attributes for,
In my database I have a field wich contains a html document. Now there
I have a select field within a form: <form id=myform> <select id=value onchange=javascript: document.myform.submit()>

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.