Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Bug fix.

Steve3b93c4d34c1e
diff --git a/sflib.py b/sflib.py
index 83a83d71..76421f73 100644
--- a/sflib.py
+++ b/sflib.py
@@ -373,7 +373,7 @@ class SpiderFoot:
if type(string) in [list, dict]:
s = str(string)
s = s.encode('utf-8', errors='replace')
- return sha256(s).hexdigest()
+ return hashlib.sha256(s).hexdigest()
#
# Caching