CODING AND
CRYPTOGRAPHY
Code is a system of symbols, letters, words, or signals that are used
instead of ordinary words and numbers to send messages or store
information. A code is used to keep the message short or to keep it secret.
Codes and ciphers are forms of secret communication. A code replaces
words, phrases, or sentences with groups of letters or numbers, while a
cipher rearranges letters or uses substitutes to disguise the message. This
process is called encryption or enciphering. The science that studies such
secret communication is called cryptology.
USES AND IMPORTANCE OF CODING:
When Julius Caesar sends his messages to his generals or trusted alliance, he would make sure
that his messages are secured and encrypted. This is to make sure that information will not be
leaked and only those who know the algorithm he used can understand the messages.
Moving forward today, security of information is not only applied to war but in all possible
aspects where vital details need to be concealed.
This as well applies to technology, data analytics, and many more.
WHY DO WE NEED TO LEARN CODING?
Keeping something secure means making a way that no one would ever see or find, but sometimes
keeping it beyond the understanding of others. Codes not only keep things secure, but as well as
keeping everything in order and systematic.
Instead of writing the entire name of a location, initials are instead assigned.
Instead of the name of the product itself, a corresponding number is assigned.
A location can be given by a zip code. There are many other uses of codes
Which brings forth systems, order and security to its use.
EXAMPLES OF CODES AND CIPHERS
Morse code is a series of dashes and dots, different combinations of which stand for different
letters or numbers. Anyone who knows the code can decode the message. Pigpen code is coded
in a tic-tac-toe grid and an X. This can be customized so that only the sender and recipient know
the key.
Another type of cipher is called a transposition ciphers keep all the original letters intact but
mix up their order. An example of transposition cipher is Rail Fence Cipher one which doesn't
change any letters when enciphered.
A cipher is a system in which each letter of the alphabet in a message is replaced by a letter,
number or symbol or in simple word Cipher a secret or disguised way of writing; a code. This
type of cipher is called a substitution cipher. Julius Caesar invented a simple cipher system that
moved the alphabet three places to the right. This shown in the table below.
Application:
Encrypt the following message using rail fence cipher.
1. Marry had a little lamb.
2. Winter is supper cold.
3. Seniors rock my socks.
4. I love college algebra.