A simple CLI tool for generating PGP key pairs.
Install globally using npm:
npm install -g pgp-generateTo see all available commands and options, run:
pgpg --helpGenerate a PGP key pair and save it as {fileName}.private and {fileName}.public:
pgpg -n <name> -e <email> -p <secret phrase> -f <path to file>Generate a PGP key pair and print it directly to the console:
pgpg -n <name> -e <email> -p <secret phrase> --print-l, --level: Sets the key security level (0, 1, 2, 3).- Default: 3 (generates a
4096-bitkey for maximum security).
- Default: 3 (generates a
Contributions are welcome! Feel free to fork, modify, and submit a pull request.
For issues or feature requests, please open an issue.