
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
zerokit-web-sdk
Advanced tools
This is the Web SDK of ZeroKit, that lets you enable secure authentication and end-to-end encryption in your application. It deals with password inputs, encryption and sharing, separating all the code that handles encryption keys and authentication, protecting you from accindental leaks and most XSS attacks.
The ZeroKit SDK for Web is currently under development and is accessible as a preview. We continuously improve it and fix bugs. Feedback is always welcome.
The project was written in typescript and is available compiled to javascript on the tenant server. Loading from there is the recommended way of use.
The SDK compiles into a bundle, which inserts the zkit_sdk object into the global namespace. Calling the setup method of this object initializes the sdk. This should be done during the pageload optionally along with a whoAmI call that will initialize the lazy loading. After the setup you can use the exposed methods to register and log users in or encrypt and decrypt your sensitive data.
You can see for yourself:
zkit_sdk.setup('https://host-hostId.tresorit.io', '/tenant-tenantId');
// After logging in...
zkit_sdk.createTresor().then(tresorId => {
return zkit_sdk.encrypt('tresorId','Some sensitive data').then((encryptedText) => {
// Now this text is only decryptable by people who you shared the above "tresor" with
// You can transport it however you like, it wont leak..
console.log(encryptedText);
return zkit_sdk.decrypt(encryptedText);
}).then((plainText) => {
// And we just got the original back...
console.log(plainText);
return zkit_sdk.shareTresor(tresorId, 'userIdB');
}).then((oprationId) => {
// If this operation is approved by the application server,
// every text ever encrypted by this tresor is decryptable by userB...
// No reencyption, no refreshing, everything handled by ZeroKit.
return applicationServerCall(operationId);
});
});
// That's how simple it is.
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
The Web SDK of ZeroKit
The npm package zerokit-web-sdk receives a total of 0 weekly downloads. As such, zerokit-web-sdk popularity was classified as not popular.
We found that zerokit-web-sdk 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.