English

Русский

Crypto

Webcrypto socket module implements WebCrypto interface and uses Fortify application for crypto implementation.

Browser

To support cross-browser work you can apply some scripts to your HTML page. webcrypto-sockets.js exports global namespace WebcryptoSocket.

<!-- Babel Polyfill -->
<script defer src="https://fortifyapp.com/external/babel-polyfill/6.26.0/polyfill.min.js"></script>

<!-- Fetch Polyfill -->
<script defer nomodule src="https://fortifyapp.com/external/[email protected]/fetch.umd.js"></script>

<!-- Crypto Polyfill -->
<script defer src="https://fortifyapp.com/external/asmCrypto/2.3.2/asmcrypto.all.es5.min.js"></script>
<script defer src="https://fortifyapp.com/external/elliptic/elliptic.min.js"></script>
<script defer type="module" src="https://fortifyapp.com/external/webcrypto-liner/1.2.3/webcrypto-liner.shim.min.mjs"></script>
<script defer nomodule src="https://fortifyapp.com/external/webcrypto-liner/1.2.3/webcrypto-liner.shim.min.js"></script>

<!-- WebCrypto Socket -->
<script defer src="https://fortifyapp.com/external/protobuf/6.8.0/protobuf.min.js"></script>
<script defer type="module" src="https://fortifyapp.com/external/webcrypto-local/client/1.1.7/webcrypto-socket.min.mjs"></script>
<script defer nomodule src="https://fortifyapp.com/external/webcrypto-local/client/1.1.7/webcrypto-socket.min.js"></script>
Copied

Be sure to use your own compose of third-party dependencies in production applications.

Npm

# Crypto Polyfill
npm install asmcrypto.js elliptic webcrypto-liner

# WebCrypto Socket
npm install protobufjs @webcrypto-local/client
Copied