Skip to content

Instantly share code, notes, and snippets.

Avatar

Ari Gesher arigesher

View GitHub Profile
@arigesher
arigesher / -
Created May 9, 2014 — forked from anonymous/-
decode binary string - python
View -
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