- From the project root, check your Python version:
python3 --version- Create a virtual environment (use
.venvor a name you prefer):
python3 -m venv .venv- Activate the virtual environment:
- macOS / Linux:
source .venv/bin/activate- Windows PowerShell:
.venv\Scripts\Activate.ps1- Windows Command Prompt:
.venv\Scripts\activate.bat- Upgrade pip and install project requirements:
python -m pip install --upgrade pip
pip install -r requirements.txt- (Optional) If you add or change dependencies, update
requirements.txt:
pip freeze > requirements.txt- When finished, deactivate the venv:
deactivaterun the following command for hash:
- You need to move to the modules directory:
cd modules- Form the modules directory you now can run:
python hash.pyor
python encryption.pyThe files used for this example are located on the sample_files directoy