What is Encryption and How Does it Work?

WHAT IS ENCRYPTION?

Encryption is a way of disguising data so that no one can read it unless they know how to reverse the disguise. It is used for keeping information private on the internet, such as emails or bank details.

HOW DOES IT WORK?

Encryption is used to keep important data safe. We can consider how it works by imagining this data as a box containing valuable items.

Suppose I want to send you this box. I could put a lock on it, but I would have the key for that lock and you wouldn’t. Clearly there is no point sending the key with the box. I also cannot send the key separately, as it is not protected. How can I ensure the box reaches you safely?

ONE SOLUTION

I put my lock on the box and send it to you. Then you put a second lock on the box, one you have a key for, and send the box back to me. I now remove my lock and send it to you again. This time you can open it, as only your lock is on it. This is one way encryption can work.

ANOTHER SOLUTION

You have a lock and a key. You send me your lock, and keep your key. Now I have the lock and you have the key, so I can lock the box and send it to you. This is how public key encryption works: anyone can get ahold of the lock, but only the recipient has the key.

WHAT ARE THESE LOCKS AND KEYS?

The ‘lock’ for an encryption is known as the encryption key, and the ‘key’ is known as the decryption key. The encryption key is used to scramble the data to make it unreadable. The decryption key is used to unscramble this data.

A SIMPLE EXAMPLE KEY

One basic encryption key for sending messages is the Caesar shift. Here, you take each letter from your message and, in the encrypted message, write the letter that comes after it in the alphabet. For example, the word ‘hello’ becomes ‘ifmmp’.

The decryption key for this tells us to take each letter from the encrypted message and replace it with the letter that comes before it in the alphabet. For example, if you received ‘hppeczf’, you could decrypt it to ‘goodbye’.

CONCLUSION

Today, our encryption keys need to be much more complicated than the Caesar shift. The power of computers means that basic encryptions can be easily unscrambled. This means computer scientists are constantly working to design more elaborate keys. Meanwhile, hackers are constantly working to discover the corresponding decryption keys.

RACHEL DAUNCEY

VIEW ALL POSTS

Leave a reply

Your email address will not be published. Required fields are marked *


Fatal error: Uncaught Error: Call to undefined function create_function() in /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-content/themes/helpinghands/framework/inc/sd-theme-functions/sd-functions.php:188 Stack trace: #0 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/class-wp-hook.php(326): sd_style_tag_cloud() #1 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters() #2 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/category-template.php(778): apply_filters() #3 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/widgets/class-wp-widget-tag-cloud.php(60): wp_tag_cloud() #4 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/class-wp-widget.php(394): WP_Widget_Tag_Cloud->widget() #5 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/widgets.php(837): WP_Widget->display_callback() #6 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-content/themes/helpinghands/sidebar.php(26): dynamic_sidebar() #7 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/template.php(790): require_once('/home/213602.cl...') #8 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/template.php(725): load_template() #9 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/general-template.php(136): locate_template() #10 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-content/themes/helpinghands/single.php(114): get_sidebar() #11 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-includes/template-loader.php(106): include('/home/213602.cl...') #12 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-blog-header.php(19): require_once('/home/213602.cl...') #13 /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/index.php(17): require('/home/213602.cl...') #14 {main} thrown in /home/213602.cloudwaysapps.com/nxykgcmrcx/public_html/wp-content/themes/helpinghands/framework/inc/sd-theme-functions/sd-functions.php on line 188