@alsadi/hmac_sha256_fallback
v0.2.4
Published
Fallback HMAC SHA256 for browser
Downloads
8
Maintainers
Readme
HMAC SHA256 Fallback for legacy browsers
We compiled from C to WASM then from WASM to JS Using Binaryen
This package has no dependency as all you need is shipped
Installation
npm install --save-dev '@alsadi/hmac_sha256_fallback'
then you can use files in your node_modules/
node_modules/@alsadi/hmac_sha256_fallback/public/dist/hmac_sha256.min.js
We got you covered, it's compressed and minified
You can use it in your HTML from unpkg
like this
<script src="https://www.unpkg.com/@alsadi/[email protected]/public/dist/hmac_sha256.min.js"></script>
<script>
console.log(crypto_hmac_sha256.hmac_sha256("key", "msg"));
</script>
Demo
Here is the online demo
enter public directory and run a static server to test
cd node_modules/@alsadi/hmac_sha256_fallback/public/
python3 -m http.server 3000