1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-02 22:58:01 +00:00

Add some explanation of how the salt is generated

This commit is contained in:
jbranchaud
2016-03-04 15:31:43 -06:00
parent 8f5649e479
commit 39c720d8e3

View File

@@ -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.