Giter Club home page Giter Club logo

a-deeper-look-at-machine-learning-based-cryptanalysis-v5's Introduction

A-Deeper-Look-at-Machine-Learning-Based-Cryptanalysis

Code project

Requirements

This project was coded in python3.6 Requires libraries can be found in requirements.txt. Version of the libraries will be release soon

Reproductibility

To reproduce the results, you can directly run python3 run_reproduction_all.py

Section 5

To reproduce the results Table 10 and 11 of the paper, you need to run the following commands

python3 main_reproduction_speck_5round.py
python3 main_reproduction_speck_6round.py

To reproduce the results of Section 5.5, you need to run the following command

python3 main_reproduction_simon_8round.py

Section 6

To reproduce the results of Section 6, you need to run the following command

python3 main_reproduction_speck_averaging_batches.py

Demo

Colab demo:

Open In Colab

Summary of the analysis of the pipeline

Bt running the main.py program, you can find results in the result folder that summary the run.

Files logs_lgbm.txt and res_0.npy give the results of the run.

Importance of the Masks / Features

You will find a file quality_masks.csv which compare the quality of the masks found according different criterions. There is also a study on the independance of the masks between one another in COMPARASION INTRA FEATURES XI 2.csv and with the label inINDEPENACE FEATURES LABELS.csv.

Example of feature importance for 5 round speck

This figure orders the features according their importance for the classification.

image

Example of decision tree for LGBM for 5 round speck

This figure shows the decision tree for the classification.

image

Example of how important is each bit for the decision of the neural distinguisher for 5 round speck

These figures show how important is each bit for the decision of the neural distinguisher for different methods.

image

Other

We also provides the possibility to change the final classifier and the inputs.

a-deeper-look-at-machine-learning-based-cryptanalysis-v5's People

Contributors

anonymoussubmissioneurocrypt2021 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.