singpolyma / openpgp-php

OpenPGP.php is a pure-PHP implementation of the OpenPGP Message Format (RFC 4880).
http://singpolyma.github.io/openpgp-php/
The Unlicense
180 stars 70 forks source link

Programatically generating a PGP key pair? #48

Closed Arinerron closed 7 years ago

Arinerron commented 7 years ago

Is it possible?

Also, can I programmatically pass the public key on to the encrypt function so it doesn't have to store it in the keychain or something (and private key for signing)?

singpolyma commented 7 years ago

Please see keygen in the examples folder.

And yes, of course you can pass and store/not store in any way you like.

Arinerron commented 7 years ago

Thank you.