- 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
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