Editing
Symmetric Cryptography
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== <span style="color: #FFFFFF;">Understanding</span> == Symmetric cryptography is understood through **Confusion** and **Diffusion**. **1. The Mechanics (The SP-Network)**: Most modern symmetric ciphers (like AES) use a series of "Rounds" to scramble data: * **Substitution (Confusion)**: Replacing one byte with another using a lookup table (S-Box). This hides the relationship between the key and the ciphertext. * **Permutation (Diffusion)**: Shuffling the bytes around. This ensures that if you change just one letter in the message, the entire ciphertext changes completely. **2. The Key Exchange Problem**: If Alice wants to send a secret to Bob using symmetric encryption, she must first give Bob the key. * If she sends the key over the internet, a spy can steal it. * If she meets Bob in person, it's slow and doesn't work for millions of people. This is why symmetric encryption is usually used *after* a secure connection has already been built using **Public-Key Cryptography**. **3. Block vs. Stream**: * **Block (AES)**: Like a secure vault. You put the data in a box, lock it, and send it. It is very strong but can be slow if the "box" isn't full. * **Stream (ChaCha20)**: Like a "filter" on a garden hose. The data flows through, and every drop is scrambled instantly. This is vital for real-time data like phone calls. **Security through Obscurity**: This is a major "Don't" in cryptography. A good symmetric algorithm should be **Public**. Its security should come from the difficulty of guessing the **Key**, not from keeping the "Method" a secret. </div> <div style="background-color: #8B0000; color: #FFFFFF; padding: 20px; border-radius: 8px; margin-bottom: 15px;">
Summary:
Please note that all contributions to BloomWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BloomWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information