GithubHelp home page GithubHelp logo

lito-frito / xor-encryption Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 26 KB

A demonstration on how XOR encryption works using Python where the user can encrypt and decrypt a 32 character message in real-time

Python 98.97% Dockerfile 1.03%
xor-encryption repl cli python encryption encryption-algorithms

xor-encryption's Introduction

XOR Encryption Demo

XOR

Run on Repl.it

This is a simple CLI app I made that showcases how XOR is implemented in encryption. I made this because we learned about how encryption works in my grad class and I wanted a tool to help clients at one of my past jobs visualize how one of the basic techniques in encryption works.

If you've ever wondered how encryption works, XOR is used in many different types of encryption algorithms at some point.

What This Includes

  • main.py: The example script to showcase XOR encryption; run this to see the XOR encryption demo.
  • encrypt.py & decrypt.py: Supplementary files that feed into main.py (no need to touch these).

Getting Started

Requirements

  • Python3
  • a CLI (if you're on Windows, this is the Command Prompt; for Linux and Mac, this is your terminal)
  • Docker (only if you choose to run the container version of this app)

Quick Start

You can go to repl.it where I'm hosting the app in a personal repl. When you click the link, just hit the button up top that says Run with the forward arrow and the app will start up.

Starting from Scratch

Download the file main.py and then open the CLI from the folder that has the main.py file. Run the file by typing python3 main.py.

If this doesn't work, feel free to reach out!

Running Via Docker

This script is available as a container (if you needed it as one for whatever reason) over at Docker Hub. You can download the image via docker pull crc8109/xor_program:1.0.

Run the container via docker run -i xor_program. Don't forget the -i flag. You need to be able to pass along STDIN to the container, otherwise the application won't run properly.

xor-encryption's People

Contributors

lito-frito avatar

Stargazers

 avatar

Watchers

 avatar  avatar

xor-encryption's Issues

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.