1 parent 6aa6998 commit ce30ca5Copy full SHA for ce30ca5
1 file changed
src/nethsec/inventory/__init__.py
@@ -644,7 +644,7 @@ def info_default_ipv6(uci: EUci):
644
def anonymize(value, uci: EUci):
645
if fact_subscription_status(uci).get('status', 'no') != "no":
646
return value
647
- h = hashlib.sha1(value.encode()).hexdigest()
+ h = hashlib.sha256(value.encode()).hexdigest()
648
return f"anon-{h[:16]}"
649
650
def info_package_updates_available(uci: EUci):
0 commit comments