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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T00:06:59+00:00 2026-06-07T00:06:59+00:00

I am doing a application that deals with where Users can login and see

  • 0

I am doing a application that deals with where Users can login and see all the GIS Data (Global Information Systems )related to a particular Network .

This is of a normal domain ( I mean which doesn’t involve money)

My question is , when a user logins for at the Login Page ( I am planning to use base64.encode to make the password protected )

I have 3 questions with respect to the above

  1. Does using base64.encode is suitable here ??
  2. When the User submits the User name and Password at the Login page , i am planning to use encrypt at the Servlet level (That is aftre reciving the password using req.getparameter("password")

    static public char[] encode(byte[] data)
    {

    }

Please tell me if this is right ??

  1. And where exactly i need to decrypt the password ?? ( That is do i need to store it in the database with the encrypted value and decrypt it in DAO Layer ??

Please tell me if this is right ??

  • 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-07T00:07:00+00:00Added an answer on June 7, 2026 at 12:07 am

    There are two separate(ish) issues here; authentication and confidentiality. If you need confidentiality, go with HTTPS. Then you do not need to worry about transit-encryption and can just send everything in cleartext (as the SSL will perform full connection encryption for you).

    As for password storage; you should never store a cleartext password anywhere. Always hash the password first (at the very least, look up password salting for a much stronger approach) and store the hashed values in the database. When a user sends their password, hash what they have sent and compare that against the value in the database, if they match, their password was correct.

    If you don’t want to use SSL/HTTPS, then you are correct in your thinking that you need to avoid sending the password in cleartext. You can achieve this in a number of ways, most appropriate in my opinion would be Challenge-Response, wherein you send a random ‘nonce’ from the php in the login page, by generating a random string and echoing it into a javascript variable.

    Then use javascript to compute;

    hash(hash(password) + nonce);
    

    Where hash is a secure hash function such as MD5 or SHA.

    That way, on the server, you can authenticate the password without ever having the user send it in the clear. Do this by hashing the value you have stored in the database concatenated with the same nonce, and comparing it against the value sent by the user, if the values match, the password was correct.

    The whole point of all this is to protect against Replay Attacks, by making sure that the user never sends the same login string to the server twice. An attacker can eavesdrop and record as many logins as they like, they will all be useless until the same nonce is used with the same user account. Avoiding that is simply a case of using a very large nonce.

    Be warned, however, that this approach does not protect against Relay Attacks or Man-in-the-middle Attacks. These classes of attack require mutual authentication that can only be achieved via use of a third party, such as a Certification Authority, which brings us full circle back to SSL/HTTPS.

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

Sidebar

Related Questions

I have a web application that will be doing some processing with submitted data.
I'm creating an android application that deals with texts files. I want my users
I am currently doing an android application that contains customize alert dialog. It contains
I am currently doing a C# WPF application that generates a table that does
Now i am doing an android application.In that application I am using asynchtask class
I have an application that after it finishes doing it's work schedules itself to
I've been given the task of doing maintenance to a iOS application that uses
No it's not that kind of basic question. I am doing a application and
I'm doing a kinect Application using Kinect SDK . The Result I want that
I am doing an e-learning application using CakePHP. The problem is that I need

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.