
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
node-seal
Advanced tools
node-seal is an ESM-first, WebAssembly-powered wrapper around the C++ Microsoft SEAL homomorphic encryption library, for TypeScript and JavaScript.
v7.0.0 is a breaking release. The custom JS wrapper layer was removed — the package now exposes the Emscripten-generated bindings directly. That makes the package ~96% smaller and faster, but it also means some imports and helper methods changed.
Currently aligned with Microsoft SEAL 4.1.2.
Install from npm:
npm install node-seal
# or
yarn add node-seal
# or
pnpm add node-seal
Because v7 is ESM-first and ships the .wasm separately, most modern bundlers
will just work.
In v7, the default import gives you a factory; call it to get the SEAL runtime:
import SEAL from 'node-seal'
const seal = await SEAL()
Variants:
// recommended and default: throws on transparent ciphertexts
import SEAL from 'node-seal/throws'
const seal = await SEAL()
// allow transparent ciphertexts (only if you know you need this)
import SEAL from 'node-seal/allows'
const seal = await SEAL()
See here.
React Native still can't run WASM like a browser. Use a small HTML/JS app inside
a WebView, load node-seal there, and talk over postMessage. Because v7 ships
a plain .wasm, bundling that web app is easier.
Go to the sandbox
This sandbox was built for users to experiment and learn how to use Microsoft SEAL featuring node-seal.
Checkout the basics
View the latest docs here
Check out the Sandbox to run HE functions and even generate working code!
If you'd rather read an example, take a look here.
For more exhaustive examples, view the tests.
For changes in this library, take a look here.
For changes in Microsoft SEAL, take a look at their list of changes.
npm run seal:build:bench
npm run benchmark
See also: BENCHMARK.md.
.delete() or .deleteLater() on created objects to
free C++ resources.See CONTRIBUTING.md.
node-seal is MIT licensed.
FAQs
Homomorphic Encryption for TypeScript or JavaScript using Microsoft SEAL
The npm package node-seal receives a total of 1,982 weekly downloads. As such, node-seal popularity was classified as popular.
We found that node-seal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.