Encrypt in Javascript, decrypt in PHP, using public-key cryptography
I’ve used something similar for my login page; it encrypts login credentials using the given public key information (N, e) which can be decrypted in PHP. It uses the following files that are part of JSBN: jsbn.js – to work with big integers rsa.js – for RSA encryption only (uses jsbn.js) rng.js – basic entropy … Read more