> For the complete documentation index, see [llms.txt](https://cross-packages.gitbook.io/cross-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cross-packages.gitbook.io/cross-api/providers/hash.md).

# Hash

## Available:

* Bcrypt
* Fake

## Methods:

**GenerateHash:** Generates a hash of your keyword.

```typescript
const password = '12345';

const data = await this.hashProvider.generateHash(password);
```

**CompareHash:** Compares the entered keyword to a previously generated hash.

```typescript
const password = '12345';

const data = await this.hashProvider.compareHash(
  password,
  '$2b$10$NuU6SnBESq6DeNrLZ6/NEuj6jFgESyQkKluK6hJjPF8DFJNerO/Y6',
);
```

***
