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

  • Home
  • SEARCH
  • 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 235075
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:14:12+00:00 2026-05-11T20:14:12+00:00

I’m working on a project in which remote clients need to log in to

  • 0

I’m working on a project in which remote clients need to log in to a webserver. I’m not looking for examples in any particular language; just a general idea of the security concerns involved.

The basic question is:
How should user credentials be passed to a webserver for verification?

I’m picturing your typical website login. One field for username, and another for password. You type in both and click “Log In”. What happens next?

I can imagine a few scenarios:

  1. Credentials are sent to the server as plain text. A server-side script creates a hash of the password and compares it to the stored hash for the user.
  2. Credentials are encrypted locally, and the result is sent to the server. The server decrypts the credentials and continues as in #1
  3. Something I haven’t thought of yet? I’m new to this. Go easy on me!

Option #1 strikes me as weak because the credentials are sent over the internet in plain text.

I see option #2 as not much better than option #1. If someone intercepts the encrypted credentials, can they not just send those to the server another time, and still manage to log in?

Any insight is appreciated.

edit: the “Related” sidebar suggests this question, which mentions a client/server handshake with a salt added to the password. Is that the right way to go?

  • 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-11T20:14:12+00:00Added an answer on May 11, 2026 at 8:14 pm

    Option 1 is by far the default. The plaintext weakness is usually overcome by enforcing SSL during the login so that the password is at least encrypted during transit.

    Edit: I suggest you follow the accepted answer for that question.

    Don’t forget to require a nonce for your request. This will help protect you against replay attacks.

    Edit the second: Wayne thoughtfully mentioned that you should salt your password before you hash. Here are some basic tips:

    1. It doesn’t matter if your salt is a prefix, postfix, or infix
    2. Your salt should be large, random, and complex.
    3. Your salt should be unique per salted value. The salt itself doesn’t need to be encrypted.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.