Encrypt in Javascript, decrypt in PHP, using public-key cryptography
I'd like to encrypt in JavaScript, decrypt in PHP, using public-key cryptography. I've been trying to find libraries that can accomplish this, but am having issues. I am currently looking at openpgpjs , but I need support in all browsers, and even the test page has errrors on the only listed as supported browser (Google Chrome). Notes about the final goal: The TCP connection is already protected by SSL. The main purpose of this layer of protection is defending against intentional or unintentional webserver logging, crash dumps, etc. On the PHP side, a temporary private key will be generated