GithubHelp home page GithubHelp logo

lonkey / simple-cryptographic-algorithms Goto Github PK

View Code? Open in Web Editor NEW
18.0 3.0 5.0 73 KB

Python library for demonstrating the functionality of common cryptographic algorithms

Home Page: https://github.com/lonkey/simple-cryptographic-algorithms

License: GNU General Public License v3.0

Python 100.00%
dh diffie-hellman diffie-hellman-algorithm elgamal elgamal-encryption modulo-arithmetics multiplicative-inverse additive-inverse linear-factorization rsa

simple-cryptographic-algorithms's Introduction

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

simple-cryptographic-algorithms's People

Contributors

lonkey avatar redisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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