@fgv/ts-web-extras
Version:
Browser-compatible utilities and FileTree implementations
67 lines (31 loc) • 1.03 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@fgv/ts-web-extras](./ts-web-extras.md) > [BrowserHashProvider](./ts-web-extras.browserhashprovider.md)
## BrowserHashProvider class
Browser-compatible hash provider using the Web Crypto API. Supports common hash algorithms available in browsers.
**Signature:**
```typescript
export declare class BrowserHashProvider
```
## Methods
<table><thead><tr><th>
Method
</th><th>
Modifiers
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
[hashParts(parts, algorithm, separator)](./ts-web-extras.browserhashprovider.hashparts.md)
</td><td>
`static`
</td><td>
Hash multiple strings concatenated with a separator.
</td></tr>
<tr><td>
[hashString(data, algorithm)](./ts-web-extras.browserhashprovider.hashstring.md)
</td><td>
`static`
</td><td>
Hash a string using the specified algorithm.
</td></tr>
</tbody></table>