mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 08:37:14 -04:00
Generate ed25519 keys instead of RSA
This commit is contained in:
+3
-3
@@ -142,9 +142,9 @@ def gpg_config():
|
|||||||
if _gpg_id_sel == len(_named_uid_list) - 1:
|
if _gpg_id_sel == len(_named_uid_list) - 1:
|
||||||
if not isfile(f"{home}/.config/sshyp/gpg-gen"):
|
if not isfile(f"{home}/.config/sshyp/gpg-gen"):
|
||||||
open(f"{home}/.config/sshyp/gpg-gen", 'w').writelines([
|
open(f"{home}/.config/sshyp/gpg-gen", 'w').writelines([
|
||||||
'Key-Type: 1\n', 'Key-Length: 4096\n', 'Key-Usage: sign encrypt\n', 'Name-Real: sshyp\n',
|
'Key-Type: eddsa\n', 'Key-Curve: ed25519\n', 'Key-Usage: sign\n', 'Subkey-Type: ecdh\n',
|
||||||
'Name-Comment: gpg-sshyp\n', 'Name-Email: github.com/rwinkhart/sshyp\n',
|
'Subkey-Curve: cv25519\n', 'Subkey-Usage: encrypt\n', 'Name-Real: sshyp\n',
|
||||||
'Expire-Date: 0'])
|
'Name-Comment: gpg-sshyp\n', 'Name-Email: github.com/rwinkhart/sshyp\n', 'Expire-Date: 0'])
|
||||||
curses_radio(['okay'], 'gpg key generation may take some time (especially on slower devices)\n\nselect "okay" '
|
curses_radio(['okay'], 'gpg key generation may take some time (especially on slower devices)\n\nselect "okay" '
|
||||||
'to start\n\ndo not terminate this process!')
|
'to start\n\ndo not terminate this process!')
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user