Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
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
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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.