optimize import
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Torma Kristóf 2021-04-23 17:27:41 +02:00
parent 3ca93438e6
commit 1b802f9b6b
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
2 changed files with 5 additions and 5 deletions

View File

@ -3,9 +3,8 @@ import logging
import os import os
import shutil import shutil
import sys import sys
import binascii
from base64 import b64encode from base64 import b64encode
from Crypto.PublicKey import RSA
from Crypto.Hash import SHA256 from Crypto.Hash import SHA256
from Crypto.Protocol.KDF import bcrypt, bcrypt_check from Crypto.Protocol.KDF import bcrypt, bcrypt_check

View File

@ -1,9 +1,10 @@
from authentication import Authetication
from Crypto.PublicKey import RSA
import json import json
import logging
import os import os
from Crypto.PublicKey import RSA
from authentication import Authetication
def generatePrivateKeyForUser(auth: Authetication, username: str, user_passphrase: str, public_server_key='') -> bool: def generatePrivateKeyForUser(auth: Authetication, username: str, user_passphrase: str, public_server_key='') -> bool:
if auth.checkUserExists(username): if auth.checkUserExists(username):