0

Does anyone have a simple example to encrypt a simple string using an asc public key file with C#?

I saw the documentation but it seems complex and always oriented to encrypt files.

Im still noob with pgp

Thank you all.

user3822492
  • 145
  • 1
  • 11
  • Does this answer your question? [Encrypt string with Bouncy Castle AES/CBC/PKCS7](https://stackoverflow.com/questions/29701401/encrypt-string-with-bouncy-castle-aes-cbc-pkcs7) – Jonathan Nov 16 '20 at 18:45
  • Thanks Jonathan but no, the first one works without BC and the second one doesnt use .asc file. Thank you anyway – user3822492 Nov 16 '20 at 19:46
  • Have you looked at the 10 or so examples in the bouncycastle source under the `/crypto/test/src/openpgp/examples` directory? – President James K. Polk Nov 16 '20 at 21:50

0 Answers0