ROBChain/poc/generate_string.py

5 lines
176 B
Python
Raw Normal View History

2017-07-31 22:35:28 +02:00
with open('string.bin', 'rb') as stringFile:
with open('string.txt', 'w') as f:
for byte in stringFile.read():
print('byte %s' % hex(byte), file=f)