Asymmetrical encryption using PHP...
Posted: Tue Apr 08, 2008 9:19 am
Hi there.
I need to encrypt very sensitive data using an asymmetrical (public key) security scheme. The data must be encrypted via public key and stored in a MySQL database. It must then be able to be retrieved by a user who manually enters the private key in a dialog box (Javascript).
I've done a lot of Googling but can't seem to find how to do this exactly. I need to work with PHP 4.4.1, as that is what's on our server. I've seen a lot of references to PGP/GnuPG with regards to public key encryption, but all of it seems to center around email.
Anyone have any ideas?
I need to encrypt very sensitive data using an asymmetrical (public key) security scheme. The data must be encrypted via public key and stored in a MySQL database. It must then be able to be retrieved by a user who manually enters the private key in a dialog box (Javascript).
I've done a lot of Googling but can't seem to find how to do this exactly. I need to work with PHP 4.4.1, as that is what's on our server. I've seen a lot of references to PGP/GnuPG with regards to public key encryption, but all of it seems to center around email.
Anyone have any ideas?