Git Product home page Git Product logo

oblivious-transfer-and-zero-knowledge-proof's Introduction

Oblivious-Transfer-and-Zero-Knowledge-Proof

IPython notebooks for the code of the following cryptographic protocols :

  1. Rabin Oblivious Transfer
  2. 1-out-of-2 Oblivious Transfer
  3. Feige Fiat Shamir ZKP

All the code has been written in SAGE MATH library in python. Install sage math first to run the codes on your machine.

Written as a part of course project for Network Security, Fall 2018, IIT BHU, Varanasi, India delivered by Prof K.K.Shukla.

Note

In the code of Rabin Oblivious Transfer (filename - Oblivious Transfer), I have used a hardcoded seed which should never be used in cryptography. The purpose of using such a hardcoded PRNG seed was to ensure that I could give my professor an illustration of all the cases where x=y, x=-y or other cases. This led me into using a hardcoded seed. If you want to use it, then replace it with a better seed like taking it from the timestamp like I did in the other two codes.

All the codes have been written as a sequential code and don't employ sockets to transfer data across parties.

oblivious-transfer-and-zero-knowledge-proof's People

Contributors

mayank0403 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

hossamsamy007

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.