Skip to content

Commit f098e2e

Browse files
committed
Add comment to function code advising not to hardcode passwords in production
1 parent 09095bd commit f098e2e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sample-apps/file-processing-python/lambda_function.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ def encrypt_pdf(file_path, encrypted_file_path):
3131
writer.add_page(page)
3232

3333
# Add a password to the new PDF
34+
# In this example, the password is hardcoded.
35+
# In a production application, don't hardcode passwords or other sensitive information.
36+
# We recommend you use AWS Secrets Manager to securely store passwords.
3437
writer.encrypt("my-secret-password")
3538

3639
# Save the new PDF to a file

0 commit comments

Comments
 (0)