C# Asymmetric Cryptography
I'm a Java developer. A part of web application uses asymmetric cryptography. Using java keytool, we generate a key pair (public key and private key - RSA/ECB/PKCS1Padding). We extract the certificate associated with the public key and pass it to the client.
Client uses .NET environment. Client needs to read public key from the certificate and use that public key to encrypt a string. The encrypted token (URL safe) is passed to us. This will be decrypted on our side (Java environment).
I would like to hear some thoughts from .NET experts, if any of these cause compatiability issues? Any sample snippets (C#) or advice....
Thank you. Let me have a look at the library.