# crypto.pwhash.bcrypt: make silently_truncate_password a member of Params \(\#22792\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/8d824dfdd06c6b0f307c6ea41dfdf316acf4a662)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 8d824dfdd06c6b0f307c6ea41dfdf316acf4a662

Requested commit: 8d824dfdd06c6b0f307c6ea41dfdf316acf4a662

Commit: 8d824dfdd06c6b0f307c6ea41dfdf316acf4a662

Tree: 7c44262644f7d81ba3ace09351d88cee3b03b82a

Author: Frank Denis

Committer: GitHub

## Message

```
crypto.pwhash.bcrypt: make silently_truncate_password a member of Params (#22792)

* bcrypt: make silently_truncate_password a member of Params

This removes the need for having both `bcrypt()` and
`bcryptWithTruncation()` in the public API.

And whether truncation happens or not becomes even more explicit.

* Update crypto benchmark
```

## Parents

- [bd237bced4c45228dadba07154660e91746d165b](https://git.cafe/gitcafe/zig/commit/bd237bced4c45228dadba07154660e91746d165b?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/8d824dfdd06c6b0f307c6ea41dfdf316acf4a662?format=markdown)
