https://github.com/lasse-tom-lang/python-cryptographie
Program for en- and decrypt messages
https://github.com/lasse-tom-lang/python-cryptographie
cryptography pysimplegui python steganography
Last synced: about 1 year ago
JSON representation
Program for en- and decrypt messages
- Host: GitHub
- URL: https://github.com/lasse-tom-lang/python-cryptographie
- Owner: Lasse-Tom-Lang
- Created: 2022-06-25T10:39:03.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-29T16:19:05.000Z (almost 4 years ago)
- Last Synced: 2025-02-06T22:42:32.837Z (over 1 year ago)
- Topics: cryptography, pysimplegui, python, steganography
- Language: Python
- Homepage:
- Size: 1.63 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Cryptographie

## Setup
This program can be run on any version of Python 3.
As Libarys you have to install:
* ``` os ```
* ``` shutil ```
* ``` opencv ```
* ``` PySimpleGUI ```
* ``` pillow ```
* ``` bitarray ```
* ``` random ```
* ``` csv ```
* ``` math ```
To use the programm you have to run the ```GenerateNumbers.py``` file, to generate the numbers and key table. This file the must be shared with all users you want to send messages to.
## Usage
### Encrypt
First select an image (Only ```.png```) by pressing the ```Choose Image``` button on the left side. Then enter your text to the textfield below. Then press the ```Convert``` button. Then you can save the image by clicking the ```Save``` button. Also copy the ```key```and send it with the image.
### Decrypt
First enter the ```key``` send with the image to the textfield at the top right. Then click the ```Choose Image``` button and select your image. Now click the ```Convert``` button and the message appears in the textfield.
## Technic
### Encrypting
First every letter of the message gets converted to a number. Then every number gets charged with the key. All results get converted to binary. Then at every chrominance in every pixel in the image the last bit gets replaced by one bit of the message.
### Decrypting
First at every chrominance in every pixel in the image the last bit gets read and added together to a string. Then the strings get split into numbers which get charged with the key. The new numbers get back converted to letters.
## Competition
This program was original developed for the "Data security" competition of [Explore Science](http://explore-science.info) 2022 in Mannheim.
With this project, we earned the 1. place.