GithubHelp home page GithubHelp logo

apostolescus / naevia Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.74 MB

Naevia is a platform demonstrating the usage of the Hill Climbing optimization technique (only for local optima solutions) and N-grams frequency for cryptanalysis.

Python 24.97% HTML 1.39% JavaScript 21.63% CSS 8.55% TeX 43.46%

naevia's Introduction

Naevia

Description

Naevia is a platform demonstrating the usage of the Hill Climbing optimization technique (only for local optima solutions) and N-grams frequency for cryptanalysis. Its functionalities, which are available through a web interface, are:

  • encryption with classic ciphers:
    • Caesar;
    • Vigenere;
    • substitution;
  • decryption via:
    • brute-force;
    • Hill Climbing.

Observations

To improve the convergence to the solution (the real plaintext), the following preliminary steps can be done:

  • running the decryption multiple time (it starts at each run from a different random value, maybe God will have mercy on you once);
  • increase ciphertext size (if possible); and
  • shorten key length (if possible).

Limitations of the current version of the platform are some fixed parameters:

  • the N-grams length (4);
  • the number of keys generated into the brute-force process (3500); and
  • the length of the Vigenere key that is brute-forced (12).

Demos

  1. Encryption with the substitution cipher. Decryption via brute-foce
  2. Encryption with the Caesar cipher. Decryption via Hill Climbing
  3. Encryption with the Vigenere cipher. Decryption via Hill Climbing
  4. Encryption with the substitution cipher. Decryption via Hill Climbing

Setup

  1. install Python3 and Node.js
  2. set up and run the server
cd backend
pip3 install -r requirements.txt
python3 server.py
  1. set up and run the user interface
cd user-interface
npm install
npm start

Resources

User Interface

Backend

Further Improvements

  • solving the above mentioned limitations
  • more parameter tuning

naevia's People

Contributors

iosifache avatar apostolescus avatar i014n avatar

Watchers

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