mirror of
https://github.com/postgres/postgres.git
synced 2026-01-05 23:38:41 +03:00
Add modern SHA-2 based password hashes to pgcrypto.
This adapts the publicly available reference implementation on https://www.akkadia.org/drepper/SHA-crypt.txt and adds the new hash algorithms sha256crypt and sha512crypt to crypt() and gen_salt() respectively. Author: Bernd Helmle <mailings@oopsware.de> Reviewed-by: Japin Li <japinli@hotmail.com> Discussion: https://postgr.es/m/c763235a2757e2f5f9e3e27268b9028349cef659.camel@oopsware.de
This commit is contained in:
@@ -9,6 +9,7 @@ pgcrypto_sources = files(
|
||||
'crypt-des.c',
|
||||
'crypt-gensalt.c',
|
||||
'crypt-md5.c',
|
||||
'crypt-sha.c',
|
||||
'mbuf.c',
|
||||
'pgcrypto.c',
|
||||
'pgp-armor.c',
|
||||
@@ -52,6 +53,7 @@ pgcrypto_regress = [
|
||||
'pgp-pubkey-decrypt',
|
||||
'pgp-pubkey-encrypt',
|
||||
'pgp-info',
|
||||
'crypt-shacrypt'
|
||||
]
|
||||
|
||||
pgcrypto_openssl_sources = files(
|
||||
|
||||
Reference in New Issue
Block a user