I am busy trying to port Java code that looks like this:
Cipher rsa = Cipher.getInstance("RSA/ECB/nopadding");
rsa.init(Cipher.DECRYPT_MODE, RSAPrivateKey);
decryptedData = rsa.doFinal(data, 0, 128);
to C #, but as RSACryptoServiceProvider seems, forces you to use ODAP or PKCS1. I know that laying is not safe, but in this case Im works with a closed source client, so I can not do anything about it. Is there any way around this problem?
source
share