Article View: alt.privacy.anon-server
Article #235695Re: Question about esubs
From: Anonymous
Date: Tue, 10 Nov 2009 14:26
Date: Tue, 10 Nov 2009 14:26
63 lines
3347 bytes
3347 bytes
> Thanks for the great info. I since have decided to use hsub for our
> identifying purposes after reading this:
> http://www.mail-archive.com/mixmaster-devel@lists.sourceforge.net/msg00079.html
>
> Here is an explanation about esub I found in alt.privacy.anon-server:
>
> Search alt.privacy.anon-server for Subject: 'Zax: question about hsub'
> Message-Id: <fdb4ec0cafb243c6314f5fd543b8150f@dizum.com>
>> Not quite. eSub is quite complicated in comparison to hSub; it takes
>> the plain text Subject and MD5 hashes it. It does the same with the
>> Encrypt-Subject to produce a second MD5 hash. Next it IDEA encrypts
>> the Subject hash using the Encrypt-Subject hash as the key and the 64
>> bit IV as the IDEA initialisation vector. The resulting encrypted
>> block is then prepended with the plain-text IV and the whole lot is hex
>> encoded to create the eSub.
Pascal code for creating hsub:
//Generate 16 char initialization vector hex string
procedure TForm1.GenerateIV(Sender: TObject);
var RT : integer;
begin
Randomize;
GeneratedIV := '';
repeat begin
RT := Succ(Random(255));
GeneratedIV := GeneratedIV + Format('%.2x', [RT]);
end
until (RT >= 0) and (RT < 256) and (length(GeneratedIV) = 16);
GeneratedIV := lowercase(GeneratedIV);
end;
//Generate 32 char hashed of 'static subject + initialization vector'
(16 byte) hex string
//Use Delphi Cryptography Package at
http://www.cityinthesky.co.uk/cryptography.html
procedure TForm1.Sha1Routine(MySubject : string);
var x : integer;
Hash: TDCP_sha1;
HashDigest: array[0..31] of byte;
begin
ZeroMemory(@HashDigest, sizeof(HashDigest));
FillChar(HashDigest,Sizeof(HashDigest), $FF); // fill the digest
with $FF as the actual digest may not fill the entire digest
Hash:= TDCP_sha1.Create(Self);
Hash.Init;
Hash.UpdateStr(MySubject);
Hash.Final(HashDigest);
Hash.Free;
FinalSubject := '';
for x := Low(HashDigest) to High(HashDigest) do
FinalSubject := FinalSubject + Format('%x', [HashDigest[x]]);
SetLength(FinalSubject, 32);
FinalSubject := GeneratedIV + lowercase(FinalSubject);
end;
Technical Details
Message-ID:
<hdbt6f$84f$1@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.k-dsl.de!news.mixmin.net!not-for-mailReferences:
<slrnhf6elo.69o.admin@fleegle.mixmin.net> <4b00ff910e596ca6b53d26a5a83fa8da@msgid.frell.theremailer.net> <20091110100401.DB1718147E@fleegle.mixmin.net> <hdbrr0$73m$1@news.mixmin.net>Show Full Headers
Complete Article Headers
Message-ID: <hdbt6f$84f$1@news.mixmin.net> Subject: Re: Question about esubs Date: Tue, 10 Nov 2009 08:26:21 -0600 From: Anonymous <Anonymous@domain.invalid> References: <slrnhf6elo.69o.admin@fleegle.mixmin.net> <4b00ff910e596ca6b53d26a5a83fa8da@msgid.frell.theremailer.net> <20091110100401.DB1718147E@fleegle.mixmin.net> <hdbrr0$73m$1@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.k-dsl.de!news.mixmin.net!not-for-mail Newsgroups: alt.privacy.anon-server Organization: Anonymous Lines: 63 Reply-To: Anonymous@domain.invalid NNTP-Posting-Host: 2e3f1e694d8e8c930be472e041b613e7 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@mixmin.net NNTP-Posting-Date: Tue, 10 Nov 2009 14:26:23 +0000 (UTC) X-Newsreader: MesNews/1.08.03.00-gb