I am having problems with RSA encryption / decryption capabilities for MS.NET:
It seems, .NET does not support using a private key to encrypt and a corresponding public key to decrypt. (As I understand it, it somehow violates the security of the algorithm.)
Good, but, for example, when I sign the assembly during construction, it seems that the compiler simply does this : "The compiler encrypts the digest using the 1024-bit private key from the public key pair file.
So, if I cannot convince RSACryptoServiceProvider to use the public key for decryption, how can I achieve something similar, for example, a compiler?
I just want to encrypt several bytes with my private key and decrypt it using the public key for some non-critical task. If the software developer succeeds in breaking this scheme, I will live. I just want the non-specialized John Doe not talk.
Any advice on this would be appreciated.
hello berntie
Edit: Use SignData () and VerifySign () have been suggested, but then I can compare hashes for equality. However, I need to get the original input that was encrypted / signed.
source
share