---
title: "BcryptPasswordHashingStrategy"
generated: true
---
<GenerationInfo sourceFile="packages/core/src/config/auth/bcrypt-password-hashing-strategy.ts" sourceLine="12" packageName="@vendure/core" since="1.3.0" />

A hashing strategy which uses bcrypt (https://en.wikipedia.org/wiki/Bcrypt) to hash plaintext password strings.

```ts title="Signature"
class BcryptPasswordHashingStrategy implements PasswordHashingStrategy {
    hash(plaintext: string) => Promise<string>;
    check(plaintext: string, hash: string) => Promise<boolean>;
}
```
* Implements: <DocsLink href="/reference/typescript-api/auth/password-hashing-strategy#passwordhashingstrategy">`PasswordHashingStrategy`</DocsLink>



<div className="members-wrapper">

### hash

<MemberInfo kind="method" type={`(plaintext: string) => Promise<string>`}   />


### check

<MemberInfo kind="method" type={`(plaintext: string, hash: string) => Promise<boolean>`}   />




</div>
