Article View: alt.privacy.anon-server
Article #254126Re: creation of nym at mixmin net
From: Rooster
Date: Fri, 10 Feb 2012 09:31
Date: Fri, 10 Feb 2012 09:31
279 lines
12986 bytes
12986 bytes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In article <jh2iqe$pdj$3@news.mixmin.net> animal <nobody@domain.invalid> wrote: > > I have created a mynym@mixnym.net 4096 RSA Gnupg key , i have exported to > a mynymkey.txt file which i have encrypted with 0x14D0C447 mixmin nym pub > key . I have sent mynymkey.txt.asc issuing this command < mixmaster -tm > config@mixnym.net mynymkey.txt.asc > . I haven't added any extra header > for hsub and now i suppose i have to start decrypting all post sent to AAM > to have my nym account , right ? What's the best and quickest software/ > script helping me to do such a thing ? I'm sure i need explanations on > the right procedure . > thanks > > OD > Sounds like you got things going in the right direction, animal. Awesome. Since you do not have an hsub yet, you will need to decrypt all the messages from a.a.m. using a program that does not rely on the hsub to identify it. I have written such a program for Windows. Is that what you are using for an OS? It is a script, a batch program, that runs in the Windows shell. It is easy to use. You can copy it into a text file, save it into a folder and put the messages that you have downloaded from a.a.m. into it for processing. You will need to save the messages into it as individual text files and it is convenient to save them as text files having the same names as the subjects they have in a.a.m. This is normally how messages are saved anyway, with their subjects as the file name. However, since this program does not care about the hsub, you coud use any valid name as the filename, so long as you save them as text files and with the ".txt" suffix extensions: filename1.txt, filename2.txt, etc. Put them all in one folder along with my batch file; and then you need to add the password file, which should also be in text format, like those you might make in Windows Notepad. However, importantly, this password file should not have a ".txt" extension, to distinguish it from the message files to be acted upon by the script itself. It sounds like you have only one nym right now; so you should have only one password. This would be the same password as what you made for the nym encryption key itself. Put this password in the file on the first line and no spaces afterward; after entering the password on the first line, hit the enter key to move the cursor to the next line. Then just save the file with no suffix, and name the file "password-file". Put it into the folder too, with the messages and the batch file. Then go to the Windows shell prompt in this same folder as the current directory and run the batch file. It will ask you a few questions at the beginning. Answer them and hit enter. It will begin the process of decryption. I am assuming that you have put this same nym key into your keyring and it is accessible to gpg, as you did say that you were able to encrypt, etc. It does need to be accessible to gpg on your keyring in your system environment. The process will try to decrypt every message with that password using the keys on your keyring. If it finds a match with one of the messages, it will decrypt it and save the deciphered message in that same folder and with the same name, but it will remove the suffix from it. In other words, it will have a name like filename10, instead of filename10.txt . Depending on how many keys you have and how many messages you are trying to decrypt, the processing can take a little while. However, there are ways you can reduce the time substantially by how you answer the questions at the beginning. Judging from what you said in your message, you did not create the nym with symmetric encryption, but only with asymmetric encryption, that is, using the key for your nym. Therefore, you can tell the batch file that you only want to search methods with asymmetric encryption, and the process will first remove all the symmetrically encrypted messages before starting the decryption process. This will eliminate about half if not more of them right away. If it ends up finding messages, it will tell you about it. In any case, it will afterwards delete all the undeciphered messages and the password file when it has finished. All that would be left is the batch file and the deciphered messages, if any was made. The process will also remove any files that have problematic names and put them into a separate folder. It might be helpful to read some of the short notes i put inside the batch file itself. During the batch processing, it is normal for you to see an occassional warning message on the screen, but yo needn't be conderned about it. It will proceed right past them; and they only occur when yo encounter a message that has IDEA cipher encoding if you do not also have that capability. It has no effect on the outcome of your messages, and you will not be prompted to make a response to them. Here is the batch file to use, and let me know if you have any more questions: - ----------------- rooster.bat------------------------- SETLOCAL CLS @ECHO off ECHO : The folder where you execute this batch file ECHO : should have ONLY this batch file, the ECHO : password-file, and the messages for decrypting. ECHO. ECHO Beginning Rooster's Method for batch decryption: ECHO. ECHO. (@ECHO Now renaming *.txt to *.asc for gpg processing...) REN *.txt *.asc IF NOT errorlevel 0 GOTO EOF ECHO. (ECHO Moving files with problematic names into 'badnames' folder...) DIR/b |findstr /i "[!\&^]">>badnames1 MD badnames FOR /f "tokens=* eol=\" %%G in (badnames1) do ( MOVE "%%G" .\badnames\"%%G") IF EXIST badnames1 ERASE /f/q badnames1 rem: This block routine removes spaces from erratic filenames SET "filename=" FOR %%F in (*.asc) do SET filename=%%F & CALL:sub1 %%F GOTO :jump :sub1 SET nospace=%filename: =% RENAME "%*" %nospace% GOTO :eof :jump rem: end routine to remove spaces from filenames SET counter=0 :startnow IF %counter%==2 GOTO core SET /a counter+=1 IF %counter%==2 ECHO This block allows the user to choose whether to attempt deciphering IF %counter%==2 ECHO on both symmetric and asymmetric encrypted messages, or to attempt IF %counter%==2 ECHO on only one of these two types of encrytion. Unless you choose either IF %counter%==2 ECHO "Y" or "N", both types of message will be attempted. IF %counter%==2 ECHO You get one more try to answer correctly. SET "choice=" ECHO. ECHO Do you want to search both types of message? ECHO You must type Y or N and hit enter. SET /p choice= Please make your choice now: ^(Y or ^N)? @ECHO. IF NOT DEFINED choice GOTO startnow IF /i %choice%==Y GOTO core IF /i NOT %choice%==N GOTO startnow rem: This block routine allows you to remove all rem: messages not having outer symmetric encryption CLS SET counter=0 :option1 IF %counter%==2 GOTO EOF IF %counter%==1 ( (ECHO You will get only 2 tries to answer correctly.)) IF %counter%==1 ( (ECHO Unless you choose "Y" or "N", batch processing will cease.)) SET /a counter+=1 SET "decision=" ECHO. ECHO You have chosen "not" to do both types of message. ECHO Do you want to search only files with an outer layer ECHO of symmetric encryption^? If you know that all of your ECHO messages have an outer layer of symmetric encryption, ECHO then you should select "yes." If you do select "yes," ECHO then all files having only asymmetric encryption ECHO will be deleted first, before decryption begins. ECHO This can save a lot of time. ECHO You must type Y or N and hit enter. ECHO. ECHO This is try # %counter%. ECHO. SET /p decision= Please make your decision now: ^(Y or ^N)? ECHO. IF NOT DEFINED decision GOTO option1 IF /i %decision%==N GOTO option2 IF /i NOT %decision%==Y GOTO option1 FOR %%G in (*.asc) do ( gpg --list-only --status-fd 1 %%G | find /i "enc_to" && del %%G ) ECHO. ECHO Deleting messages not having an outer layer of symmetric encryption... GOTO core rem: end routine for removing messages without outer symmetric encryption rem: this block routine allows you to remove all rem: messages with outer layer of symmetric encryption CLS :option2 SET "decision2=" ECHO. ECHO You have chosen to attempt deciphering of messages ECHO with no outer layer of symmetric encryption. Only ECHO those with asymmetric (public key) encryption will be ECHO searched. This means that for any of the messages with ECHO hidden-recipients, all of the secret keys on your key- ECHO ring will be tried until a match is made, if any. ECHO. ECHO If you want to search only these messages, you should ECHO answer "yes" below. If you prefer to abort the decryption ECHO process, you should answer "no" below. If you do answer ECHO "no", the messages will "not" be deleted and the batch ECHO processing will end. ECHO. SET counter=0 :lasttry IF %counter%==2 ( (ECHO You have not chosen to search any messages) & GOTO EOF) SET /a counter+=1 ECHO. ECHO Do you want to search only messages with asmmetric encryption? SET /p decision2= Please make your decision now: ^(Y or ^N)? ECHO. IF NOT DEFINED decision2 ( (ECHO You have answered incorrectly.) & GOTO lasttry) IF /i %decision2%==N GOTO EOF IF /i NOT %decision2%==Y ( (ECHO You have answered incorrectly.) & GOTO EOF) FOR %%K in (*.asc) do ( gpg --list-only --status-fd 1 %%K | FIND /i "enc_to" && DIR /b %%K>>filelist) IF NOT EXIST filelist ( (ECHO There are no messages that indicate having asymmetric encryption on its outer layer!) & GOTO endprocess) ECHO. ECHO Removing messages with symmetric encryption... FOR %%A in (*.asc) do @FINDSTR /c:%%A filelist || ERASE /f /q %%A :core SET "pword=" :variable SET /p pword=<password-file rem: IMPORTANT NOTE: If your password contains any of these command characters rem: (between the quotation marks) "& < > |", which take precedence over ECHO, rem: then you should precede the character with this symbol "^" in the password rem: file, not only once but THREE TIMES, like this for example: ^^^& ; for rem: each time one of those command characters appears in your password. IF NOT DEFINED pword GOTO endprocess ELSE GOTO decipher :decipher ECHO Beginning the decryption process.... ECHO. ECHO You may see error messages during the decryption process ECHO related to those messages with IDEA cipher unless you ECHO have the IDEA extension capability. This is normal, and ECHO has no effect on your valid messages. ECHO. 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 IF EXIST filelist ERASE /f filelist TYPE nul>password-file 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 has finished processing. ENDLOCAL - ----------------------------------------------------------- Enjoy the ride. :) - -- rooster@thechickencoop.net gallus gallus domesticus "A happy member of Kingdom Animalia" -----BEGIN PGP SIGNATURE----- Version: N/A iQGcBAEBAgAGBQJPNOGnAAoJEO3Co03SMUtBJqYL/Alk7v6eou2w8J/nbY439Pi4 bHbbi73t5JAYv198Vc/fHECN4rB6pIAN/A3yHIqDvoE3+bE6toxx/EpGIqSbBHBC ibvWEmfhM12YBD/MFYsJspN4ZgpCfDPwaXHf75/j2AVyraDy4eQbLrvHGdLRLyVc bcY8LW//UIgcS0QHsEvy7AqjWLF2Dv8DPbnWeZF/0osmtvf+mrgcCcOgsexjhgO2 fiOTskRGsMsrmZwK04XZGIKo6zrzL4XMyhQMD6DKhE4v48zo6IlRV1Ee9K5SuX5H 2Hur1NE/reYKWPwjdXIv3ie1XO9BhGjN/SOHsYhr86Y8gOZkr7DjQAkX7v6mdH8S xhs25OQJ3vH+uQau8tTqJ9j7rfSGNj/rKBziSpDnTexAa8KNujvcUNROGzoqHqOt MtIf5+LC8FkU/OSxfsCav+SEbAjQokTMLhxiAK8DfqtunXq1xQ3g0wUQcGihVfDf 2GSMgodG8ZZcojPSCuhT1mseB2PFDXIcs05CkdMx5A== =r9Yg -----END PGP SIGNATURE-----
Technical Details
Message-ID:
<3VLHB97T40949.7298958333@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.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mailReferences:
<jh2iqe$pdj$3@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <3VLHB97T40949.7298958333@reece.net.au> Subject: Re: creation of nym at mixmin net Date: Fri, 10 Feb 2012 09:31:03 +0000 From: Rooster <remailer@reece.net.au> References: <jh2iqe$pdj$3@news.mixmin.net> 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.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.newsrouter.astraweb.com!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail X-Remailer-Contact: abuse@reece.net.au (English Only Please) Newsgroups: alt.privacy.anon-server Lines: 280 Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net