Giter Club home page Giter Club logo

thecomputercat / enigma Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davidfm43/enigma

0.0 0.0 0.0 36.57 MB

Enigma is a web-based cryptography tool that allows you to encrypt, decrypt, and attack texts and images using a variety of classic and modern ciphers, including block ciphers.

Home Page: enigma-kappa.vercel.app

License: Apache License 2.0

JavaScript 81.23% Python 1.03% TypeScript 1.44% CSS 5.48% Makefile 0.04% HTML 2.39% SCSS 8.37% Procfile 0.01% Dockerfile 0.01%

enigma's Introduction

Logo

Enigma

Enigma is a web-based cryptography tool that allows you to encrypt, decrypt, and attack texts and images using a variety of classic and modern ciphers, including block ciphers

Deployed Project: https://enigma-crypto.herokuapp.com

Note: The project is currently offline due to because heroku free tier no longer exists.

Features

Enigma supports the following cryptsystems:

Classic ciphers

Classic

The following ciphers are implemented for text encryption only:

  • Shift cipher
  • Affine cipher
  • Substitution cipher
  • Hill cipher
  • Permutation cipher
  • Vigenere cipher

Block ciphers

Block

The following cipher are implemented for image encyption:

  • Triples DES
  • AES
  • Simplified DES(text only)

Public ciphers

Block

The following ciphers are implemented for text encryption only:

  • RSA
  • Rabin
  • ElGamal (Discrete Logarithm)
  • ElGamal (Eliptic Curve)

Tech Stack

  • Python
  • Flask
  • Heroku
  • angular

Getting Started

This app is deployed on website, however if you want to deploy it in your local machine you need to:

To begin, install Angular-CLI with npm using the following command:

npm install -g @angular/cli

Next, please follow the next steps to install the requirements:

# We assume you are in the root folder of the repo
cd backend

# It's recommended to do the following command inside a virtual environment
pip install -r requirements.txt

Set the FLASK_APP environment variable:

(Unix/Mac) export FLASK_APP=colossus
(Windows) set FLASK_APP=colossus
(Powershell) $env:FLASK_APP="colossus"
  1. Run the application backend locally:
flask run

Now for the frontend:

# We assume you are in the root folder of the repo
cd frontend

npm install 
ng serve 

Now you can go to http://localhost:4200 and test the app.

Docker

You can easily run the project using the provided Dockerfile.

Run:

# /path/to/enigma
docker build -t enigma .
docker run -it -v /path/to/enigma:/home/user/enigma -p 4200:4200 -p 5000:5000 enigma /bin/bash
user@dockerid:~$ cd enigma/backend python3 -m flask run -h 0.0.0.0
user@dockerid:~$ cd ../frontend && npm install && ng serve --host 0.0.0.0

Now you can go to http://localhost:4200 and test the app.

enigma's People

Contributors

davidfm43 avatar thecomputercat avatar eguar11011 avatar soleilzero avatar niclasdc 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.