Skip to content

Commit 8271df1

Browse files
authored
fix: remove debug print statements from encryption code (#282)
1 parent c8ad850 commit 8271df1

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

_test_unstructured_client/unit/test_encryption.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@ def test_encrypt_around_rsa_size_limit(rsa_key_pair, plaintext, secret_type):
9292
"""
9393
_, public_key_pem = rsa_key_pair
9494

95-
print(f"Testing plaintext of length {len(plaintext)} with expected type {secret_type}")
96-
9795
# Load the public key
9896
public_key = serialization.load_pem_public_key(
9997
public_key_pem.encode('utf-8'),

src/unstructured_client/users.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,6 @@ def encrypt_secret(
614614
# Use the length of the public key to determine the encryption type
615615
key_size_bytes = public_key.key_size // 8
616616
max_rsa_length = key_size_bytes - 66 # OAEP SHA256 overhead
617-
print(max_rsa_length)
618617

619618
if not encryption_type:
620619
encryption_type = "rsa" if len(plaintext) <= max_rsa_length else "rsa_aes"

0 commit comments

Comments
 (0)