Skip site navigation (1) Skip section navigation (2)

md5 c code

From: Ron Peterson <ron(dot)peterson(at)yellowbank(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: marc(at)milestonerdl(dot)com, peter_e(at)gmx(dot)net
Subject: md5 c code
Date: 2001-01-04 21:24:18
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-sql
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

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

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


Attachment: pg_md5.tar.gz
Description: application/x-gzip (5.6 KB)


pgsql-hackers by date

Next:From: Tom LaneDate: 2001-01-04 21:44:32
Subject: Re: Missing ColLabel tokens
Previous:From: Peter EisentrautDate: 2001-01-04 20:31:11
Subject: Missing ColLabel tokens

pgsql-sql by date

Next:From: Dan WilsonDate: 2001-01-04 21:40:52
Subject: Re: GUI interface
Previous:From: Steve BernDate: 2001-01-04 21:09:37
Subject: Re: GUI interface

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group