PeculiarVentures / webcrypto-liner

webcrypto-liner is a polyfill that let's down-level User Agents (like IE/Edge) use libraries that depend on WebCrypto. (Keywords: Javascript, WebCrypto, Shim, Polyfill)
MIT License
148 stars 26 forks source link

if project only use ecdh, how got a smaller webcrypto-liner.js #72

Closed cqupt-yifanwu closed 4 years ago

cqupt-yifanwu commented 4 years ago

our project use ecdh, may i use smaller webcrypto-liner

microshine commented 4 years ago

webcrypto-liner.shim.min.js is 206 Kb. It is the simpliest way and the smallest file

<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/7.7.0/polyfill.min.js"></script>
<script src="https://cdn.rawgit.com/indutny/elliptic/master/dist/elliptic.min.js"></script>
<script src="https://unpkg.com/webcrypto-liner@1.1.2/build/webcrypto-liner.shim.min.js"></script>