Encryption in ASP and Decryption in PHP

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
thomas
Forum Newbie
Posts: 6
Joined: Wed May 21, 2008 3:18 pm

Encryption in ASP and Decryption in PHP

Post by thomas »

Hi,

I need to encrypt a message in ASP.NET and POST it on to a PHP page. The PHP script will then decrypt the message and display it. So far I got the encryption to work using RSACryptoServiceProvider in C# using the private but I cannot seem to decrypt the message in php using openssl_public_decrypt. Can someone help me out with this.

Thanks,

Thomas
User avatar
Maugrim_The_Reaper
DevNet Master
Posts: 2704
Joined: Tue Nov 02, 2004 5:43 am
Location: Ireland

Re: Encryption in ASP and Decryption in PHP

Post by Maugrim_The_Reaper »

I suggest locating an RSA lib for PHP - PEAR should have something.
Post Reply