Today I thought we could talk a little bit about Columnar Transposition Ciphers (hereby called CTC for short), let’s start with discussing what a CTC is. A CTC is a simple encryption method using a shared key between the participants, where the characters in a clear text message gets shifted around in a specific predetermined …
Tag Archives: programming
Create a Dummy File Generator in PHP
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.
Simple XOR Encryption 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.