- Joined
- Nov 22, 2023
- Messages
- 16
- Reaction score
- 0
Also this one, I don't how to do in Blue J, I provided the example below
Method 2: Insertion - Encode.
You are required to use your name, for example, "chan tai man", as an encryption key. Insert characters from your name with space into the plaintext alternately. For example, if the plaintext is "apple", the ciphertext will be " acphpalne". If the plaintext is so long that it uses all the characters from your name, please repeat your name from the first character, and return the ciphertext as result.
Method 2: Insertion - Encode.
You are required to use your name, for example, "chan tai man", as an encryption key. Insert characters from your name with space into the plaintext alternately. For example, if the plaintext is "apple", the ciphertext will be " acphpalne". If the plaintext is so long that it uses all the characters from your name, please repeat your name from the first character, and return the ciphertext as result.