Decrypting the signature created by RSACryptoServiceProvider.SignData() to get the hash

断了今生、忘了曾经 提交于 2021-01-27 13:04:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!