Skip to content

A Visual Cryptography Generator that takes text as input and encrypts it using a (2,2) visual cryptography scheme.

Notifications You must be signed in to change notification settings

hujuDev/visual-cryptography-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visual Cryptography Generator

A Visual Cryptography Generator that takes text as input and encrypts it using a (2,2) visual cryptography scheme.

Installation

  1. Clone the repository:

git clone https://github.com/your-username/project-name.git

  1. Navigate to the project directory:

cd project-name

  1. Create a virtual environment (optional but recommended):

python -m venv venv

  1. Activate the virtual environment:

On Unix-based systems:

source venv/bin/activate

On Windows:

venv\Scripts\activate

  1. Install the required packages using pip and the requirements.txt file:

pip install -r requirements.txt

This will install all the necessary dependencies for the project.

Usage

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

About

A Visual Cryptography Generator that takes text as input and encrypts it using a (2,2) visual cryptography scheme.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages