Code Monkey home page Code Monkey logo

a.m.m.e's Introduction

Author Release Twitter

A.M.M.E - Encryption

๐Ÿ“Œ Table of contents

Explanation

This encryption uses analytic geometry in two-dimensional space.

Encryption

It (pseudo-)randomly generates 4 vectors for each character. Two straight line equations are created from these vectors, which are then checked for collinearity. If the direction vectors of the straight line equation are multiples of each other, new vectors are generated and checked until this case no longer occurs. Furthermore, an intersection of both straight lines is calculated in order to then calculate the intersection angle. Finally, the intersection angles are assigned to the characters and the previously typed message is replaced with the previously used vectors.

Decryption

When it comes to decryption, the above part is pretty much the same. Only that at the beginning the key and the encrypted message for the calculation "must be prepared". Additional character strings and information were appended to the encryption for "further protection". Finally, the vectors read out from the message are used to calculate the intersection angles and finally form a decrypted message thanks to the key.

Installation

๐Ÿ”ธ Download Repository & Requirements

sudo apt install git
git clone https://github.com/Pulsar7/A.M.M.E.git
pip3 install sympy rich
cd A.M.M.E/

๐Ÿ”ธ Asking for help

python3 amme.py --help

Example

python3 amme.py --encrypt --message "SECRET MESSAGE"
cat msg.txt

Output: (Illustration 1) Example 1

python3 amme.py --decrypt --message "[INSERTED MESSAGE FROM Illustration 1]"

Please insert key> [INSERTED KEY FROM Illustration 1]

Output: (Illustration 2)

Example 2

ToDo

  • Add 3-Dimensional vectors
  • Add hashlib

Suggestions & Reports

Suggestions or errors are welcome to be ๐Ÿ”— reported!

a.m.m.e's People

Contributors

pulsar7 avatar

Stargazers

 avatar

Watchers

 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.