开发者

Verify a PgP Encrypted and Signed file with BouncyCastle

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜