I know about mcrypt, but that doesn't cut it in my scenario - all the mcrypt algorithms are, I believe, symmetric, which means...
To encrypt user data when it is entered into the database, I would have to have the key written into the script, which sits on the server and is therefore just as vulnerable as if I put unencrypted data straight into the database.
My idea is that if the script encrypts with a public key, the data is only recoverable by my private key, which I enter through the site's admin pages (on SSL). It's the only way I can think of that stores the data without the server's admin being able to see it.
Problem is, I don't see any way of including that kind of algorithm in PHP. I was just asking if anyone's heard of an existing implementation...