@alsadi/hmac_sha256_fallback

0.2.4 • Public • Published

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/hmac_sha256_fallback@0.2.4/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

Package Sidebar

Install

npm i @alsadi/hmac_sha256_fallback

Weekly Downloads

4

Version

0.2.4

License

Apache-2.0

Unpacked Size

123 kB

Total Files

19

Last publish

Collaborators

  • alsadi