02 How does GC Wizard encrypt or decrypt using the Chao Cipher?

Input

  • Mode whether to encrypt or decrypt
  • Plaintext or ciphertext
  • Alphabets for plaintext as well as ciphertext; the sorting of the alphabets can be chosen from
    – A-Z
    – Z-A
    – self-defined

Output

The ciphertext or plaintext – depending on the mode.