Cryptography is the practice of turning readable information (plaintext) into unreadable data (ciphertext) with a secret key, so that only someone with the right key can turn it back. Modern cryptography also does three other jobs: proving a message has not been changed (integrity), proving who sent it (authentication), and making sure the sender cannot later deny it (non-repudiation).
It is old. Julius Caesar shifted letters by three, and the German Enigma machine was broken at Bletchley Park in the Second World War. The modern era began in 1976, when Whitfield Diffie and Martin Hellman showed how two strangers can agree on a secret key over a public line, followed by RSA in 1977.
The rule that matters: good cryptography keeps the key secret, not the method. AES, SHA-256 and RSA are fully public, and still secure.





