mirror of
https://github.com/jbranchaud/til
synced 2026-01-07 00:58:02 +00:00
Add some explanation of how the salt is generated
This commit is contained in:
@@ -39,6 +39,9 @@ select crypt('pa$$w0rd', gen_salt('bf'));
|
|||||||
f
|
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
|
See the
|
||||||
[`pgcrypt` documentation](http://www.postgresql.org/docs/current/static/pgcrypto.html) for
|
[`pgcrypt` documentation](http://www.postgresql.org/docs/current/static/pgcrypto.html) for
|
||||||
more details.
|
more details.
|
||||||
|
|||||||
Reference in New Issue
Block a user