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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:13:54+00:00 2026-05-22T15:13:54+00:00

I know the standard answer for anyone trying to implement user authentication is to

  • 0

I know the standard answer for anyone trying to implement user authentication is to use a ready built and tested library, but I’ve always loved reinventing the wheel.

I’ve create a user authentication and session data system in PHP, using the challenge-response technique to login. All private pages require a function at the beginning which verifies the session checking for session timeout, ip, browser and a 256bit token key. After verifying the session, it resets the timeout and generates a new token key.

The biggest weak point I can see at the moment however is the user registration. I haven’t written it yet, but it looks like I’m going to have to transmit from the client to the server either the password in plaintext, or a hashed version. Either way, if the packet is captured the snoop has all they need to login.

Is there an easy way to somehow encrypt it client side and decrypt server side? Or Perhaps send it in chunks with delays and dummy packets.

Also, if there are any other issues I may have missed please let me know.

  • Log in asks for a challenge salt, and client hashes password before sending it
    hash(hash(password) . salt).
  • To persist a session, client must have up to date token key and identical browser & IP to those that created the session.
  • Naturally, all user inputs & ajax responses are checked before querying.
  • 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-22T15:13:55+00:00Added an answer on May 22, 2026 at 3:13 pm

    There is really one correct answer:
    Use HTTPS. SSL over HTTP is the only solution that will completely make this secured.

    You can’t do any javascript check here because the salt will be exposed. Which is not the correct approach.

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

Sidebar

Related Questions

Does anyone know how to implement the standard bubble message that warns users whenever
Does anyone know of any 'standard' way to interface with a telephony system (think
I know that the #warning directive is not standard C /C++, but several compilers
I know that Hpricot is still a standard but I remember hearing about a
Does anyone know if there's a de-facto standard (i.e., TR1 or Boost) C++ function
Ok, I know this is a strange question, but there is a standard (fan-wise
I know this has been asked before but I have looked at every answer
Does anyone know a standard way to batch http requests? Meaning - sending multiple
Does anyone know what causes the following errors? This seems like a pretty standard
I know that the general consensus is to use one or the other, but

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.