Question: Java implementation Supply decorator classes EncryptingWriter and DecryptingReader that encrypt and decrypt the characters of the underlying reader or writer. Make sure that these classes
Java implementation
Supply decorator classes EncryptingWriter and DecryptingReader that encrypt and decrypt the characters of the underlying reader or writer. Make sure that these classes are again readers and writers so that you can apply additional decorations. For the encryption, simply use the Caesar cipher, which shifts the alphabet by three characters
(i.e., A becomes D, B becomes E, and so on).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
