开发者

Decrypt p7m File Using C#?

开发者 https://www.devze.com 2023-01-07 01:53 出处:网络
I have a .p7m (application/pkcs7-mime) encrypted file on my hard drive, and the associated Private Key it was encrypted with. It is encrypted with AES (128bit) and enveloped with RSA (10开发者_运维知识

I have a .p7m (application/pkcs7-mime) encrypted file on my hard drive, and the associated Private Key it was encrypted with. It is encrypted with AES (128bit) and enveloped with RSA (10开发者_运维知识库24bit). I have successfully imported the key from my key store but I dont know how i would go about using it to decrypt a .p7m file. Any suggestions?


I think you start with the EnvelopedCms class and maybe use the Decode () method followed by the Decrypt method. It is hard to figure out from the documentation, but this page may help.

0

精彩评论

暂无评论...
验证码 换一张
取 消