Skip to content

Commit

Permalink
Merge pull request #28 from HashPals/bee-fix-27
Browse files Browse the repository at this point in the history
Bee fix 27
  • Loading branch information
bee-san authored Feb 10, 2021
2 parents 32a97f2 + 15c0472 commit 7d73f45
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NWY0ZGNjM2I1YWE3NjVkNjFkODMyN2RlYjg4MmNmOTk=
10 changes: 4 additions & 6 deletions name_that_hash/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,12 @@ def main(**kwargs):
logger.trace(i)
if kwargs["base64"]:
logger.trace("decoding as base64")
i = base64.b64decode(i).decode("utf-8")
i = base64.b64decode(i)
logger.trace(f"hash is now {i}")
logger.trace(f"b64 decoded i is {i}")
try:
output.append(HashObj(i, nth, hash_info))
except TypeError:
print("TypeError. I think your hash input is base64, but you're not using the --base64 flag.")
exit(0)

output.append(HashObj(i.decode("utf-8"), nth, hash_info))

logger.trace(output)

if kwargs["grepable"]:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "name-that-hash"
version = "1.0.0"
version = "1.0.1"
description = "The Modern Hash Identifcation System"
authors = ["brandon <[email protected]>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit 7d73f45

Please sign in to comment.