Skip to content

Commit

Permalink
Stringify base64 decoded bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
baulus authored Apr 28, 2022
1 parent 64e6c53 commit 6ac5af1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stix2matcher/matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def _process_prop_suffix(prop_name, value):
value = binascii.a2b_hex(value)
elif prop_name.endswith(u"_bin"):
# binary type, expressed as base64
value = base64.standard_b64decode(value)
value = base64.standard_b64decode(value).decode("ascii")

return value

Expand Down

0 comments on commit 6ac5af1

Please sign in to comment.