Use buffer size directly from pyAesCrypt

This commit is contained in:
Shreya 2021-06-01 15:51:31 +05:30 committed by VakarisZ
parent b9fb4c6902
commit 7153b91c10
2 changed files with 1 additions and 2 deletions

View File

@ -6,8 +6,7 @@ import pyAesCrypt
from common.utils.exceptions import FailedDecryption, NoCredentialsError
# TODO use from pyAesCrypt
BUFFER_SIZE = 64 * 1024
BUFFER_SIZE = pyAesCrypt.crypto.bufferSizeDef
def encrypt_config(config: Dict, password: str) -> str:

View File