With security in mind, I implemented Mozilla Persona into my website for several reasons, mainly 'cause I'm too lazy to build up the database, I don't know how to properly secure it, and I don't feel like being blamed for user data theft.
I've posted several questions here, and on a lot of them, I'm posting data from a web form and putting it into PHP, querying it directly injected into a query variable. I've had my hand slapped for this, and I do know better, I just don't know how (which is again why I've chosen to use Persona).
The problem I'm running into is that Mozilla Persona doesn't really send you any info other than the email address, so I've decided to make a MySql table containing a User ID, email, and name of every user.
But how do I query this?
Long question made short, I need an opinion about how to properly request an email address via SQL; do I try to encrypt/salt (MD5) it or do I just put it into the query?