Git Product home page Git Product logo

enyafhe's Introduction

EnyaFHE

EnyaFHE provides an API and SDK for using Fully Homomorphic Encryption (FHE) in your app. With FHE, you can privately compute on sensitive data. This means that, depending on how you set things up, only the data source (e.g. the edge user) can see the results of the computation. Use cases include secure surveys, distributed finance, and financial products.

Background and Resources

PALISADE and BVFRNS

Support

For more information and support, please visit www.enya.ai or contact [email protected] .

Demo

Simple FHE demo

This computes the inner product of a vector ([170, 10, 20, 30, 0, 0, 0, 0]) with another vector (as configured in sample_algo). The sample_algo has been preconfigured to be [5,1000,500,100000,100000,50000,50000].

$ node ./__test__/simple_fhe_demo.js

This should return return { status_code: 200, secure_result: 3020850 }, since (1705)+(101000)+(20500)+(30100000) = 3020850.

Testing

Comprehensive Test - test.js

test.js is a comprehensive test that looks at basic encryption (Test 1), basic decryption (Test 2), the full API (Test 3), and the full API as accessed via a wrapper function (Test 4).

$ node ./__test__/__test__.js

This will perform the four tests and give timing data.

Test float - __test__float.js

__test__float.js encrypts and decrypts the number 17.5.

$ node ./__test__/__test__float.js

This will perform the four tests and give timing data.

enyafhe's People

Contributors

boyuan-chen avatar

Watchers

James Cloos avatar Jan Liphardt avatar

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.