Blue J Ciphertext Program

Joined
Nov 22, 2023
Messages
9
Reaction score
0
How to do this method in Blue J
Method 1: Substitution
The first method is "Substitution".

In this method, you are required to substitute each character of the plaintext with the corresponding character from the following array:
Dictation array for substitution:
char dict[][]={ {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',' '},
{'z','y','x','w','v','u','t','s','r','q','p','o','n','m','l','k','j','i','h','g','f','e','d','c','b','a',' '}};

Use this array to look up the substitution text. For example, if the plaintext is "apple", the ciphertext returned will be "zkkov". Since the lookup table is in reverse order, the decryption process can simply input the ciphertext into this method again. Note: Assume the user will only input lowercase letters and no punctuation.

How to do ? Please reply me if seen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,821
Messages
2,569,749
Members
45,733
Latest member
MariaQch13

Latest Threads

Top