Re:1 million accounts leaked in megahack on banks, websites
by woobles on Tuesday August 28, 2012 @07:02PM
(#4446320)
No. Query parameterization is how you avoid this. How do you propose that encryption would prevent SQL Injection?
[ Parent
| on HN ]
Re:1 million accounts leaked in megahack on banks, websites
by trekkin on Tuesday August 28, 2012 @09:07PM
(#4446619)
Encryption prevents leaked data from being meaningful. No amount of server-side security, including query parameterization, can guarantee the absence of leaks. Client-side encryption makes leaks much less devastating.
How encrypting user data in JS on the client is different from properly hashing user passwords in JS on the client? It is now accepted that sending and storing passwords in plaintext is bad practice; the logical next step is to encrypt not only passwords, but all data on the client.
Re:1 million accounts leaked in megahack on banks, websites
by Spoom on Wednesday August 29, 2012 @11:28AM
(#4449062)
Encrypting a password on the client-side means that all a cracker needs to login is the hashed password, which is exactly what they would get from a database dump, thereby bypassing the entire point of hashing the password in the first place. (Yes, I'm aware you could use a different salt on the server than the client, but that would require that the client-side encryption be reversible, which is perhaps even more problematic.)