Skip to content

VirgilSecurity/demo-e3kit-web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Virgil E3Kit Web Demo

Introduction

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

  1. Make sure the local backend is set up and running.
  2. Open index.html in a modern browser.

Explore demo

This demo will automatically go through the following steps:

  1. Initialize EThree. The demo obtains JWT tokens from backend and initializes E3Kit.
  2. 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.
  3. Find users. Alice looks for Bob's Card, and Bob looks for Alice's Card to get each other's public keys.
  4. Encrypt and sign message. Alice encrypts a message to Bob using Bob's public key, signs it using her private key, and sends it.
  5. Decrypt and verify. Bob receives the message, decrypts it using Bob's private key, and verifies it using Alice's public key.
  6. Testing private key backup methods. The app demonstrates backup creation, changing backup password, restoring private keys from the backup and backup reset.
  7. Testing additional methods. The demo also goes through private key rotation, private key cleanup and unregistering users.

Demo screenshot 1

Demo screenshot 2

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •