RSA Encrypt in PHP to decrypt in .NET

Posted by user312904 on Stack Overflow See other posts from Stack Overflow or by user312904
Published on 2010-04-09T15:07:57Z Indexed on 2010/04/10 15:33 UTC
Read the original article Hit count: 315

Filed under:
|
|

In PHP I am RSA encrypting a message to be decrypted by .NET application... but I keep getting a "Bad Key" exception from .NET....

For RSA encryption, I am using PEAR class Crypt_RSA-> encrypting with the public key (which is a modulus, exponent pair) I get from working encryption system in .NET...

I guess the easiest question would be-> does "Bad Key" mean it is not able to decrypt the message whatsoever? IE, it is not encrypted correctly?

The harder question is-> Is there anything specific about RSA encryption that causes quirks between .NET and PHP?

© Stack Overflow or respective owner

Related posts about php

Related posts about .NET