<p dir="auto">  How about building a crypto module entirely implemented in WebAssembly?</p>
<p dir="auto">Benefits would include: good performance, optimal portability</p>
<p dir="auto">Luckily, we could also get timing safety for WebAssembly by patching V8 to <a href="https://github.com/denoland/deno/issues/3097" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3097/hovercard">implement CT-Wasm</a>.</p>
<p dir="auto">Some applications like handling password will require hashing and encryption. These operations could be implemented in js/ts, but It really needs to be handled from a trusted environment to be secure. It looks like there have been some attempts to get this one rolling before recently with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="395880648" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1461" data-hovercard-type="pull_request" data-hovercard-url="/denoland/deno/pull/1461/hovercard" href="https://github.com/denoland/deno/pull/1461">#1461</a>.</p>