lazyflat/alert/utils.py
Moritz 69f2f1f635 lazyflat: combined alert + apply behind authenticated web UI
Three isolated services (alert scraper, apply HTTP worker, web UI+DB)
with argon2 auth, signed cookies, CSRF, rate-limited login, kill switch,
apply circuit breaker, audit log, and strict CSP.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 09:51:35 +02:00

6 lines
No EOL
142 B
Python

import hashlib
import pickle
def hash_any_object(var):
byte_stream = pickle.dumps(var)
return hashlib.sha256(byte_stream).hexdigest()