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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:35:55+00:00 2026-05-24T13:35:55+00:00

If I encrypt a MYSQL injection with md5, will it still execute? If I

  • 0

If I encrypt a MYSQL injection with md5, will it still execute? If I encrypt the MYSQL injection before I do the “mysql_real_escape_string” will it be able to null the mysql injection? Should I run the “mysql_real_escape_string” before I encrypt?

  • 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-24T13:35:58+00:00Added an answer on May 24, 2026 at 1:35 pm

    The md5() function returns a string containing the ASCII characters 0-9 and a-f. An SQL injection requires using characters like ' or ", thus a hashed string that was generated by md5() won’t cause an SQL injection EVER, considering that the algorithm works expectedly.

    Thus you can write something like this without worry:

    $username = mysql_real_escape_string( $_POST['username'] );
    $password = md5( $_POST['password'] );
    mysql_query("SELECT * FROM users WHERE user='$username' AND pass='$password'");
    

    But it’s a good practice to always escape the data that you pass to your query with mysql_real_escape_string().

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

Sidebar

Related Questions

I am currently using md5 function to encrypt my password and save to mysql
Is there a way to encrypt the data file that mysql uses? I have
what is PHP's safest encrypt/decrypt method, in use with MySQL - to store let's
I need to encrypt a string using MySQL's AES_ENCRYPT function, then attach that encrypted
I'm storing a string in mysql with the ENCRYPT() function. I want to fetch
I receive data, and use aes or blowfish to encrypt it before saving it
I'm using http://www.phpaes.com/ to encrypt some values and store them in a MySQL database.
I plan on using MySQL and it's built-in encryption functionality to encrypt / decrypt
When connecting to a mySQL database, should the login information be encrypted? For example
Is there any way (native MySQL functions or SQL syntax) to encrypt the columns

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.