Nacl-web-plug-in 【Direct Link】

The "NaCl" acronym is coincidentally shared with the Networking and Cryptography library, but the security model of the NaCl-Web-Plug-In is distinct. Security experts have historically debated the risk profile of native-code-in-the-browser.

Financial institutions often use proprietary C++ libraries for risk calculations. The NaCl-Web-Plug-In allows front-office traders to run these exact same libraries inside a secure web portal without rewriting code in JavaScript. nacl-web-plug-in

Many users confuse this with a generic NPAPI plugin. In reality, the nacl-web-plug-in was the runtime loader for .nmf (Native Client Manifest) and .pexe (Portable Executable) files. The "NaCl" acronym is coincidentally shared with the

A typical HTML snippet that triggered the plugin looked like this: The manifest ( my_module

<!DOCTYPE html>
<html>
<head>
  <title>NaCl Demo</title>
</head>
<body>
  <!-- The nacl-web-plug-in automatically handles this embed -->
  <embed type="application/x-nacl"
         src="my_module.nmf"
         width="800"
         height="600"
         id="nacl_plugin" />
  <script>
    const plugin = document.getElementById('nacl_plugin');
    // Once loaded, call exported functions
    plugin.postMessage('start_computation');
  </script>
</body>
</html>

The manifest (my_module.nmf) looked like:


  "program": 
    "x86-64": "url": "my_module_x86_64.nexe",
    "portable": "url": "my_module.pexe"