Non-FictionInformativeEducational
Cryptography eBook
A Coursebook on Cryptography
A Coursebook on Cryptography
Formats
Free sample
Chapter 1: The Spoken Secret...--–- Imagine you are standing in a crowded marketplace. A stranger walks past you and whispers a single sentence into your ear. No one else hears it. That sentence is now a secret shared only between you and the stranger. But how did you know the stranger was trustworthy?
How did you ensure that the person three feet away, pretending to read a newspaper, did not also hear? And if you wanted to send that same sentence to a friend across the city tomorrow, how would you keep it from every ear along the way?This is the oldest problem of human communication. Long before computers, before the internet, before electricity, people needed to send messages that only the intended recipient could understand. Lovers, generals, spies, and diplomats all faced the same fundamental challenge: the messenger could be intercepted, the letter could be stolen, and the enemy could be listening. Cryptography was born from this necessity.
It is the art and science of keeping secrets secret. But more than that, it is the story of an enduring war—a war between those who wish to hide information and those who wish to uncover it. This war has decided the fate of empires, the lives of queens, and the outcome of world wars. And today, it protects every credit card transaction, every private message, and every password you type.This book will take you from the simplest ciphers of ancient Rome to the quantum-resistant algorithms of tomorrow. You will learn not just how cryptography works, but why it works—and, just as importantly, where it fails.
By the end of this first chapter, you will understand the fundamental vocabulary of secrecy, the dramatic history that shaped modern cryptography, and the single most important principle that every cryptographer must internalize before writing a single line of code. Let us begin with a story.The Queen’s Last Letter In 1586, Mary, Queen of Scots, was imprisoned in Chartley Castle, England. She had been there for nearly twenty years, confined by her cousin, Queen Elizabeth I. Mary was a direct heir to the English throne, and many Catholic nobles wanted to see Elizabeth removed and Mary installed in her place. Over the years, several plots had been uncovered.
Mary, under constant watch, was allowed to send and receive letters only through a carefully managed system. Her jailer, Sir Amyas Paulet, believed he had complete control over her communications.What Paulet did not know was that Mary had allies outside the castle walls. A Catholic gentleman named Gilbert Gifford had arranged a clandestine method of communication. Letters would be smuggled into and out of the castle inside a beer barrel. Once outside, the letters passed through a network of couriers loyal to Mary’s cause.
In 1586, Mary became involved in the Babington Plot, a scheme to assassinate Queen Elizabeth and launch a Spanish invasion to place Mary on the throne. Her letters, encrypted using a complex cipher, laid out the details.But there was a problem. Gilbert Gifford was a double agent. He was working for Sir Francis Walsingham, Elizabeth’s spymaster. Walsingham allowed the letters to pass, but not before they were copied, deciphered, and read.
For months, Walsingham’s cryptanalysts worked on Mary’s cipher. They did not need to break it instantly. They only needed to break it eventually. And they did. On October 11, 1586, Mary was put on trial for treason.
The key evidence was her deciphered letters. She was convicted and beheaded at Fotheringhay Castle on February 8, 1587.This story contains every essential element of cryptography. Mary had a secret (the plot). She had a message (the letters). She had a method of transforming that message into an unreadable form (encryption).
Her allies had the reverse method to restore the original message (decryption). And the enemy, Walsingham, had codebreakers who could recover the secret without permission (cryptanalysis). The only thing missing from Mary’s story was a secure key—a secret piece of information that Mary and her allies shared but the enemy did not. Because her cipher method was eventually broken, all her secrets were exposed. This is the eternal lesson of cryptography: your system is only as strong as the secrets that protect it.What Is Cryptography?Let us define our terms precisely.
Cryptography comes from the Greek words kryptos (hidden) and graphein (to write). It is the practice of writing hidden messages. But modern cryptography has expanded far beyond written messages. Today, cryptography protects digital voice calls, video streams, financial transactions, and even the code that runs self-driving cars. The core concept remains the same: you start with a readable message, apply a transformation using a secret key, and produce an unreadable message.
Only someone with the correct key can reverse the transformation.The original, readable message is called the plaintext. The transformed, unreadable message is called the ciphertext. The process of turning plaintext into ciphertext is encryption. The process of turning ciphertext back into plaintext is decryption. The secret piece of information that controls encryption and decryption is the key.
A cipher is the specific method or algorithm for performing encryption and decryption.Consider a simple example. Suppose you want to send the plaintext "HELLO" to a friend. You apply a cipher that shifts every letter three positions forward in the alphabet: H becomes K, E becomes H, L becomes O, L becomes O, O becomes R. Your ciphertext is "KHOOR". Your key is the number 3.
Your friend, knowing the key (3), reverses the shift (subtracts 3) to get "HELLO" back. An attacker who intercepts "KHOOR" but does not know the key (3) cannot determine whether the original message was "HELLO", "WORLD", or any other five-letter word.This simple shift cipher is called the Caesar cipher, named after Julius Caesar, who used it to communicate with his generals. It is also completely insecure by modern standards. We will break it in the next section. But it illustrates the three essential components of any cryptographic system: the plaintext, the ciphertext, the key, and the transformation that connects them.A Short History of Secret Writing Human beings have been hiding messages for as long as they have been writing them.
The earliest known example of cryptography comes from ancient Egypt, around 1900 BCE, where a scribe carved unusual hieroglyphs into a tomb wall—not to hide information, but to add mystery and importance to the inscription. True cryptographic secrecy appears later, in ancient Greece and Rome.The Spartans used a device called the scytale around 500 BCE. It was a simple wooden rod. The sender wrapped a strip of parchment around the rod, wrote the message lengthwise, then unwrapped the parchment. The letters were scrambled.
The recipient wrapped the parchment around an identical rod to read the message. This is an example of a transposition cipher—rearranging the order of the letters rather than changing the letters themselves.The Romans refined the art. Julius Caesar famously used the shift cipher that bears his name. But Caesar’s generals were not always careful. The Roman historian Suetonius wrote that Caesar’s nephew, Augustus, used a more complex cipher and sometimes simply substituted the next letter of the alphabet.
The Caesar cipher, despite its weakness, persisted for centuries because most people could not read at all, and those who…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Strand Shaunna
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Informative, Educational
- Released
- 2026-06-03
- Pages (approx.)
- 158
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Strand Shaunna
Global Talent Aging Workforce MigrationStrand Shaunna$11.99
Gambling Addiction and Gamblers AnonymousStrand Shaunna$11.99
Making Mistakes Self EsteemStrand Shaunna$11.99
Community Engagement LongevityStrand Shaunna$11.99
The Knox Family Defense CampaignStrand Shaunna$11.99
Whispers in the Corn: The Forgotten Accuser of SalemStrand Shaunna$11.99
Understanding Leukemia, T-cell, ChronicStrand Shaunna$17.99
Real Estate Tax Incentives GuideStrand Shaunna$12.99
Mobile Marketing One Page HandbookStrand Shaunna$12.99
A Beginners Guide to Dumog (Volume 1)Strand Shaunna$11.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99