change passphrase in batch mode
    Werner Koch 
    wk at gnupg.org
       
    Tue Jul 30 09:28:24 CEST 2013
    
    
  
On Tue, 30 Jul 2013 04:42, hhhobbit at securemecca.net said:
>>From what the man pages say, no.  You can delete keys and there
> is experimental key creation with notes in the doc/DETAILS of
With gpg2 you can do:
  gpg2 --passwd KEYID
Of course it will use the pinentry to ask for the old an new passphrase.
You may use a pinentry wrapper as usual or with 2.1-beta the pinentry
loopback mode.
GPGME has 
  /* Change the passphrase for KEY.  FLAGS is reserved for future use
     and must be passed as 0.  This is the synchronous variant.  */
  gpgme_error_t
  gpgme_op_passwd (gpgme_ctx_t ctx, gpgme_key_t key, unsigned int flags);
this convenience function.
Shalom-Salam,
   Werner
-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
    
    
More information about the Gnupg-users
mailing list