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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T14:03:54+00:00 2026-06-11T14:03:54+00:00

I’m really sorry if this question has nothing to do on this site, but

  • 0

I’m really sorry if this question has nothing to do on this site, but I thought since there’s alot of great minds here.
In the near future I’m going to create a program where users will have their own accounts, so I’ve started to think about the security, which is why I have to ask since there’s a few aspects that I thought about and I’m extremely concerned.

  • Obviously, I shouldn’t store cleartext passwords in my database, the program that the user will send their information from will encrypt it, is it this encrypted password that I store, or should the server encrypt it again and store that one instead? Or some other solution.

  • When validating, should I simply compare the encrypted password that I got with the one stored or should there be some decryption going on?

That pretty much covers my wonderings about how I should handle passwords, but I have a problem with the potential problem of hackers.

  • Is it possible for a person to intercept any traffic going on in the world, or only the local network?

  • Let’s say a hacker get a hold of all packages beeing sent to the server, the password is encrypted so there is no way he can get the cleartext password, but wouldn’t it be possible to resend the packages and thereby tricking the servers to login the hacker?

If the answer to the last question is yes, in my mind there’s no way of keeping things secure no matter how good you encrypt it since the data is still useful.

Someone that know how things work? Maybe work as a security administrator (or such) that can tell how they do it in your company (of course don’t reveal sensitive information!)? I don’t ask for encryption methods, but for the logic behind keeping things secure from unauthorized people.

* EDIT *
I actually found how to process and store passwords, so that’s no longer a problem. I’m still curious about resending packages though.

  • 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-11T14:03:55+00:00Added an answer on June 11, 2026 at 2:03 pm

    I will walk down each of your points and provide the baseline for what you should be doing and then the “more secure” way of doing things.

    Obviously, I shouldn’t store cleartext passwords in my database, the
    program that the user will send their information from will encrypt
    it, is it this encrypted password that I store, or should the server
    encrypt it again and store that one instead? Or some other solution.

    You should never, ever store encrypted passwords in the database, use a hash.
    So the baseline way of doing things like this is to use an MD5 hash over the users password. The more secure way of doing this type of hashing is to use a cryptographic hash such as SHA-2. The reason why we don’t store encrypted passwords is that you can reverse encryption, but you cannot reverse a hash. You can only find a collision. Now the fact I said MD5 will cause a lot of griping in both this and the security community. MD5 is not as broken as many would like you to believe, but it is far less secure than SHA-2. USE A SALT

    When validating, should I simply compare the encrypted password that I
    got with the one stored or should there be some decryption going on?

    Refer to the above.

    “Is it possible for a person to intercept any traffic going on in the
    world, or only the local network?”

    Both. If I am on your network, irrespective of it’s location, I am on the local network. If you are broadcasting your data in an insecure manner I can most definitely intercept it.

    Let’s say a hacker get a hold of all packages beeing sent to the
    server, the password is encrypted so there is no way he can get the
    cleartext password, but wouldn’t it be possible to resend the packages
    and thereby tricking the servers to login the hacker?

    I believe you mean packets. The password is encrypted does not prevent me from getting the clear text password. It just slows me down, because if I have intercepted the correct packets I can break the password offline. A replay attack, as it is known, would not allow for the system to “be tricked” into logging someone else in. However, once I retrieve the clear text password, I would just use the username associated with it and log in. Now this is not to say things like SQL injection would not allow me to circumvent the need to grab packets. So a replay attack is not going to work unless you are doing client side encryption (please jeebus don’t do this) and not uniquely identifying the requests coming into your system. So imagine I am attacker A and I have intercepted an encrypted password. I can work some magic and get into the system. Now if we take this a step further and apply a randomly generated value that uniquely identifies the original packet we can determine that it does not match the expected input. Essentially encryption alone does not save you.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
This could be a duplicate question, but I have no idea what search terms
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this
I don't have much knowledge about the IPv6 protocol, so sorry if the question
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
For some reason, after submitting a string like this Jack’s Spindle from a text

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.