Skip to content

muayyad-alsadi/hmac_sha256_fallback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Fallback HMAC SHA256 for browser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published