PointyCastle / pointycastle

Moved into the Bouncy Castle project: https://github.com/bcgit/pc-dart
MIT License
270 stars 76 forks source link

How to encode and decode PGP message? #143

Open proteye opened 6 years ago

proteye commented 6 years ago

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

duncanhoggan commented 5 years ago

Are you referring to support for OpenPGP?

proteye commented 5 years ago

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).

duncanhoggan commented 5 years ago

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.

proteye commented 5 years ago

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