What can we do to protect our site from SQL injection??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What can we do to protect our site from SQL injection???

29th May 2019, 10:42 AM
bb013
bb013 - avatar
3 Answers
+ 4
Hi brin ~ brin ~ , 🍎To prevent sql injection you can use various security algorithms a technique to prevent all the SQL injection attacks by using encryption techniques. Here we will propose a technique that will use the following algorithms:  MD5 algorithm  AES algorithm  And a combination of AES algorithm and the MD5 algorithm (double encryption). 🍎 you can use ssl is used to prevent sql injection and sniffing of data https://www.paladion.net/blogs/secure-socket-layers https://www.sitepoint.com/how-to-protect-your-website-against-sql-injection-attacks/
29th May 2019, 11:13 AM
DishaAhuja
DishaAhuja - avatar
+ 3
Md5, aes and their combination is somehow easy the job, advance encryption algorithm is seems more secure and message digest then aes operation is make website more secure, sha-512 can be use too as Bebida Roja said but most the time AES is used, in today's technology secured hash algorithm can be first choose to and easy development with that in php is possible. Here is an small implementation https://code.sololearn.com/wwsqm353wdpc/?ref=app
29th May 2019, 11:21 AM
DishaAhuja
DishaAhuja - avatar
0
md5 is not secure for every use, use sha instead
29th May 2019, 11:16 AM
Bebida Roja
Bebida Roja - avatar