https://github.com/zenith08/simpleencryptor
A basic (and insecure) text encryption program written in Python.
https://github.com/zenith08/simpleencryptor
decryption encryption python seed
Last synced: about 2 months ago
JSON representation
A basic (and insecure) text encryption program written in Python.
- Host: GitHub
- URL: https://github.com/zenith08/simpleencryptor
- Owner: Zenith08
- Created: 2019-05-23T17:43:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-25T21:32:19.000Z (almost 6 years ago)
- Last Synced: 2025-02-28T20:23:01.037Z (over 1 year ago)
- Topics: decryption, encryption, python, seed
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Basic Python Encryptor
In my programming class in grade 12, we were asked to learn a new programming language, and make a program in it. At the time, I had never used Python. I had seen it around but I had never done a project with it or properly learned it. Knowing how valuable it is, I decided to learn it and used it to make a basic, not secure, encrypting system.
## How it Works
The program takes a seed, which is then passed as a seed into a Python random number generator. The generator is then used to create a map for each printable character (ascii + a few more). Then, that is applied to the text which is to be encrypted.
For example `Hello World` encrypted with code `0` would get `.IddGplG}dT` as the output. To decrypt the text, the process is simply reversed. Assuming the seed is correct, the output will correctly return the original value.
The program also has the ability to work on text files and encrypt them. All of this is handled through the built in UI shown below.
```
What would you like to do?
(E)ncrypt text.
(D)ecrypt text.
(W)rite an encrypted file.
(R)ead an encrypted file.
(H)ack an encryption.
(Q)uit
```
###### Disclaimer: This is not secure and should only be used to have fun with your friends. It even has a built in hacking option.