From 671286dc392a151939bf3d69c09a01190e62ea85 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Tue, 10 Jan 2023 20:28:34 +0300 Subject: [PATCH] Removed backend because it wasn't used in encryption.accounts --- src/encryption/accounts.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/encryption/accounts.py b/src/encryption/accounts.py index 35cbdb9..a23b277 100644 --- a/src/encryption/accounts.py +++ b/src/encryption/accounts.py @@ -1,7 +1,6 @@ import os from typing import Self -from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305 from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC @@ -22,7 +21,6 @@ class Cipher: length=32, salt=salt, iterations=100000, - backend=default_backend(), ) return cls(kdf.derive(password))