Skip to content

Commit

Permalink
Addings docs about salts and cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed May 5, 2020
1 parent c95daea commit 3df046a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions docs/FallbackPasswordHasher.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ $collection = new PasswordhasherCollection([

$hasher = new FallbackPasswordHasher($collection);
```

## Attention to salts

When you use the salting functionality with this hasher, it will pass the salted password to *every* hasher in the collection!

So either use the same salt for all and use the salting with this hasher or configure the salt individually for each hasher in the collection.
1 change: 0 additions & 1 deletion src/FallbackPasswordHasher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* @license http://www.opensource.org/licenses/mit-license.php MIT License
*/


declare(strict_types=1);

namespace Phauthentic\PasswordHasher;
Expand Down

0 comments on commit 3df046a

Please sign in to comment.