-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 07/29/2013 11:02 PM, Hauke Laging wrote: > Hello, > > is it possible to change a passphrase in batch mode? >
>From what the man pages say, no. You can delete keys and there is experimental key creation with notes in the doc/DETAILS of of the source code on how to do that. Alterations to code? Look at the experimental key creation to get some ideas. You are of course free to investigate using expect, expectk, or tk on Linux / Unix. Things like sh / ksh / bash, PERL, BAT, or PowerShell won't work. I haven't looked at the GnuPG source code in a long time but if which ever of gpg or gp2 you are using does a dup() or dup2() of STDIN then after the "gpg --edit-key KEY" then an internal passwd command you will have to wait before giving it the old pass-phrase, new pass-phrase, and then save. For two way across distance the other side may need the new public key after the pass-phrase change (not tested). I would backup my ~/.gnupg ('nix) or gnupg (somewhere down inside your Windows %UserProfile% folder) before doing tests in case you do irreperable damage. HHH -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iQEcBAEBCAAGBQJR9yggAAoJEMhFIk/IOUbwyzIH/jHSIqoFC5eP6U5Qn2G9K5R+ fPu7INvu1YMK+yckFlOxCRmvNx4+zUMuSnj7Ull3QavIG8qOnr9WDCEn2X6lPXTw LRmF/Woc3eD7XRQmf1TaWBpSdqQL7W9PKXoS3HWMI62LtIAnTptH6E1B8NJzIQSK +P3AOS2mVZ/GfTlK6LQgiNvXlQ8zhGUYrj5z0QxviKUdezuh1VeSeU2QMSVxooJy +valEOYdt66GE81lGjV//rPUtJyZBxNYotx4TdqCeLZ7zAOnfMVfJLHYb17qtbAl VenVBWgevhChkoF6SCD+MzPeF+8qSWpDE5V5wqmA5J8bnKhMC1xbS2C8Ar135S8= =jc/h -----END PGP SIGNATURE----- _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users