wasm-yescryptr32-hash
Version:
WASM JS binding for yescryptR32 hashing algorithm
27 lines (19 loc) • 1.1 kB
Markdown
# wasm-yescryptr32-hash
[](https://www.npmjs.com/package/wasm-yescryptr32-hash)
[](https://github.com/unifyroom/wasm-yescryptr32-hash/actions/workflows/test_and_release.yml)
[](https://github.com/unifyroom/wasm-yescryptr32-hash/releases/latest)
[](https://github.com/RichardLitt/standard-readme)
WASM binding for YescryptR32 hashing algorithm written in C
## Installation and usage
_[Buffer](https://github.com/feross/buffer) polyfill is required for usage in browsers_
- `$ npm install wasm-yescryptr32-hash`
```javascript
const Ysrc = require('wasm-yescryptr32-hash');
Ysrc().then(ysrc => {
const hash = ysrc.digest('hello world')
});
```
## Build and test
_Docker v20+ is required_
- `$ npm run build`
- `$ npm run test`