How to encrypt files with PGP keys?

Hello all,
Hope everyone is doing all right.

Encrypting files with RSA keys is pretty easy with Elixir/Erlang, but I couldn’t find out how to do the same using PGP keys (without using CMD).
I have spent a few days trying to do it and I have came across some people suggesting just removing the headers and checksum of the key, to transform it into PEM format, but that doesn’t work. I have also seem a bunch of crypto libs, but none of them work with PGP.

Does anyone know if it’s possible to encrypt files using PGP public keys directly with Elixir/Erlang and not using the CMD?

Thanks! :smiley:

1 Like