From 39c720d8e32484a5a6f36e545a599f96fd717c34 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Fri, 4 Mar 2016 15:31:43 -0600 Subject: [PATCH] Add some explanation of how the salt is generated --- postgres/salt-and-hash-a-password-with-pgcrypto.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgres/salt-and-hash-a-password-with-pgcrypto.md b/postgres/salt-and-hash-a-password-with-pgcrypto.md index 0757214..fa05071 100644 --- a/postgres/salt-and-hash-a-password-with-pgcrypto.md +++ b/postgres/salt-and-hash-a-password-with-pgcrypto.md @@ -39,6 +39,9 @@ select crypt('pa$$w0rd', gen_salt('bf')); f ``` +The salt value is generated using the blowfish encryption algorithm (hence, +the `'bf'`). There is support for other algorithms such as `md5`. + See the [`pgcrypt` documentation](http://www.postgresql.org/docs/current/static/pgcrypto.html) for more details.