mcroydon / hashmoji

Visualize hashes and bytes with emoji.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Binary Not Work

chezsick opened this issue · comments

commented

I Like This Project But All Binary File Type Is Not Work, Due UTF8 And Version 3 Python :(

same problem for me, on python3:

hashmoji.hashmoji(b'eq\xb5\xff') ->

...
..../bin/hashmoji.py in _lookup(index)
     73     bytes or encoded unicode strings in the Python source.
     74     """
---> 75     unistr = emoji_list[index]
     76     if unistr.count("+") == 1:
     77         unihex = unistr[2:].lower()

IndexError: list index out of range

this really should work for all binary values.
example of a test:

for i in range(1<<32): 
     b=struct.pack('>I',i)*4 
     hashmoji.hashmoji(b)