Every once in a while you need to do some edge testing when writing code that handles files. One way to fix this is to use dummy files at specific sizes. The following code is an example on how to write a Dummy File Generator in PHP.
This piece of code is a simple way of encrypting and decrypting text using a bit wise XOR operation. First a simple reminder about how XOR operators work.