postgresql/contrib/pgcrypto
Tom Lane 5bb2300b59 Revise handling of oldstyle/newstyle functions per recent discussions
in pghackers list.  Support for oldstyle internal functions is gone
(no longer needed, since conversion is complete) and pg_language entry
'internal' now implies newstyle call convention.  pg_language entry
'newC' is gone; both old and newstyle dynamically loaded C functions
are now called language 'C'.  A newstyle function must be identified
by an associated info routine.  See src/backend/utils/fmgr/README.
2000-11-20 20:36:57 +00:00
..
Makefile Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
README.pgcrypto Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
internal.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
krb.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
md5.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
md5.h Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
mhash.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
openssl.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
pgcrypto.c Revise handling of oldstyle/newstyle functions per recent discussions 2000-11-20 20:36:57 +00:00
pgcrypto.h Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
pgcrypto.sql.in Revise handling of oldstyle/newstyle functions per recent discussions 2000-11-20 20:36:57 +00:00
sha1.c Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00
sha1.h Hashing functions from Marko Kreen <marko@l-t.ee> 2000-10-31 13:11:28 +00:00

README.pgcrypto

DESCRIPTION

  Here is a implementation of crypto hashes for PostgreSQL.
  It exports 2 functions to SQL level:

    digest(data::text, hash_name::text)
	which returns hexadecimal coded hash over data by
	specified algorithm. eg

	> select digest('blah', 'sha1');
	5bf1fd927dfb8679496a2e6cf00cbe50c1c87145

    digest_exists(hash_name::text)::bool
	which reports if particular hash type exists.

  If any of arguments are NULL they return NULL.

HASHES

  For choosing library you must edit Makefile.

  standalone (default):
	MD5, SHA1

	(the code is from KAME project.  Actually I hate code
	duplication, but I also want to quarantee that MD5 and
	SHA1 exist)

  mhash (0.8.1):
	MD5, SHA1, CRC32, CRC32B, GOST, TIGER, RIPEMD160,
	HAVAL(256,224,192,160,128)

  openssl:
	MD5, SHA1, RIPEMD160, MD2

  kerberos5 (heimdal):
	MD5, SHA1