diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-10-31 13:11:28 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-10-31 13:11:28 +0000 |
| commit | 0c0dde6176edc892bbd39642de08ed1014ce2f7f (patch) | |
| tree | 4d08f93a269e12aab23f479464d6b399ec654a78 /contrib/pgcrypto/README.pgcrypto | |
| parent | 73874a06f02691b32c07318e543d83e7947efa51 (diff) | |
| download | postgresql-0c0dde6176edc892bbd39642de08ed1014ce2f7f.tar.gz | |
Hashing functions from Marko Kreen <marko@l-t.ee>
Diffstat (limited to 'contrib/pgcrypto/README.pgcrypto')
| -rw-r--r-- | contrib/pgcrypto/README.pgcrypto | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/contrib/pgcrypto/README.pgcrypto b/contrib/pgcrypto/README.pgcrypto new file mode 100644 index 0000000000..cfb05a7516 --- /dev/null +++ b/contrib/pgcrypto/README.pgcrypto @@ -0,0 +1,40 @@ + +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 + + |
