Skip to content

Instantly share code, notes, and snippets.

View arigesher's full-sized avatar

Ari Gesher arigesher

View GitHub Profile
@arigesher
arigesher / -
Created May 9, 2014 05:53 — forked from anonymous/-
decode binary string - python
for i in range(0,len(data),8):
bound = i+8
if i + 8 > len(data):
bound = len(data) - 1
byte = data[i+1:bound]
val = int(byte,2)
out = '%s%c'%(out,val)
print out