Better Logic for Generating PGP Key