Skip to content

lonkey/simple-cryptographic-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Cryptographic Algorithms

Python library for demonstrating the functionality of common cryptographic algorithms.

Requirements

Python 3.7.9 or later.

Creating a virtual environment

venv allows you to manage separate package installations for different projects. It essentially allows you to create a "virtual" isolated Python installation and install packages into that virtual installation. When you switch projects, you can simply create a new virtual environment and not have to worry about breaking the packages installed in the other environments.

python3 -m venv venv

The second argument is the location, and thus the name, to create the virtual environment. Generally, you can just create this in your project and call it venv. If you name the virtual environment differently, the .gitignore must be modified accordingly.

Activating a virtual environment

Before you can start installing or using packages in your virtual environment you’ll need to activate it.

Command-line Script
bash/zsh $ source <venv>/bin/activate
fish $ source <venv>/bin/activate.fish
csh/tcsh $ source <venv>/bin/activate.csh
PowerShell Core $ <venv>/bin/Activate.ps1
cmd.exe C:\> <venv>\Scripts\activate.bat
PowerShell PS C:\> <venv>\Scripts\Activate.ps1

Using requirements file

A requirements file contains a list of dependencies to be installed using pip.

python3 -m pip install -r requirements.txt

Usage

To use, simply uncomment the corresponding function in main.py and adjust the sample values if necessary.

python3 main.py

To Do

  • Unify output of mathematical conditions
  • Add an English translation