[PHP] openssl encryption

2008-05-23 Thread Christian Lerrahn
HI, I'm trying to encrypt and decrypt data in my PHP scripts using the openssl API. However, while the encryption seems to work, I cannot decrypt what I encrypted. The keys I use have been produced the following way. openssl req -x509 -nodes -days 365 -newkey rsa:4096 -keyout example.key -out ex

Re: [PHP] OpenSSL Encryption to a browser.

2002-11-30 Thread Tony Earnshaw
fre, 2002-11-29 kl. 12:50 skrev Comunica2 s. coop.: > I would like to use OpenSSL to send encrypted information to a browser. The > information would be encrypted to a public key that has its private > counterpart installed in the browser. The idea is that the information would > be decrypted auto

Re: [PHP] OpenSSL Encryption to a browser.

2002-11-29 Thread Dan Hardiker
> I would like to use OpenSSL to send encrypted information to a browser. > The information would be encrypted to a public key that has its private > counterpart installed in the browser. The idea is that the information > would be decrypted automatically, but only when the destination browser > ha

[PHP] OpenSSL Encryption to a browser.

2002-11-29 Thread Comunica2 s. coop.
I would like to use OpenSSL to send encrypted information to a browser. The information would be encrypted to a public key that has its private counterpart installed in the browser. The idea is that the information would be decrypted automatically, but only when the destination browser has the righ