From c96caa1d6348ffe3d1356ab1f2bd242b25dab887 Mon Sep 17 00:00:00 2001 From: happyrotter1 <93946596+happyrotter1@users.noreply.github.com> Date: Tue, 9 Nov 2021 01:45:38 +0530 Subject: [PATCH 1/2] changed hashing algo --- aws-sam-cli-main/samcli/lib/utils/hash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-sam-cli-main/samcli/lib/utils/hash.py b/aws-sam-cli-main/samcli/lib/utils/hash.py index a9cbae1..0f26953 100644 --- a/aws-sam-cli-main/samcli/lib/utils/hash.py +++ b/aws-sam-cli-main/samcli/lib/utils/hash.py @@ -21,7 +21,7 @@ def file_checksum(file_name: str) -> str: """ with open(file_name, "rb") as file_handle: - md5 = hashlib.md5() + md5 = hashlib.sha256() # Save current cursor position and reset cursor to start of file curpos = file_handle.tell() From 71ecbce1c095dd7fb5b770c11f8313b392febc60 Mon Sep 17 00:00:00 2001 From: happyrotter1 Date: Tue, 9 Nov 2021 01:54:38 +0530 Subject: [PATCH 2/2] just publishing another revision --- aws-sam-cli-main/samcli/lib/utils/hash.py | 1 - 1 file changed, 1 deletion(-) diff --git a/aws-sam-cli-main/samcli/lib/utils/hash.py b/aws-sam-cli-main/samcli/lib/utils/hash.py index 0f26953..41dd8c9 100644 --- a/aws-sam-cli-main/samcli/lib/utils/hash.py +++ b/aws-sam-cli-main/samcli/lib/utils/hash.py @@ -22,7 +22,6 @@ def file_checksum(file_name: str) -> str: """ with open(file_name, "rb") as file_handle: md5 = hashlib.sha256() - # Save current cursor position and reset cursor to start of file curpos = file_handle.tell() file_handle.seek(0)