DES (Data Encryption Standard) - simplified demo

Real DES: 64 bit block, 56 bit key, 16 Feistel rounds, with initial
permutation, expansion, 8 S-boxes, P-box, final permutation.
This demo keeps only the Feistel network idea (toy, 16 bit block, 4 rounds).

Feistel formula for every round i:
    L(i) = R(i-1)
    R(i) = L(i-1) XOR f( R(i-1), K(i) )
Decryption is the same process with the round keys in reverse order.

Round function used here: f(R, K) = (3*R + K) mod 256

Steps:
1. Split the 16 bit block into left 8 bits and right 8 bits.
2. For each round key do: new left = old right, new right = old left XOR f(old right, key).
3. After last round swap left and right and join them = cipher.
4. To decrypt run the same steps with keys reversed, the original block comes back.

Example: plain 0x4865 -> cipher 0x1f4e -> decrypted 0x4865.
