Skip to content

Commit

Permalink
preserve line ending when reading key content
Browse files Browse the repository at this point in the history
  • Loading branch information
rjra2611 committed Nov 13, 2023
1 parent 6cfad16 commit a20f8ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lean/components/util/encryption_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_project_key(project_key_path: Path, organization_id: str) -> str:
:param project_key_path: The path to the project key file
:return: The project key
"""
with open(project_key_path, 'r') as f:
with open(project_key_path, 'r', encoding='utf-8', newline='') as f:
content = f.read()
key_for_aes = _get_fixed_length_key_from_user_full_length_key(content, organization_id.encode('utf-8'))
return key_for_aes
Expand Down

0 comments on commit a20f8ab

Please sign in to comment.