1

They are just the basic forms, they take in $input from the form and then store that directly in to the database, there is another form where it takes $input and searches for a hashed match for it.

How can I secure this?

$sql = "INSERT IGNORE INTO MD5TABLE (plaintext, hash) VALUES ('$plaintext', '$md5hash')";

cwstack
  • 11
  • 2
  • Learn to use bind variables and NEVER use input directly as you did in your question. Search for prepare statements and bind variables. – Gerard H. Pille Jul 10 '20 at 13:26

0 Answers0