Awesome
Virgil E3Kit Web Demo
Introduction
<a href="https://developer.virgilsecurity.com/docs"><img width="230px" src="https://cdn.virgilsecurity.com/assets/images/github/logos/virgil-logo-red.png" align="left" hspace="10" vspace="6"></a> This is a sample Android project for Virgil Security's E3Kit SDK which simplifies work with Virgil services and presents an easy-to-use API for adding a security layer to any application. E3Kit interacts with Virgil Cards Service, Keyknox Service and Pythia Service. Virgil E3Kit allows you to setup user encryption with multidevice support in just a few simple steps.
The demo is using E3Kit v2.3.3.
Note: It is a sample project and cannot be used in production.
Prerequisites
- A modern Web Browser
- Virgil Developer Account and a Virgil Application
- Local backend set up to generate Virgil JWT (you can find our Node.js sample here)
Set up and run demo
- Make sure the local backend is set up and running.
- Open
index.html
in a modern browser.
Explore demo
This demo will automatically go through the following steps:
- Initialize EThree. The demo obtains JWT tokens from backend and initializes E3Kit.
- Register users. The app tries to register 2 users - Alice and Bob. If they were registered before, the app revokes their Virgil Cards, generates new key pairs for them and registers new Virgil Cards with the same identities but different Card IDs.
- Find users. Alice looks for Bob's Card, and Bob looks for Alice's Card to get each other's public keys.
- Encrypt and sign message. Alice encrypts a message to Bob using Bob's public key, signs it using her private key, and sends it.
- Decrypt and verify. Bob receives the message, decrypts it using Bob's private key, and verifies it using Alice's public key.
- Testing private key backup methods. The app demonstrates backup creation, changing backup password, restoring private keys from the backup and backup reset.
- Testing additional methods. The demo also goes through private key rotation, private key cleanup and unregistering users.
License
This library is released under the 3-clause BSD License.
Support
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.