From e8846764ce6802345d1b9831436a1c79db3f979a Mon Sep 17 00:00:00 2001 From: Harsh Bafna Date: Tue, 9 Nov 2021 02:14:31 +0530 Subject: [PATCH] updated hashing algo --- aws-sam-cli-master/samcli/lib/utils/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-sam-cli-master/samcli/lib/utils/hash.py b/aws-sam-cli-master/samcli/lib/utils/hash.py index 0ff7a29..c60411d 100644 --- a/aws-sam-cli-master/samcli/lib/utils/hash.py +++ b/aws-sam-cli-master/samcli/lib/utils/hash.py @@ -24,7 +24,7 @@ def file_checksum(file_name: str, hash_generator: Any = None) -> str: """ # Default value is set here because default values are static mutable in Python if not hash_generator: - hash_generator = hashlib.md5() + hash_generator = hashlib.sha256() with open(file_name, "rb") as file_handle: # Save current cursor position and reset cursor to start of file curpos = file_handle.tell()