PointyCastle/pointycastle

How to encode and decode PGP message?

Opened this issue · 4 comments

Hello.
How to encode and decode PGP message like this: "-----BEGIN PGP MESSAGE-----{data}-----END PGP MESSAGE-----"?

Are you referring to support for OpenPGP?

Not full support. At least decoding and coding message. RSA encryption itself as I understand it is the same. But "BEGIN PGP MESSAGE..." is different (may be different sequence).

Ok so you are referring to just parsing and adding the ASCII Armor. I'm not sure if this falls into the scope of this repo, you could manage it with a regex pattern for parsing.

Ok. Thank you. I just thought maybe someone had done separately from the repository and there is a ready code.