From 1b802f9b6bf063a648497e980d4954b0abb9f264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Fri, 23 Apr 2021 17:27:41 +0200 Subject: [PATCH] optimize import --- server/authentication.py | 3 +-- server/config_init.py | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/server/authentication.py b/server/authentication.py index 7ccc159..885c27b 100644 --- a/server/authentication.py +++ b/server/authentication.py @@ -3,9 +3,8 @@ import logging import os import shutil import sys -import binascii from base64 import b64encode -from Crypto.PublicKey import RSA + from Crypto.Hash import SHA256 from Crypto.Protocol.KDF import bcrypt, bcrypt_check diff --git a/server/config_init.py b/server/config_init.py index c8e9759..bd8a48c 100644 --- a/server/config_init.py +++ b/server/config_init.py @@ -1,9 +1,10 @@ -from authentication import Authetication -from Crypto.PublicKey import RSA import json -import logging import os +from Crypto.PublicKey import RSA + +from authentication import Authetication + def generatePrivateKeyForUser(auth: Authetication, username: str, user_passphrase: str, public_server_key='') -> bool: if auth.checkUserExists(username):