Giter Site home page Giter Site logo

ibejs's Introduction

ibejs - Identity Based Encryption Javascript library.

Dependencies

install node.js in order to run demo.

Generating of Secret Key

secretKeyOfUserB=ibe_extract("[email protected]")
#run with node.js. Output is secret key of [email protected]
$node ibe_extract.js [email protected]
dmFyIGRfaWQgPSBhcnJheV90b19HMShbJzM2NDc3OTgzNjMyNDMxNDcwMDA1NDE3MTUyNjcwMTUwNDA4NTA5NDkyNzkwNDk1Mzk5OTk2OTM1NTE0NzgyMTM2NjUnLCc2NzIwMzY3NzAzMTk1NjkyMzkwNzM4NjM0MDU3MTA1OTAzODE3MzUyODc5OTgyMjgwMTcxNjQ2Mjk0NDk3NzY0MCcsXSk7

The ibe process:

UserA want to send a email to UserB and encrypt the email using IBE.

  1. UserA use ibe_encrypt() which is in ibe.js enc_msg=ibe_encrypt("the message user a wanna send to UserB","[email protected]")
  2. the enc_msg are sended to UserB
  3. UserB receive the enc_msg
  4. UserB request his secret key from server. First UserB should pass authentication. Then your server use ibe_encrypt.py to extract the secret key: secretKeyOfUserB. and send to UserB
  5. UserB use ibe_decrypt which is in ibe.js msg = ibe_decrypt(enc_msg,secretKeyOfUserB)
  6. UserB are able to read msg from UserA now

About the random oracles

Boneh-Franklin IBE scheme supposes two hash function is random oracles here SHA512 is used, SHA512's first 160 bits is choosen.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.