You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering an issue that is infrequently showing up when decrypting some bytes using the RSACryptoServiceProvider. In the vast majority of cases, the output is correct for other input data.
Example for an encrypted byte array that will cause the decryption to succeed in C# and to fail in JavaScript (C# code followed by JS code):
In case anyone stumbles on this, I'm using this now, where it actually works correctly. No need to waste your time with this here, as it's not maintained. https://github.com/rzcoder/node-rsa
I am encountering an issue that is infrequently showing up when decrypting some bytes using the RSACryptoServiceProvider. In the vast majority of cases, the output is correct for other input data.
Example for an encrypted byte array that will cause the decryption to succeed in C# and to fail in JavaScript (C# code followed by JS code):
The variable decrypted will contain the following byte sequence:
While running the follwing JavaScript code will result in an empty array.
But for instance, using the same RSA paramters but using the following encrypted byte array, we are getting the correct result in both programs:
I'm assuming the issue is not on my end (correct me if I'm wrong).
The text was updated successfully, but these errors were encountered: