Cryptography to the common man will probably just mean encrypting a message or making a message seem like rubbish to anyone except an intended recipient. But it is so much more than that. Indeed, hiding information is the ultimate goal but there are a lot of sub-fields to be understood in order to facilitate encryption.
Cryptography consists of:
- Cryptology: The science aspect of crypto. The math behind the algorithms, application of formulae etc.
- Cryptanalysis: Deals with the working of encryption systems. Aims to either secure them or break them.
Both cryptology and cryptanalysis are of utmost relevance when diving in here.
Your primary goal is to understand the modern, popular cryptosystems in use, how these cryptosystems outdid their predecessors and what exactly makes them secure enough to be used today.
Apart from cryptosystems, there are other things to know as well.
The most important topics to be thorough with are:
In my opinion, the most simple to understand, fun yet and important and secure cryptosystem is the idea of public key cryptography and in particular, RSA.
Encryption is defined by :
Ciphertext = (Plaintext)e mod N
(N, e)
is the RSA Public Key.
Decryption is simply:
Plaintext = (Ciphertext)d mod N
d
is the RSA Private Key.
It involves encryption in the form of basic modular exponentiation and yet is virtually infeasible to break, given the appropriate parameters are chosen.
A cipher which encrypts data 1 block at a time.
The common names here are AES, DES, triple DES etc. AES(Advanced Encryption Standard) is currently the most secure encryption system ever known and hence the most trusted.
It is important to know the history behind it and the gradual weathering of DES(Data Encryption Standard) which necessitated the design of AES.
A cipher which encrypts data 1 digit of plaintext at a time.
It is important to know the difference between a stream and block cipher and when each one is applicable.
They are very important key exchange systems. Like RSA, they involve a public key.
A heavily mathematical field, yet extremely effective. It is intimidating to learn but is certainly worth the study. It makes use of a mathematical Weierstrauss equation.
A function which takes in data and gives out something random but of a fixed size, and is virtually impossible to reverse.
Again, a big area to cover here. You would definitely want to be aware of the good hash algorithms and what makes them good(Example: SHA family of hashes), and the bad hash algorithms and what makes them bad (Example: MD5).
A very relevant part of our subject. Many encryption systems rely on the pseudorandom generators or PRNGs. PRNGs also need to be "secure", where "secure" here would denote unpredictable.
The other half of the coin, and the most exciting part of crypto as a whole: cracking an encryption. A key aspect of understanding how something is secure, is by understand why it isn't insecure.
Every encryption system has itself tested by attacks and exploits. The cryptosystems I've mentioned above each have certain exploits waiting to rip them apart if a naive lad implements them even slightly incorrectly.
When it comes to hashes, the race is always on to find collisions, breaking the hash function.
It is also fun to see some real world effects here and companies suffering due to clever mathematical attacks on cryptosystems.
First, I would say pick a good book to learn the theory from. Mine and many others' choice would be Introduction to Mathematical Cryptography by Jeffrey Hoffstein
. Another valuable mention is A Graduate Course in Applied Cryptography.Authors: D.Boneh, Victor Shoup
.
Once that's more or less done, I would highly suggest making yourself home at https://cryptohack.org/. As a driven member of its amazing community, I can guarantee that it's the best place to learn crypto. https://cryptopals.com/ is also a good shout.
Lastly, you can elevate yourself by taking part in Capture The Flags(CTFs). That is a topic on its own so I'll just guide you to https://ctf101.org/ for more information.
Have fun ^_^