Cryptography
Cryptography is the study of encryption. Taking information you want kept secret and making it unreadable to anyone except the intended recipient.
One of the oldest examples is called the Caesar Cypher, used by its namesake, Julius Caesar. The method used to encrypt the message was to take every letter in the message and switch it with a another letter in the alphabet. The corresponding letter would be depend on a number which would determine how many letters you would shift over in the alphabet. For instance: if the number was 1 (which would be absolutely terrible for disguising the message) then ‘A’ would be ‘B’ and ‘B’ would be ‘C’. Here’s an example of the shift with 3:
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZ
Cipher: XYZABCDEFGHIJKLMNOPQRSTUVWThe number used to encode and decode the message is called a “key.” Only the sender and the recipient would no the “key,” so that they would be the only ones able to read the message. Now the problem is, this is actually a fairly easy cipher to crack, especially by today’s standards. When Caesar was using this kind of cipher, most of his enemy’s were probably illiterate so it made it a little easier for him to create secret messages.
This still lets us understand a basic principle of cryptography — something called “symmetric encryption.” It requires one key that can be used by the both the sender and receiver. The key must be kept secret because anyone who knows the key can decrypt the information.
Get Katrina Garloff’s stories in your inbox
Join Medium for free to get updates from this writer.
We also have asymmetrical encryption. In this model we have two different keys: one private and one public.
One number is generated to make both keys. In one model,
the public key is used to encrypt the data and the private key is used to decrypt the data. A good analogy for this would be a locked mailbox at the post office. Anyone can put the mail through the slot but you have to have a key to read the mail inside.
Another model of asymmetrical encryption would involve combining two keys in order to encrypt or decrypt given data.
Another example would be a digital signature where the private key is used to protect the validity of the information and a public key is used to verify it.
RSA (named for its three creators: “Rivest-Shamir-Adleman”)is a widely used algorithm for asymmetrical encryption.
RSA derives its security from the difficulty of factoring large integers that are the product of two large prime numbers. Multiplying these two numbers is easy, but determining the original prime numbers from the total — factoring — is considered infeasible due to the time it would take even using today’s super computers. — Margaret Rouse (WhatIs.com)
So that’s cool… and a lot of math if we go into the details of the process. RSA is regularly used to secure web browsers, chat applications, email, and VPNs. Some other used algorithms are the Diffie-Hellman key agreement, Elliptic Curve Cryptography (ECC), El Gamal, and Digital Signature Algorithm(DSA). All have their strengths and tradeoffs. Usually there are tradeoffs between speed of authentication and level of security provided.
So here’s a brief look at symmetrical and asymmetrical encryption. Often times technologies looking to take advantage of the speed gained with a symmetrical encryption and extra security of asymmetrical encryption will use both!







