diff --git a/algo/dsa.py b/algo/dsa.py index d423125..78d4190 100644 --- a/algo/dsa.py +++ b/algo/dsa.py @@ -85,7 +85,7 @@ def dsa_processing(data, p_value, q_value, x_value, k_value, encrypt): f"Cannot find correct h_value in range(1;{p_value - 1})" ) g_value = pow(h_value, int((p_value - 1) / q_value)) - open_key = pow(h_value, x_value) % q_value + open_key = pow(g_value, x_value) % p_value if encrypt == "sign": return dsa_sign(data, p_value, q_value, x_value, k_value, g_value) diff --git a/install.py b/install.py index c47f687..cad4254 100755 --- a/install.py +++ b/install.py @@ -1,4 +1,4 @@ -#!/bin/python3 +#!/usr/bin/env python3 """ Install @@ -20,7 +20,7 @@ print("Start installation process") -subprocess.run(["python", "-m", "venv", "crypto_env" ], check=True) +subprocess.run([sys.executable, "-m", "venv", "crypto_env" ], check=True) if platform.system() == "Linux": subprocess.run(["crypto_env/bin/pip3", "install", "-r", "linux_requirements.txt"], check=True)