This commit is contained in:
parent
3ca93438e6
commit
1b802f9b6b
@ -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
|
||||||
|
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user