🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #19422

Re: Filtering message body (was Re: Posting sux!! so does INN)

#19422
From: Greg Andrews
Date: Sun, 20 Jul 1997 00:00
41 lines
2138 bytes
Michael Hucka <hucka@eecs.umich.edu> writes:
>
>The obvious technical problem is finding a body signature that is
>(1) sufficiently unique while being (2) quick to compute and (3) very, very
>small in terms of storage requirements.


Here's an idea I've been kicking around for about a year now:

  1. Strip header lines (except perhaps for NNTP-Posting-Host),

  2. Strip signature lines,

  3. Strip all punctuation and whitespace except perhaps for
     end-of-line characters (\n),

  4. Strip blank lines (not necessary if end-of-line chars stripped),

  5. Force remainder to lowercase,

  6. Generate a 128-bit MD4 hash of the text.


Now you have a signature that accurately represents the text in the
article body, yet won't be fooled by insignificant changes to the
article like different capitalization, extra whitespace or blank lines,
or the use of different quoting characters.

MD4 is took weak for cryptography, but it's probably fine for this
application, and the descriptions I've seen (like the Tripwire docs)
say the calculation is very fast on 32-bit RISC architectures.

  -Greg
-- 
:::::::::::::::::::  Greg Andrews  gerg@netcom.com  :::::::::::::::::::
ObGuindon:  Caution: This jacket has 37 Velcro(tm) closures.
            Do not hug a moose with the flaps open.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Technical Details
Message-ID: <gergEDMI86.EL8@netcom.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <33d0477a.8926553@code.ripco.com> <000033D150E0.NO_UCE@mauve.demon.co.uk> <33D1597E.6F89575E@spinne.com> <82lo32pibm.fsf@manic.eecs.umich.edu>

Show Full Headers
Complete Article Headers
Message-ID: <gergEDMI86.EL8@netcom.com>
Subject: Re: Filtering message body (was Re: Posting sux!! so does INN)
Date: Sun, 20 Jul 1997 00:00:00 +0000
From: gerg@netcom.com (Greg Andrews)
References: <33d0477a.8926553@code.ripco.com> <000033D150E0.NO_UCE@mauve.demon.co.uk> <33D1597E.6F89575E@spinne.com> <82lo32pibm.fsf@manic.eecs.umich.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 257846646
Sender: gerg@netcom23.netcom.com
Organization: Movie marquee: THE FLY GODS MUST BE CRAZY ALIENS
Newsgroups: news.software.nntp