random gpg key gen logic