Coder Social home page Coder Social logo

andreamigliore / smpc-ed Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 110 KB

Secure implementations of Edit Distance algorithms using EMP-toolkit garbled circuits

License: GNU General Public License v3.0

C++ 100.00%
edit-distance levenshtein-distance garbled-circuits multi-party-computation secure-multi-party-computation two-party-computation

smpc-ed's Introduction

SMPC-ED

Secure Multi-Party Computation - Edit Distance

This project implements several algorithms for the secure computation of Edit Distance using the semi-honest two-party computation based on garbled circuits model provided by the EMP-toolkit.

There are six different algorithms implemented in plain C++.

The first four of these algorithms are also implemented with the EMP-toolkit. For the others a direct implementation is not convenient due to unefficient management of secret array indexes in secure computation.

Getting started

C++ (Standard directory)

After compiling, just run:

./EditDistance <input_length> <threshold>

EMP (Secure directory)

  1. Install the EMP-toolkit
  2. Run ./bin/EditDistance 1 12345 <input_length> <threshold> & ./bin/EditDistance 2 12345 <input_length> <threshold>

Parameters

The <input_length> (must be the same for the programs in Secure directory) and the <threshold> are optional.

Possible <input_length> are: 5, 7, 50, 100, 200, 250, 500, 1000, 2000, 3000, 3500, 4000, 5000, 10000, 50000. These are randomly generated DNA (A, C, G, T) strings.

It is also possible to use IDash_1, IDash_2, and IDash_3, which are real DNA sequences of approximately 3400 characters from a genome database released by iDASH Security and Privacy Workshop 2016

Further details about EMP options are here

License

Distributed under the GPL 3.0 License. See LICENSE for more information.

smpc-ed's People

Contributors

andreamigliore avatar

Watchers

 avatar

Forkers

frascoh

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.