Enter a message to encipher and a keyword. Each letter in keyword must be unique. The number of keyword letters times 4 must be at least the number of non white space characters in message.

Output will be shown here

Enter a cipher text to decipher. Each block must be 4 characters long. Then enter the keyword. Each letter in keyword must be unique and the number of letter is the same as the number of block of cipher text.

Output will be shown here

Scrambling with keyword cipher.

Source:
Codes, ciphers, and secret writing. Chapter 1. Martin Gardner. 1972.