🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: New Hsub Finder Procedure

#252592
From: Nomen Nescio
Date: Mon, 26 Dec 2011 22:37
93 lines
5210 bytes
In article <slrnjfh0dv.cgo.admin@fleegle.mixmin.net>
Zax <admin@mixmin.net> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> On Mon, 26 Dec 2011 06:57:36 +0100 (CET), Anonymous Remailer (austria) wrote in
> Message-Id: <e90d3b22e97ab156d8e6c5f5ca9ef24c@remailer.privacy.at>:
>
> > Yes, I believe it is working, but can you explain how I use your script's
> > generator feature?  Thanks.
>
> Within the code, you'll see three functions defined:
> bf
> check
> main
>
> "bf" is the esubbf generator
> "check" is the esubbf validator
> "main" is purely for testing purposes, it runs when the script is called
> directly.
>
> To generate an esub, you tell "main" to call "bf" with the required
> variables.  For example, the following line (inserted after esubs = [])
> will cause the script to generate an esub and subsequently verify it.
>
> esubs.append(e.bf(text, key))

I inserted this text 'exactly' as you showed it here in two different 
ways, but both gave me the same error message when I ran 'esub.py' on the 
command line.  Here are the configurations I tried:

First this one:
---------------------
def main():
    """Only used for testing purposes.  We Generate an eSub and then check 
it
    using the same input text."""
    e = esub()
    key = "key"
    text = "text"
    esubs = [] esubs.append(e.bf(text, key))
    esubs.append("14857375e7174ae1dd83b80612f8a148e2777c7ae78c4c7d")
    esubs.append("fb56b638106688702dfed01fb763e3c9c29de2f46611eabe")
    esubs.append("7f338d465085b8912d15a857c0726c270655bad5e8859f2f")
    esubs.append("ac2ad32d9f603a3b1deaa57ee970a7ecfbd42717b5256328")
    esubs.append("1c5e5d8ff9ef51fe082b96a2db196d7d0e9b9933e51a4bd1")
    for sub in esubs:
        print "%s: %s" % (sub, e.check(text, key, sub))

--------------------------

Secondly, this one:

def main():
    """Only used for testing purposes.  We Generate an eSub and then check 
it
    using the same input text."""
    e = esub()
    key = "key"
    text = "text"
    esubs = []
    esubs.append(e.bf(text, key))
    esubs.append("14857375e7174ae1dd83b80612f8a148e2777c7ae78c4c7d")
    esubs.append("fb56b638106688702dfed01fb763e3c9c29de2f46611eabe")
    esubs.append("7f338d465085b8912d15a857c0726c270655bad5e8859f2f")
    esubs.append("ac2ad32d9f603a3b1deaa57ee970a7ecfbd42717b5256328")
    esubs.append("1c5e5d8ff9ef51fe082b96a2db196d7d0e9b9933e51a4bd1")
    for sub in esubs:
        print "%s: %s" % (sub, e.check(text, key, sub))

>From both of these configurations, the script responds with this error:

  File "C:\Documents and Settings\John\My Documents\Downloads\esub.py", 
line 54
    using the same input text."""
                                             ^
IndentationError: expected an indented block

So I cannot see whether the script simply stops at this error and does not 
go on to show whether one of either of these two configurations is 
acceptable, and I cannot tell by looking at it what "IndentationError" 
needs corrected in what way.  Do you have any ideas about this?  Thanks.

> Each time you now run the script, you'll note that one of the outputed
> esubs (the top one) changes each time.  This is due to the random IV the
> bf function is generating.  Because the same text and key are used in
> the generation and validation, the esub will always be valid.

 I know that I have python correctly installed because I use it for other 
purposes, and I was able to run your script correctly before I altered its 
initial configuration as described above.
Technical Details
Message-ID: <7990d5ed8f987b40741c1aa4d9e46a00@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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!eweka.nl!hq-usenetpeers.eweka.nl!188.40.76.149.MISMATCH!mail2news.mixmin.net!not-for-mail
References: <GE2BSOK140893.2355092593@reece.net.au> <G99AA5SC40893.6938773148@reece.net.au> <3DJLN2N340894.473599537@reece.net.au> <20111217170048.3CA7581460@fleegle.mixmin.net> <Y6ZEU9TX40895.1338310185@reece.net.au> <20111218005425.C6C4181461@fleegle.mixmin.net> <LA8QQOYU40895.9336805556@reece.net.au> <slrnjes99n.cgo.admin@fleegle.mixmin.net> <ZKJ5SOSX40896.8830671296@reece.net.au> <slrnjf198r.cgo.admin@fleegle.mixmin.net> <e90d3b22e97ab156d8e6c5f5ca9ef24c@remailer.privacy.at> <slrnjfh0dv.cgo.admin@fleegle.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <7990d5ed8f987b40741c1aa4d9e46a00@dizum.com>
Subject: Re: New Hsub Finder Procedure
Date: Mon, 26 Dec 2011 22:37:44 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <GE2BSOK140893.2355092593@reece.net.au> <G99AA5SC40893.6938773148@reece.net.au> <3DJLN2N340894.473599537@reece.net.au> <20111217170048.3CA7581460@fleegle.mixmin.net> <Y6ZEU9TX40895.1338310185@reece.net.au> <20111218005425.C6C4181461@fleegle.mixmin.net> <LA8QQOYU40895.9336805556@reece.net.au> <slrnjes99n.cgo.admin@fleegle.mixmin.net> <ZKJ5SOSX40896.8830671296@reece.net.au> <slrnjf198r.cgo.admin@fleegle.mixmin.net> <e90d3b22e97ab156d8e6c5f5ca9ef24c@remailer.privacy.at> <slrnjfh0dv.cgo.admin@fleegle.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.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.mixmin.net!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>.
Newsgroups: alt.privacy.anon-server
Lines: 94
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Original-Bytes: 5019