phpseclib/jsbn: encrypt with public key in PHP, decrypt with private key in jsbn
问题 I can successfully generate a public/private keypair using jsbn on the client side. Encrypting and decrypting client side with these keys is fine. I can also transmit that public key to the server and store it in MySQL via PHP. I cannot encrypt something in PHP using the jsbn public key, and then decrypt it client side using the jsbn private key. // attempting to encrypt in PHP using the jsbn public key. // (this public key came from jsbn client side) $jsbn_public_key =