Skip to content

This encryption uses analytic geometry in two-dimensional space. (Relative positions between straight lines)

Notifications You must be signed in to change notification settings

Pulsar7/A.M.M.E

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

This encryption uses analytic geometry in two-dimensional space. (Relative positions between straight lines)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages