Compute Hashes With pgcrypto
Last updated
Was this helpful?
Last updated
Was this helpful?
The pgcrypto
extension that comes with PostgreSQL adds access to some general hashing functions. Included are md5
, sha1
, sha224
, sha256
, sha384
and sha512
. Any of these hashing functions can be applied to an arbitrary string using the digest
function. Here are example of the md5
and sha1
algorithms:
See the for more details.