问题
I'm trying to retrieve the hash created with the RSACryptoServiceProvider
class' SignData
and SignHash
methods. I need this to be able to store encrypted hashes that must be retrieved later because they're part of a hash chain.
Initially I wanted to encrypt and decrypt hashes manually, using the private key for encryption, but the library doesn't allow it.
I can't find a method that does this, and all my searches have returned answers about how private key encryption is a bad idea (when not using it for signing ...).
来源:https://stackoverflow.com/questions/12601998/decrypting-the-signature-created-by-rsacryptoserviceprovider-signdata-to-get-t