Simple CLI tool to generate PGP keys pair.
npm i -g pgp-generate
Run for details:
pgpg --help
Generate key to files {fileName}.private and {fileName}.public:
pgpg -n {name} -e {email} -p {secret phrase} -f {path to file}
Generate key to console:
pgpg -n {name} -e {email} -p {secret phrase} --print
Additional parameters:
-l, --level
: key security level (0, 1, 2, 3), default is 3 (key with 4096
length will be generated)
Feel free to copy and use this version. Let me know if you need any further modifications!