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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:25:44+00:00 2026-05-27T10:25:44+00:00

I am doing, a webpage that the users will introduce their credit cards and

  • 0

I am doing, a webpage that the users will introduce their credit cards and also they could get virtual money.

But i was thinking if the next type of login will be secure. For everything SQL INJECTION. And hack.

  • It will be encrypted with SSL
  • Paswoord md5.
  • Mail will be validate with js

Login Proces Which its better?:
First one:
– SELECT * FROM users WHERE pass=’$pass’
– and the users selected i compare it with the users or mail from the username.

Second one:
– SELECT * FROM users WHERE user=’$user’
– Pass selected compare it with the pass from user

Thrird one:
– Hash md5 both user and password and compare it directly in the DB. But I need to save the username encrypted and normal

Thanks 🙂

  • 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-27T10:25:45+00:00Added an answer on May 27, 2026 at 10:25 am

    “Thrird one: – Hash md5 both user and password and compare it directly in the DB. But I need to save the username encrypted and normal”

    This one seems ok. You don’t necessarily need to save the username in both formats. In the DB use MD5 encryption which is one way. In the application (PHP), encrypt the username using some 2 way encryption and save this in the session. When you need to get your user information, simply decrypt the encrypted username in php, send the query to the database encrypting the plain text username with md5 again.

    N.B. I dont know how secure you need your site, but I believe MD5 was cracked already.. dont know for sure.

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

Sidebar

Related Questions

I am creating a webpage with javascript that is doing some processing and building
I'm doing a webpage about apples (the fruit), I want to include Google search
I'm currently doing a highlighting function on a webpage and im using the jquery
doing a simple login for my website, which will hopefully keep the user logged
Doing an ajax get request works as expected using the following code: $.ajax({ type:
Doing the below will reproduce my problem: New WPF Project Add ListView Name the
I have a webpage that has to be displayed in several different languages based
I've got a simple form on a webpage (that doesn't actually submit any info),
I have a webpage that needs to take numeric input, this part is easy
I am developing a web page that will be used in several different contexts,

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.