From 96245bb06b8de3433eb7e4e850dc8b8ba28f7b65 Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Sat, 27 Jun 2026 12:49:56 +0200 Subject: [PATCH] Fix of an legacy encryption Algorithm --- Web/push_notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/push_notifications.py b/Web/push_notifications.py index 6a3b969..078a989 100644 --- a/Web/push_notifications.py +++ b/Web/push_notifications.py @@ -117,7 +117,7 @@ def save_push_subscription(username, subscription_obj): subs_col = get_push_subscriptions_collection(db) # Create unique hash of subscription to avoid duplicates - sub_hash = hashlib.md5( + sub_hash = hashlib.shake_256( f"{username}:{subscription_obj['endpoint']}".encode() ).hexdigest()