attila-lendvai / gpg-keygen Goto Github PK
View Code? Open in Web Editor NEWGenerate PGP keys with GnuPG, following best practices.
Generate PGP keys with GnuPG, following best practices.
$ ./gpg-keygen.py --master-key-length 8192
*** Temporary directory for sensitive data will be '/run/shm/gpg-key-gen3be6gua4'. Make sure it's either on a volatile storage (e.g. /run/shm/ on linux), or it's deleted using 'srm' (secure-delete) once it's not needed!
*** You will repeatedly be asked for various passphrases in blocking windows, so it's a good idea to keep the log messages in this window visible.
*** Error reached toplevel, exiting.
*** Traceback (most recent call last):
*** File "./gpg-keygen.py", line 309, in
*** generateEverything(args)
*** File "./gpg-keygen.py", line 237, in generateEverything
*** generateMasterKey(args)
*** File "./gpg-keygen.py", line 132, in generateMasterKey
*** if getMasterKeyFingerprint(failIfMissing = False) != None:
*** File "./gpg-keygen.py", line 112, in getMasterKeyFingerprint
*** output = runGpg("--with-colons --list-secret-keys").splitlines()
*** File "./gpg-keygen.py", line 105, in runGpg
*** return run(gpgCommandLine(_args), *_kwargs)[0]
*** File "./gpg-keygen.py", line 95, in run
*** raise ShellCommandError(command, process.returncode, stdout, stderr)
*** ShellCommandError: Shell command returned with return code: 127
*** stdout: {{{b''}}}, stderr: {{{b'/bin/sh: 1: gpg2: not found\n'}}}
Hi,
Happened upon your code looking for gpg best practices; intrigued by the 8192bit RSA.
Sadly discovered a glitch; is it a Python 2 piece of code? I don't l know enough about Python to tell.
I'm running on a stock ArchLinux system on this machine.
~ ❯❯❯ python ./Downloads/gpg-keygen.py master ✱ ◼
File "./Downloads/gpg-keygen.py", line 53
os.makedirs(path, mode = 0700)
^
SyntaxError: invalid token
~ ❯❯❯ python --version ⏎ master ✱ ◼
Python 3.4.3
Let me know if there's anything I can do to help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.