Encoder for DXC Technology
Written by Sheriann Ngui
- Java (Tested on 11)
- Compile with
javac Main.java
- Run with
java -cp . Main
- Compile with
javac Example.java
- Run with
java -cp . Example
You are to write an encoder that takes in a plaintext and encode it to another obfuscated string.
The logic of the encoding / decoding is:
Choose any character in the reference table as the offset. The first character of the encoded message will be the offset character. Any character not in the reference table will mapped back to the same character.
Makes use of OOP concepts by storing the offset character and initialising the appropriate shift table for reference.