Giter Site home page Giter Site logo

amirunpri2018 / neural-cryptography Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dylanmodesitt/neural-cryptography

0.0 2.0 0.0 254.71 MB

A repository with work on neural cryptography

License: MIT License

Python 92.85% Shell 0.23% CSS 0.81% HTML 6.10%

neural-cryptography's Introduction

Neural Cryptography

These are tools experimenting with neural cryptography. More specifically, tools developed to allow neural networks to communicate in the presence of adversarial networks. Experiments with currently only symmetric key encryption have been done. However, we indent to broaden our model designs as development continues.

This is being done as the final project to an MIT course, 6.857, and is still in active development.

The models are written in Keras and are trained using the tensorflow backend. Once completed, this ReadMe will include a comprehensive summary of our findings and results.

Cryptographic and Architectural Descriptions

Symmetric Key Encryption

These are network architecture's for performing symmetric key encryption. In this symmetric key encryption schheme, two parties known as Alice and Bob would like to communicate securely in the presence of an eavesdropping adversary, Eve.

We have developed several approaches to teaching neural networks to perform this kind of encryption. These are described as follows.

Small Convolutional Networks

This architecture is largely based on the Google Brain Paper here. Alice, Bob, and Eve are neural networks trained adversarially in the form of alternating training Alice/Bob and Eve. Alice is given a plaintext, P, and a key, K, and is asked to produce an encrypted ciphertext, C. Bob is asked to decrypt that C into P given K. Eve is asked to do the same without K. Specific training schedule, loss functions, can be found in the code.

Bitwise Function Networks

In an attempt to learn more standardized symmetric key encryption operations, such as the One-Time Pad, we have created a network architecture that is localized to be element-wise or "Bitwise" among the inputs.

Bitwise Function Network

Purely Adversarial Neural Cryptography

In purely adversarial neural cryptography, we explore the capacity for Neural Networks to be capable in detecting broken encryption. We format this goal as one of several games, in the hope to allign with general cryptographic techniques and approaches.

Setup

After cloning this repository, setup a python virtual environment. This can be done with

source setup

this can also be used after initially setting up the environment to activate the virtual environment.

Project Structure

The project is structured in the following fashion.

.
+-- _setup
+-- _bin
|   +-- this includes binary files like weights,
|      cached data files, or visualizations
+-- _data
|   +-- data.py
|        +-- data generation programs 
+-- _genneral
|        +-- general software like custom keras layers,
|            utility functions, etc.
+-- _models
|   +-- code that builds, trains, and visualizes keras
+-- assets
|   +-- other assets (like pictures)

neural-cryptography's People

Contributors

dylanmodesitt avatar tim-henry avatar jcoden24 avatar

Watchers

 avatar paper2code - bot 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.