开发者

Verify a PgP Encrypted and Signed file with BouncyCastle

开发者 https://www.devze.com 2023-03-31 20:20 出处:网络
I\'m signing a document using PgP with the help of the bouncycastle library in c#. How do I verify a signed docum开发者_开发技巧ent to ensure that it is signed by the correct person or to even identif

I'm signing a document using PgP with the help of the bouncycastle library in c#. How do I verify a signed docum开发者_开发技巧ent to ensure that it is signed by the correct person or to even identify who signed it.

I'm using the code from the question with some little modifications to sign the file. The keys are self generated.

Edit: I'm able to verify a signed file using information from this link. In an encrypted and signed file, I'm however unable to get the PgpSignatureList to use for verification. I'm however able to get the LiteralData and decryption works.

regards


The Bouncy Castle C# project contains an equivalent example.

0

精彩评论

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

关注公众号