🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #251694

Re: Rooster's Method of batch decryption

#251694
From: Nomen Nescio
Date: Wed, 02 Nov 2011 03:02
95 lines
5213 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In article <PH9ADIIW40846.5791666667@reece.net.au>
Rooster <remailer@reece.net.au> wrote:

[snip]

> - ------------------------
> @ECHO.
> @ECHO Beginning Rooster's Method for batch decryption:
> @ECHO.
> RENAME *.txt *.asc
> @ECHO off
> IF errorlevel 1 GOTO EOF
> SET "pword="
> :variable
> SET /p pword=<password-file
> IF NOT DEFINED pword GOTO endprocess ELSE GOTO decipher
> :decipher
> FOR %%G IN (*.asc) DO echo %pword%|gpg --batch --passphrase-fd 0 --decrypt-files
> %%G
> FOR /F "skip=1" %%A IN (password-file) DO @echo %%A>>password-file2
> IF NOT EXIST password-file2 GOTO endprocess
> ATTRIB -R password-file
> MOVE /y password-file2 password-file
> GOTO variable
> :endprocess
> ERASE /f password-file
> ECHO There are no more passwords in the password-file.
> SET "pword="
> ECHO Your messages, if any, have been deciphered.
> ECHO Removing undeciphered messages...
> ERASE /f *.asc
> :EOF
> ECHO The batch processing has finished.
> - -----------------------
>
> During the batch process, here is what happens basically:
>
[snip]

> 8.	this same loop of trying each password against each message and discarding
> the individual passwords after each complete pass will resume until all the
> passwords are gone.  Actually it moves fairly quickly, just depending on how
> many messages you have and how many passwords are in your list.

[snip]

Another really important factor I see that has a substantial effect on how long
the batch decryption process could take is related to how much debugging and
diagnostic output you have set in your configuration files for gpg.  From what I
have seen, the default values for debugging and such is usually set to minimum--
that is, no verbosity.  However, if you are using a GUI like GPA or GPGshell,
both of which I think work excellently, you might have fiddled with some of
these settings easily and not returned one of them to their default values.
Maybe you liked seeing the extra information while you were getting familiar
with the program.  (We do like our GUIs after all.)

This is all fine when you are not doing batch jobs and striving for efficiency.
However, unless you have a really good reason for it, like debugging problems,
you should turn off the verbose output settings, especially if you are doing
batch decryption jobs.  If you minimize the output that displays on the terminal
window from the shell, your batch jobs will move by much more quickly.  Much!

Check all the *.conf files in your Windows "%appdata%\gnupg" folder (the
default), or wherever your home folder for gpg was placed.  You can find it by
this command at the command prompt: gpg --version.  It will show you where the
Home directory path is, among other things. (As always you should make a
'copy.bak' of the file first.) If your *.conf files have "verbose" or "debug
levels" set, you can change them in the GUI or remark them out with a direct
edit.  Believe me, this will make your batch decryption jobs move much quicker.

I believe I will be able to come up with some other refinements of my batch
decryption method, and I will share them here.  It's always nice to have
alternatives.  Thanks.

-----BEGIN PGP SIGNATURE-----
Version: N/A

iQGcBAEBAgAGBQJOsK5HAAoJEO3Co03SMUtB2bcMAJbgtaCQtLQpUxrDAkx9/dDV
N5hnNePmzzxgyBsjcju3dDXpeB8qoibR955RN3oqJSnBYbUGD1BSfYvUhjpmfZY8
n8sYaMATxBW0rUIHl8IojBoKsXqs00SAuqnRcQk2Qp9vbaAhEqKonIFTtxu8UWcd
1ZYUYIP4FlSNDSH6Nimug2h6j7zzh6fKLBhMlZullsyOlTHQqxt/2EizLMUFUdal
TpEoAk0p0rbulicBCZTQRliJkoQ8Tqjg+8wPT7g/j5TW3dKx5xqFRENCOdIrixRq
i9fAF/0U8xBqlv7wiJaIxORNyaXRjP4QPL0U40CvEFyawkJXUnCsUSVOzTJvhDB2
s3aya8E+2Q4m53KeCb2yyGW2ZKwLIV20CIs6iGZJkCHd34wIzTOwwVAVS3TfBVFw
wWMG2Hb29OfeNVdtfs//JAo9Csbl8V+4A8F44uUmDOH5SK1NnJ3KOjOavWqaKVHy
NrYc+WG5GYRsrJlYY7WABlSm26Adm2QjZ6G8cqVvuA==
=wjTQ
-----END PGP SIGNATURE-----

-- 
rooster@thechickencoop.net
Technical Details
Message-ID: <e78a5e9835c6399f6c58b0da4e405079@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail
References: <PH9ADIIW40846.5791666667@reece.net.au>

Show Full Headers
Complete Article Headers
Message-ID: <e78a5e9835c6399f6c58b0da4e405079@dizum.com>
Subject: Re: Rooster's Method of batch decryption
Date: Wed, 02 Nov 2011 03:02:24 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <PH9ADIIW40846.5791666667@reece.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!87.79.20.101.MISMATCH!newsreader4.netcologne.de!news.netcologne.de!xlned.com!feeder1.xlned.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@dizum.com>.
X-No-Archive: Yes
Newsgroups: alt.privacy.anon-server
Lines: 96
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Original-Bytes: 4947