
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@virgilsecurity/e3kit-browser
Advanced tools
End-to-end encryption with multiple device support powered by Virgil Security
Virgil E3Kit SDK is also available on other platforms:
E3Kit's underlying crypto library is compiled to WebAssembly. You need to make sure your target browsers support WebAssembly. We also have asm.js fallback for environments that don't support WebAssembly. The downside of it is much slower download and execution time.
npm:
npm install @virgilsecurity/e3kit-browser
yarn:
yarn add @virgilsecurity/e3kit-browser
UMD:
WebAssembly
<script type="text/javascript" src="https://unpkg.com/@virgilsecurity/e3kit-browser@^2.1.0/dist/browser.umd.js"></script>
asm.js (Use this only if your target environments don't support WebAssembly)
<script type="text/javascript" src="https://unpkg.com/@virgilsecurity/e3kit-browser@^2.1.0/dist/browser.asmjs.umd.js"></script>
npm:
WebAssembly
import { EThree } from '@virgilsecurity/e3kit-browser';
// Promise
EThree.initialize(tokenCallback)
.then(eThree => {
// register user, encrypt, decrypt, etc.
});
// async/await
const eThree = await EThree.initialize(tokenCallback);
// register user, encrypt, decrypt, etc.
asm.js (Use this only if your target environments don't support WebAssembly)
import { EThree } from '@virgilsecurity/e3kit-browser/dist/browser.asmjs.es';
// Promise
EThree.initialize(tokenCallback)
.then(eThree => {
// register user, encrypt, decrypt, etc.
});
// async/await
const eThree = await EThree.initialize(tokenCallback);
// register user, encrypt, decrypt, etc.
UMD:
<script type="text/javascript">
const EThree = window.E3kit.EThree;
// Promise
EThree.initialize(tokenCallback)
.then(eThree => {
// register user, encrypt, decrypt, etc.
});
// async/await
const eThree = await EThree.initialize(tokenCallback);
// register user, encrypt, decrypt, etc.
</script>
See the following methods if you need to encrypt & decrypt large files with the best speed/browser performance ratio:
Both methods take an instance of File
class as input instead of binary ArrayBuffer
.
The files are encrypted in small chunks, so it doesn't block the main thread and it returns an encrypted instance of File
. The chunk size by default is 64kb which produces the best speed/browser performance ratio, but it can be changed. Larger chunk size speeds up encryption but can cause browser lags.
The code sample can be found here.
This approach for file encryption is currently only supported in browser environments and mobile apps built with the Ionic framework.
You can find detailed guides on library usage here.
This library is released under the 3-clause BSD License.
Our developer support team is here to help you. Find out more information on our Help Center.
You can find us on Twitter or send us email support@VirgilSecurity.com.
Also, get extra help from our support team on Slack.
FAQs
End-to-end encryption with multiple device support powered by Virgil Security
The npm package @virgilsecurity/e3kit-browser receives a total of 229 weekly downloads. As such, @virgilsecurity/e3kit-browser popularity was classified as not popular.
We found that @virgilsecurity/e3kit-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.