Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Harry Fuecks' Blog:
Using OpenSSL, RSA and RC4 to exchange encrypted data from PHP to Java
Oct 30, 2007 @ 16:14:00

Harry Fuecks came across a need in his development work to bridge a gap between a PHP script and some Java work he'd done. He found the way that fit his situation the best - the encryption of the data on the PHP side via OpenSSL.

Needed a mechanism to be able to pass chunks of data securely from PHP to Java [...] One solution might be something "from scratch" involving mcrypt or PHP libraries like Crypt_RSA. [...] Another approach is GnuPG, either via the command line as discussed in this tutorial or via the GnuPG extension from PECL.

Option 3 is using OpenSSL and PHP's openssl_seal() function. SSL is normally used for encrypting networked communication between peers but that's not all it can do. [...] What's more - and perhaps the biggest win - it also allows us to re-use existing SSL certificates.

He uses the openssl_seal functionality on top of the EVP encrypted envelope on the certificate to handle the encrypt/decrypt of the data. Both the PHP code and Java code (and execution example) are included in the post.

tagged: rsa openssl rc4 encrypt decrypt java exchange data rsa openssl rc4 encrypt decrypt java exchange data

Link:

Harry Fuecks' Blog:
Using OpenSSL, RSA and RC4 to exchange encrypted data from PHP to Java
Oct 30, 2007 @ 16:14:00

Harry Fuecks came across a need in his development work to bridge a gap between a PHP script and some Java work he'd done. He found the way that fit his situation the best - the encryption of the data on the PHP side via OpenSSL.

Needed a mechanism to be able to pass chunks of data securely from PHP to Java [...] One solution might be something "from scratch" involving mcrypt or PHP libraries like Crypt_RSA. [...] Another approach is GnuPG, either via the command line as discussed in this tutorial or via the GnuPG extension from PECL.

Option 3 is using OpenSSL and PHP's openssl_seal() function. SSL is normally used for encrypting networked communication between peers but that's not all it can do. [...] What's more - and perhaps the biggest win - it also allows us to re-use existing SSL certificates.

He uses the openssl_seal functionality on top of the EVP encrypted envelope on the certificate to handle the encrypt/decrypt of the data. Both the PHP code and Java code (and execution example) are included in the post.

tagged: rsa openssl rc4 encrypt decrypt java exchange data rsa openssl rc4 encrypt decrypt java exchange data

Link:

Ilia Alshanetsky's Blog:
PHP 5.2.0 RC4 Released!
Sep 14, 2006 @ 18:34:31

Ilia Alshanetsky, release manager for the current PHP5 series, has announced the posting of the latest release canidate - PHP 5.2.0. RC4.

Huzzah! The final release candidate of 5.2.0, RC4 is out, which means the final release is just around the corner. Given that this is a final release, this is the last chance to identify major issues or regressions. So, please test your code against this release to make sure that everything is working, and if not, let us know.

You can grab the files here:

tagged: release candidate rc4 php5 testing download release candidate rc4 php5 testing download

Link:

Ilia Alshanetsky's Blog:
PHP 5.2.0 RC4 Released!
Sep 14, 2006 @ 18:34:31

Ilia Alshanetsky, release manager for the current PHP5 series, has announced the posting of the latest release canidate - PHP 5.2.0. RC4.

Huzzah! The final release candidate of 5.2.0, RC4 is out, which means the final release is just around the corner. Given that this is a final release, this is the last chance to identify major issues or regressions. So, please test your code against this release to make sure that everything is working, and if not, let us know.

You can grab the files here:

tagged: release candidate rc4 php5 testing download release candidate rc4 php5 testing download

Link:


Trending Topics: