OpenSSL in php

Frank

Certified not a majority
Veteran
I am trying to use OpenSSL to generate an RSA keypair and use that to encrypt/decrypt stuff. So far, the generation of the keypair and the encrypting works, but I can't get the decrypting to work at all.

The problem seems to be retrieving the valid key for the decryption function. I do use the private one when I use the public one to encrypt it, and vice versa.

Does anyone has a working example?
 
I tried most of that, but it doesn't really work. That's why there are so many complaints and wrappers about it, who don't work all that well either.
 
RSA crypto in php isn't exactly wonderfully straightforward. Unfortunately off the top of my head I cannot remember how I got it working, but then again I had an extra requirement: it had to work with .net RSA crypto too....

If I remember anything I'll post it
 
Back
Top