0

This is not technically a database question, but about the innards of Postgres's pgcrypto extension.The documentation says

The algorithms in crypt() differ from the usual MD5 or SHA1 hashing algorithms in the following respects:

I would like to know how/where might I be able to find the details of the hashing algorithms.

Ideally, I would like to compare the algorithms of pgcrypto with the regular versions of the algorithms.

ahron
  • 833
  • 2
  • 10
  • 20

1 Answers1

1

Since Postgresql is open source, you can find the code of hashing algorithms easily.

Basically, pg_crypt function calls px_crypt function which picks algoritm and calls related hashing function for example px_crypt_md5 which is imported from FreeBSD source.

Sahap Asci
  • 3,174
  • 1
  • 17
  • 28