S
Sin Jeong-hun
Hello.
As far as my naive textbook knowledge goes;
1)if a file is encrypted with the private key, then it can be
decrypted with the public key,
2)if a file is encrypted with the public key, then it can be decrypted
with the private key.
But the RSA class comes with C# only supports 2). I've searched the
internet and found C# designers thought I should use SignData instread
when I need to do 1). BUT, what if I need to do 1) anyway? Please
don't tell me things like "Why would do that?", "That's not what C#
RSA is designed for, use SingData". I'm in a situation which requires
me do 1), long story.
So, basically there's no way to do 1) with the BCL RSA class? If so,
is there any other third party class that does this? It doen't have to
be RSA, but any asymmetric algorithm is OK. Thank you for reading.
As far as my naive textbook knowledge goes;
1)if a file is encrypted with the private key, then it can be
decrypted with the public key,
2)if a file is encrypted with the public key, then it can be decrypted
with the private key.
But the RSA class comes with C# only supports 2). I've searched the
internet and found C# designers thought I should use SignData instread
when I need to do 1). BUT, what if I need to do 1) anyway? Please
don't tell me things like "Why would do that?", "That's not what C#
RSA is designed for, use SingData". I'm in a situation which requires
me do 1), long story.
So, basically there's no way to do 1) with the BCL RSA class? If so,
is there any other third party class that does this? It doen't have to
be RSA, but any asymmetric algorithm is OK. Thank you for reading.