A Visual Cryptography Generator that takes text as input and encrypts it using a (2,2) visual cryptography scheme.
- Clone the repository:
git clone https://github.com/your-username/project-name.git
- Navigate to the project directory:
cd project-name
- Create a virtual environment (optional but recommended):
python -m venv venv
- Activate the virtual environment:
On Unix-based systems:
source venv/bin/activate
On Windows:
venv\Scripts\activate
- Install the required packages using
pip
and therequirements.txt
file:
pip install -r requirements.txt
This will install all the necessary dependencies for the project.
To run the main file of the project, execute the following command:
python main.py <text> <private_key>
<text>
(optional): The text to encrypt (up to 10 characters). If not specified, it will prompt for user input.<private_key>
(optional): The private key filename. If not specified, it will default to default.png.
For example, to encrypt the word "hello" using the private key file secret_1.png, you would run:
python main.py hello secret_1.png
If you omit the arguments, it will prompt you to enter the text and the private key filename in the terminal:
python main.py