diff --git a/_test_unstructured_client/unit/test_encryption.py b/_test_unstructured_client/unit/test_encryption.py index 3ec5d6dc..6fca3b39 100644 --- a/_test_unstructured_client/unit/test_encryption.py +++ b/_test_unstructured_client/unit/test_encryption.py @@ -92,8 +92,6 @@ def test_encrypt_around_rsa_size_limit(rsa_key_pair, plaintext, secret_type): """ _, public_key_pem = rsa_key_pair - print(f"Testing plaintext of length {len(plaintext)} with expected type {secret_type}") - # Load the public key public_key = serialization.load_pem_public_key( public_key_pem.encode('utf-8'), diff --git a/src/unstructured_client/users.py b/src/unstructured_client/users.py index 6ce52bf7..ef3c2dd0 100644 --- a/src/unstructured_client/users.py +++ b/src/unstructured_client/users.py @@ -614,7 +614,6 @@ def encrypt_secret( # Use the length of the public key to determine the encryption type key_size_bytes = public_key.key_size // 8 max_rsa_length = key_size_bytes - 66 # OAEP SHA256 overhead - print(max_rsa_length) if not encryption_type: encryption_type = "rsa" if len(plaintext) <= max_rsa_length else "rsa_aes"