Skip to content

Commit

Permalink
#1160 Encode string before hashing
Browse files Browse the repository at this point in the history
  • Loading branch information
To-om committed Feb 13, 2023
1 parent 91510e1 commit 5fa468a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/ProofPoint/proofpoint_lookup.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run(self):
elif self.data_type == 'hash' and len(self.get_data()) == 64:
sha256 = self.get_data()
else:
sha256 = hashlib.sha256(self.get_data()).hexdigest()
sha256 = hashlib.sha256(self.get_data().encode()).hexdigest()
else:
self.error('unknown service')
if sha256 != None:
Expand Down

0 comments on commit 5fa468a

Please sign in to comment.