Reputation: 21
I have OpenPGP pgpkey
and pgpid
, in C# how to simply encrypt a string using the Bouncy Castle library ?
Public Key of receiver(MPI in base64):
BADelitpUqMZLn+bryZR5rK9J3eu+pRVFP5tpboOlIwO2vqO/rCi8VvT2TPzEJarWhyZ465NIohYCiia9vaGUEp4rsDzFnVNgpON47yPew1zCmOOofituf+X6Qlaxylm5NnO4vnRcmoF4IbGwSCqyGgGor29D75Hovwlj1q6BWHYWwAGKQ==
Key Type of Public Key: RSA
Key ID of Public Key (8 bytes in hex): 02044b001cd7a551
Upvotes: 2
Views: 5476
Reputation: 9621
This blog post shows an example of OpenPGP encryption using the Bouncy Castle library. The same author has also written about the decryption part.
Upvotes: 1