Skip to content

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

Missing raw_unicode_escape for hashstring().

Stevede018b3b3319
diff --git a/sflib.py b/sflib.py
index e74746c7..c56c3566 100644
--- a/sflib.py
+++ b/sflib.py
@@ -374,7 +374,7 @@ class SpiderFoot:
s = str(string)
if type(s) == str:
s = unicode(s, 'utf-8', errors='replace')
- return hashlib.sha256(s).hexdigest()
+ return hashlib.sha256(s.encode('raw_unicode_escape')).hexdigest()
#
# Caching