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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:14:46+00:00 2026-06-10T08:14:46+00:00

Is it unwise to do this? The thing I’m talking about is username and

  • 0

Is it unwise to do this? The thing I’m talking about is username and password being passed to a processing file, like this:

echo'<script>location.href="process.php?u='.$_POST['username'].'&p='.md5($_POST['password']).'"</script>';

This is after the username and password has been validated. Could this somehow be intercepted maliciously? Or is this a safe enough thing to do?

  • 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-10T08:14:48+00:00Added an answer on June 10, 2026 at 8:14 am

    DO NOT DO THIS

    There, now that we’ve cleared that up, allow me to explain…

    What you’re essentially doing is sending this data to the user in the clear. Even if you’re using SSL encryption for the transport, it’s still a big risk. It’s not “rendering in the browser” but that doesn’t matter. It’s still being sent to the browser. And even if in this particular case you don’t run into any issues, it’s a bad habit to build.

    You might even ask, “But I’m using md5() so the password is obscured, right?”

    Wrong.

    The text is obscured, yes. But you’re delivering the obscured version of the text to the client and then keying off of that text. Which means you’re still displaying an effective password for all to see.

    If the password is “correcthorsebatterystaple” then you don’t want to display it in plain text because that would give somebody the password, right? (In fact, you don’t even want to store it in plain text. Anywhere. You, as the site admin, don’t even want to know or have any way to find out the text of the password. If you can, someone else can.) Right.

    So, instead, you obscure the password as “elughwelfguweliurgnswfglwerlgu” which your code interprets as the password. So you can display that, right? Wrong. Because now, by accepting “elughwelfguweliurgnswfglwerlgu” as the password from the client, you’ve made “elughwelfguweliurgnswfglwerlgu” into the plain text password that your system accepts. So the obscuring of the text does nothing.

    In short, never ever deliver a password to anybody in any form. Your application should receive passwords as input, but never produce them as output in any way.

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

Sidebar

Related Questions

I'd like to be able to write something like this in python: a =
I've heard questions about bypassing this security feature of Windows 7 before, but I
I've read that it's unwise to use ToUpper and ToLower to perform case-insensitive string
I've read that it's unwise to install SQL Server and IIS on the same
Lately, I've been reading much about constructors from the well-received C++ FAQ . One
I've heard all the cases in favour of using a CDN like Google APIs
I want to change some of the strings in the language file for my
(I defined this program in terms of a C++ program because I faced this
Just to clarify, ths isn't really a question, more some help for people like
I've been considering converting my current HTML5 documents to polyglot HTML5 ones. I figure

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.