mirror of
https://github.com/jbranchaud/til
synced 2026-01-03 07:08:01 +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
|
||||
```
|
||||
|
||||
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.
|
||||
|
||||
Reference in New Issue
Block a user