Playfair Cipher

Enter a codeword (or phrase) and click 'Update' to create the Playfair code-square. Any Js will be replaced with Is, and any non-letter or repeated characters removed
ABCDE
FGHIK
LMNOP
QRSTU
VWXYZ
Encode text using the code-square above (messages with an odd number of letters will be padded out with an X):
Decode text that has been encoded using the code-square above (text with an odd number of letters will be padded out with an X):