Removed backend because it wasn't used in encryption.accounts

This commit is contained in:
StNicolay 2023-01-10 20:28:34 +03:00
parent 5dbf93013a
commit 671286dc39

View File

@ -1,7 +1,6 @@
import os import os
from typing import Self from typing import Self
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305 from cryptography.hazmat.primitives.ciphers.aead import ChaCha20Poly1305
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
@ -22,7 +21,6 @@ class Cipher:
length=32, length=32,
salt=salt, salt=salt,
iterations=100000, iterations=100000,
backend=default_backend(),
) )
return cls(kdf.derive(password)) return cls(kdf.derive(password))