Four-Square Cipher

Encrypt or decrypt a classic Four-Square cipher using two keyed 5×5 alphabets. I and J share one cell.

Key Square 1

Key Square 2

Letters are processed in pairs. Spaces and punctuation are ignored. J is treated as I; an X is added when an odd number of letters is entered.