This repository contains the full code samples that I talked about in my Can You Keep a Secret... in JavaScript? presentation at JS Poland 2023.
There are three code samples:
- index.js: Node.js implementation using the built-in
crypto
module - index.html: browser implementation using the WebCrypto API
- index_webcrypto.js: the browser code executing in Node.js using the provided WebCrypto API implementation