Whats up guys?
In this post we’ll take a look at a Python script to break a file (image, executable, whatever) into several chunks of raw bytes and another one to merge those chunks together and reassemble that file back.
Since I’ve been doing a cloud security certification, it mentioned a technique widely employed in cloud of storing chunks of files into different virtual machines for security purposes (kind of like a RAID setup).
That made me think: ah, this could be a cool Python script to code! Hence, this tutorial. 🙂
Each script is less than 20 lines of code and not difficult at all, just basic file manipulation of raw bytes.
In any case, I have made an introduction to files in Python to get you started – if you are new to programming and/or Python, check it out since it should be all that you need for this tutorial.