We can be trickier about how we encode text. Imagine that you (the sender) of the message and the receiver have a hidden sentence containing all the characters you might need in a coded message, like “The quick brown fox jumps over the lazy cat. ”You can now just encode the position of the character you want in the picture (e.g., a “t” could be 0 and an “h” could be 1). You don’t even need six bits for this encoding. Rewrite the encoding and decoding function from the last exercise to use a hidden sentence for encoding.
Enjoy 24/7 customer support for any queries or concerns you have.
Phone: +1 213 3772458
Email: support@gradeessays.com