Giter Club home page Giter Club logo

oliversberesford / encrypter-decrypter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 15 KB

You can encrypt and decrypt any text. For longer texts, fork the repl and use "input.txt," for both encrypting and decrypting. The output will go to "output.txt " to make it easier to copy to clipboard. To decrypt a text encrypted with this program with seed x, enter x for the decryption seed.

Home Page: replit.com/@Olicodespython/Encrypter-Decrypter

License: MIT License

Python 100.00%

encrypter-decrypter's Introduction

Randomized Encryption and Decryption Script

This Python script allows you to perform randomized encryption and decryption on text messages. The encryption process adds a random offset to the ASCII value of each character, while the decryption process reverses this offset.

Prerequisites

  • Python 3.6 or above should be installed on your system. If Python is not installed, you can download it from the official Python website: https://www.python.org/downloads/

How to Run

Follow these steps to run the script using a virtual environment (pipenv):

  1. Clone the Repository:
git clone <repository_url>
cd <repository_directory>
  1. Navigate to the project directory:
cd Encryption-Decryption
  1. Create a virtual environment:

On macOS and Linux:

python3 -m venv venv

On Windows:

py -m venv venv
  1. Activate the virtual environment: On macOS and Linux:
source venv/bin/activate

On Windows:

venv\Scripts\activate
  1. Install the required packages:
pip3 install -r requirements.txt

This will install all the necessary dependencies for the project in the python environment.

Run the Python script using the following command:

python3 main.py

The script will prompt you to choose between encryption and decryption, specify a seed, and provide the text to be processed.

If you prefer to use a file for input, you can place your text in input.txt before running the script.

  1. Viewing the Output:

The script will display the result on the console. Additionally, the output will be saved to output.txt.

Usage

  • When prompted for encryption or decryption, enter 0 for encryption or 1 for decryption.

  • The seed you provide will determine the randomness of the encryption. Using the same seed for decryption as used for encryption will yield the original text.

  • For text input, simply type or paste your text when prompted. Alternatively, you can provide the input by placing it in the input.txt file.

Once you're done, you can exit the venv:

On macOS and Linux:

deactivate

On Windows:

deactivate.bat

You can also delete the files associated with it if you want, but you don't have to. This action cannot be undone.

On macOS and Linux:

rm -r venv

On Windows:

rmdir /s /q venv

License

This project is licensed under the MIT License. See the LICENSE file for details.

Feel free to modify the instructions based on your project's specific setup and requirements.

encrypter-decrypter's People

Contributors

oliversberesford 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.