Skip to content

Oromeror/payu_hub_e2ee_card_encryption_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayU Hub E2EE example

This repository is based on the implementation of a simple python implementation of PayU Hub End To End Encryption.

Installation

  • Create a virtual environment with the command

    windows

    py -3 -m venv .venv

    MacOS/Linux

    python -m venv .venv or python3 -m venv .venv

  • Activate the virtual environment:

    In Linux or Mac:

    source .venv/bin/activate

    Windows:

    .venv\scripts\activate or .venv\scripts\activate.bat or navigate to route and run activate.bat

    It should appear (venv) in the console. Whenever a new console is executed, the virtual machine has a libraries and dependencies other than those found in the normal Windows environment, this to maintain the integrity of the applications in the operating system.

    linux or mac pip install --upgrade pip or python3 -m pip install --upgrade pip windows python -m pip install --upgrade pip

  • Install dependencies

    Windows (may require elevation)

    py -3 -m pip install -r requirements.txt

    macOS/Linux

    python -m pip install -r requirements.txt or python3 -m pip install -r requirements.txt

    Linux (Debian)

    apt-get install python3-tk python3 -m pip install m-r requirements.txt

    use python3 -m pip install --upgrade pip if necessary.

Execution

  • With the virtual environment activated, run the following console command:

    uvicorn app:app --reload --port 5000

    in case you need to delete cache use

    find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf

    for root open http:https://127.0.0.1:5000/

    for swagger open http:https://127.0.0.1:5000/docs

About

Examples Of Tokenization with jwcrypto For PayU Hub e2ee

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages