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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:34+00:00 2026-05-27T03:30:34+00:00

I’m implementing a simple login system to a web app where no critical or

  • 0

I’m implementing a simple login system to a web app where no critical or private info is handled or stored, and I want to provide eavesdropping protection for login data transmission.

I’m already running https module of apache, but sometimes is not at option due to port access restrictions and some other issues so,

In order to not overcomplicate things and still offer a reasonably good protection in those cases, here’s my thought on a quick-and-cheap protocol, and my big question about it is if (and why, if you please) is it any good or a big no-no to do this kind of workaround:

  1. On the login form, the client receives 2 random length (not too short not too long) text strings (which the server generates and keeps on $_SESSION var just for one check) along with server’s public gpg key.

  2. User + string1 and pass + string2 are javascript gpg-encoded with server’s public key before being sent to the server.

  3. Server recovers transmitted login info gpg decrypting with private key and removing strings, hashes the pass an checks if there’s a match stored for that user, returning login error / granting access to the app with that user’s profile until the end of the session.

I understand this only protects login info (and not against any man-in-the-middle attack faking the server, if I needed this I would simply force https), which combined with some basic sessionid theft protection techniques should prevent passive eavesdroppers from accesing the system with stolen credentials, if I’m right.

Should I implement this or is it a waste of time and resources?

  • 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-27T03:30:35+00:00Added an answer on May 27, 2026 at 3:30 am

    Protecting the login is meaningless when you spill the real authentication token (the session id) a few milliseconds later. The session id must be protected with HTTPS though out its entire life, at no point can this value be transmitted over plain text or you will be in clear violation of OWASP a9.

    The attacker is all like:
    “Oah nice you authenticated that session for me, I’ll just take that cookie value and authenticate as that user, thanks!”

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

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
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
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
i want to parse a xhtml file and display in UITableView. what is the

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.