The Playfair cipher or Playfair square or Wheatstone-Playfair cipher is a manual symmetric encryption technique and was the first literal digram substitution cipher. The scheme was invented in 1854 by Charles Wheatstone, but bears the name of Lord Playfair for promoting its use.1
Here you get encryption and decryption program for hill cipher in C and C. What is Hill Cipher? In cryptography (field related to encryption-decryption) hill cipher is a polygraphic cipher based on linear algebra. Invented by Lester S. Hill in 1929 and thus got it’s name. It was the first cipher that was able to operate on 3 symbols at once.
You can read about encoding and decoding rules at the wikipedia link referred above. Below you can find the calculator for encryption and decryption to play with. It uses most common rules for Playfair cipher:
'J' is replaced with 'I' to fit 5x5 square
'X' is used as substitution in case you need to fill second letter in the digram, or split two identical letters
Playfair square is filled row-by-row, starting with the keyword.