pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Peterson <ron.peterson@yellowbank.com>
To: pgsql-hackers@postgresql.org
Cc: marc@milestonerdl.com
Cc: peter_e@gmx.net
Subject: md5 c code
Date: Thu, 04 Jan 2001 16:24:18 -0500
Message-ID: <3A54EA02.F1E1EFD8@yellowbank.com> (raw)

I've attached a bit of c code to do md5 checksums on text.  There's
nothing too original here, this was mostly just ripped from rfc1321,
with some driver code added for PostgreSQL.  Also a Makefile and a test
schema.

Sorry if this isn't the right place to post such a thing.  I had just
noticed a question on the pgsql-sql list about this, so I thought, what
the heck, I'll try to contribute something.

Please note that this code is copyright RSA Data Security, Inc.  What
kind of complications that causes for distribution, I have no idea.  It
says unlimited distribution, so seems o.k. to me, but what do I know. 
The copyright notice is preserved in the code and included in the
README.

This function accepts text as input.  I.E. - pg_md5(text).  Since
postgres.h defines both text and bytea to be the same thing (typedef
struct varlena), does that mean this function should also accept binary
input?

-Ron-
ron.peterson@yellowbank.com

Attachments:

  pg_md5.tar.gz (application/x-gzip, 5.6K) download

view thread (2+ messages)  latest in thread

Message-ID: <3A54EA02.F1E1EFD8@yellowbank.com>
Permalink:  ../3A54EA02.F1E1EFD8@yellowbank.com/
Also on:    postgresql.org/message-id/3A54EA02.F1E1EFD8@yellowbank.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: ron.peterson@yellowbank.com, pgsql-hackers@postgresql.org, marc@milestonerdl.com, peter_e@gmx.net
  Subject: Re: md5 c code
  In-Reply-To: <3A54EA02.F1E1EFD8@yellowbank.com>
  References: <3A54EA02.F1E1EFD8@yellowbank.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox