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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T09:28:32+00:00 2026-06-11T09:28:32+00:00

I’ve never written a user auth system before and for this project I need

  • 0

I’ve never written a user auth system before and for this project I need to balance security with efficiency (meaning I can’t spend hundreds of man hours working on the security end of this, but that I need to keep passwords and login info secure).

I’m using Node.js with the express framework and passport for authentication and sessions.

The research I’ve done so far shows three problems to solve. Before today I had literally no idea what if any common solutions exist for these problems, and a few hours of randomly pecking away at the research isn’t giving me confidence in the completeness of the answers I’ve found.

The problems:

  1. Do not store plain-text passwords unencrypted in a database
    (Possible answer: salt/hash the password ON THE SERVER and store the hash in the database.)

  2. Do not pass plain-text passwords over non-secure http connection
    (Possible answers: A–Use Https ONLY for the authentication process. After that use http. B–Send a random salt to the user at the login page, hash the password client side, then un-hash and re-encrypt for database storage.)

  3. Do not use weak encryption methods that GPUs can crack at 700,000,000 passwords per second.
    (Possible answer: bcrypt)

These are just the most sensible possible answers I’ve found in 3 hours of research. I have no idea whether these are sufficient, what their weaknesses are or what alternatives might be available. I’d appreciate any further insight (Also note: I’m not even sure–does https protect the password sufficiently as it is transmitted?)

  • 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-11T09:28:33+00:00Added an answer on June 11, 2026 at 9:28 am

    The best practices for security are many, but the idea is essentially the same: hope for the best and expect the worst. That explains your three problems:

    1. Assuming someone gained access to your database, you don’t want the possibility of passwords being compromised. Hashed passwords guarantee that you cannot get the password from the hash.
    2. This is to avoid from middle-man attacks. A server could easily listen and record the password as it passes requests to and from your server. Even if you don’t think a middle-man attack is possible, hope for the best and expect the worst.
    3. Use a long password that is easy to remember but difficult for others to guess. Better still if you can limit the number of attempts to 3 every 5 minutes since that would require a multitude more time to crack.

    Each of these three pivot on the idea either that someone has cracked your system and to do damage control or to make it near impossible to crack due to the sheer time it would take. Performance is important but always less important than security. Just use common sense mainly and don’t compromise security based on assumptions, since that’s the surest way to insert errors in your security. In short, hope for the best and expect the worst.

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

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Does anyone know how can I replace this 2 symbol below from the string
I need to clean up various Word 'smart' characters in user input, including but
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
In my XML file chapters tag has more chapter tag.i need to display chapters

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.