Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
zerokit-node-client
Advanced tools
A Node.js client sdk that you can use to do server side processing on user encrypted data
This is the Node.js of ZeroKit, that lets you encrypt and decrypt data for server side processing.
This small SDK loads and wraps the components of the ZeroKit to enable it to work in the Node.js environment, using the built-in native crypto functions instead of WebCrypto, and using an in-memory storage instead of session, local and cookie storages.
The ZeroKit Node.js client SDK is currently under development and is accessible as a preview. We continuously improve it and fix bugs. Feedback is always welcome.
You should be aware, that using this SDK to process user data on the server will violate the zero knowledge property of your backend, exposing data to your server and potentially to your administrators and anyone having access to the server.
You should take special care about how you store the credentials used to log into ZeroKit as they could later be used to decrypt any data the server had access to.
The sdk exports a single function that takes your service URL and the SDK version as arguments. This method loads the sdk asynchronously, that you can use in the same manner as the web SDK.
You can see a detailed documentation at https://tresorit.com/zerokit/docs
Example (current Node.js):
const zkit_sdkProm = require('zerokit-node-client')("https://tenantid.api.tresorit.io", 4)
async function testZeroKitDecrypt(uploadedUserData) {
const zkit_sdk = await zkit_sdkProm;
await zkit_sdk.login('12121212121212.testuser@testtenant.tresorit.io', "password");
return await zkit_sdk.decrypt(uploadedUserData);
}
Go ahead to the management portal and find out more in the documentation and check the full set of features provided by ZeroKit!
First, to use the SDK you need a tenant server (basically a subscription to ZeroKit). You can get one for free here, where you can also find a detailed documentation and sample apps for many platforms. You can also get the relevant example from GitHub.
FAQs
A Node.js client sdk that you can use to do server side processing on user encrypted data
We found that zerokit-node-client demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.