pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
md5 c code
2+ messages / 2 participants
[nested] [flat]

* md5 c code
@ 2001-01-04 21:24 Ron Peterson <ron.peterson@yellowbank.com>
  2001-01-07 11:32 ` Re: md5 c code Marko Kreen <marko@l-t.ee>
  0 siblings, 1 reply; 2+ messages in thread

From: Ron Peterson @ 2001-01-04 21:24 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org; +Cc: marc@milestonerdl.com; peter_e@gmx.net

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

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: md5 c code
  2001-01-04 21:24 md5 c code Ron Peterson <ron.peterson@yellowbank.com>
@ 2001-01-07 11:32 ` Marko Kreen <marko@l-t.ee>
  0 siblings, 0 replies; 2+ messages in thread

From: Marko Kreen @ 2001-01-07 11:32 UTC (permalink / raw)
  To: Ron Peterson <ron.peterson@yellowbank.com>; +Cc: pgsql-hackers@postgresql.org; pgsql-sql

On Thu, Jan 04, 2001 at 04:24:18PM -0500, Ron Peterson wrote:
> I've attached a bit of c code to do md5 checksums on text.  There's

Check contrib/pgcrypto in 7.1/CVS

-- 
marko




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-01-07 11:32 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-04 21:24 md5 c code Ron Peterson <ron.peterson@yellowbank.com>
2001-01-07 11:32 ` Marko Kreen <marko@l-t.ee>

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