Files
felhom.eu/documentation/audits/cc-creds-build-2026-10-17/harness/line20hash.py
T

5 lines
328 B
Python

# Hash-only comparison the operator asked for (STOP 3 d). Prints a length and an 8-hex prefix, never the value.
import hashlib, os
l = open(os.path.expanduser("~/.config/credentials"), encoding="utf-8").read().split("\n")[19].strip()
print("line 20: length %d, sha256 %s" % (len(l), hashlib.sha256(l.encode()).hexdigest()[:8]))