Windows command line to decrypt multiple files
Hauke Laging
mailinglisten at hauke-laging.de
Tue Dec 3 20:55:03 CET 2013
Am Di 03.12.2013, 12:21:26 schrieb bj:
> Where is password defined?
passwort is (implicitly) defined in the keyring. The secret key is stored
encrypted. You need the passphrase in order to use the key. You must know the
passphrase, you cannot get it from the GnuPG installation.
> *FOR /F "delims=" %%F IN ('MORE ^< "%TMP%\~encryptlist.txt"') DO (IF EXIST
> %%F (ECHO Password|GPG --batch --encrypt --passphrase-fd 0 -r F75C5TE0 -o
> "C:\encryptedfiles\%%F.pgp" %%F IF ERRORLEVEL == 0 DEL "%%F"))POPD*
> (NEXT SECTION IS FTP TRANSFERS)
I am not familiar with that DOS / Windows stuff. Just a few comments:
1) You do not need a passphrase when you encrypt files. You need the
passphrase for signing and decrypting.
2) ECHO Password|
gpg --passphrase-fd 0 --batch -o "..." --decrypt %%F
should do.
Hauke
--
Crypto für alle: http://www.openpgp-schulungen.de/fuer/unterstuetzer/
http://userbase.kde.org/Concepts/OpenPGP_Help_Spread
OpenPGP: 7D82 FB9F D25A 2CE4 5241 6C37 BF4B 8EEF 1A57 1DF5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 572 bytes
Desc: This is a digitally signed message part.
URL: </pipermail/attachments/20131203/bfdb0a95/attachment.sig>
More information about the Gnupg-users
mailing list