Advanced Encryption Standard (AES): What It Is and How It Works – Hashed Out by The SSL Store – Hashed Out by The SSL Store
Understanding advanced encryption standard on basic level doesnt require a higher degree in computer science or Matrix-level consciousness lets break AES encryption down into laymans terms
Hey, all. We know of security of information to be a hot topic since, well, forever. We entrust our personal and sensitive information to lots of major entities and still have problems with data breaches, data leaks, etc. Some of this happens because of security protocols in networking, or bad practices of authentication management but, really, there are many ways that data breaches can occur. However, the actual process of decrypting a ciphertext without a key is far more difficult. For that, we can thank the encrypting algorithms like the popular advanced encryption standard and the secure keys that scramble our data into indecipherable gibberish.
Lets look into how AES works and different applications for it. Well be getting a little into some Matrix-based math so, grab your red pills and see how far this rabbit hole goes.
Lets hash it out.
You may have heard of advanced encryption standard, or AES for short but may not know the answer to the question what is AES? Here are four things you need to know about AES:
The National Institute of Standards and Technology (NIST) established AES as an encryption standard nearly 20 years ago to replace the aging data encryption standard (DES). After all, AES encryption keys can go up to 256 bits, whereas DES stopped at just 56 bits. NIST could have chosen a cipher that offered greater security, but the tradeoff would have required greater overhead that wouldnt be practical. So, they went with one that had great all-around performance and security.
AESs results are so successful that many entities and agencies have approved it and utilize it for encrypting sensitive information. The National Security Agency (NSA), as well as other governmental bodies, utilize AES encryption and keys to protect classified or other sensitive information. Furthermore, AES is often included in commercial based products, including but limited to:
Although it wouldnt literally take forever, it would take far longer than any of our lifetimes to crack an AES 256-bit encryption key using modern computing technology. This is from a brute force standpoint, as in trying every combination until we hear the click/unlocking sound. Certain protections are put in place to prevent stuff from like this happening quickly, such as a limit on password attempts before a lockdown, which may or may not include a time lapse, to occur before trying again. When we are dealing with computation in milliseconds, waiting 20 minutes to try another five times would seriously add to the time taken to crack a key.
Just how long would it take? We are venturing into a thousand monkeys working on a thousand typewriters to write A Tale of Two Cities territory. The possible combinations for AES 256-bit encryption is 2256. Even if a computer can do multiple quadrillions of instructions per second, then we are still in that eagles-wings-eroding-Mount-Everest time frame.
Needless to say, its waaaaaaaaaaaaaaaaaaay (theres not enough memory on our computers to support the number of a letters that I want to convey) longer than our current universe has been in existence. And thats just for a 16-byte block of data. So, as you can see, brute forcing AES even if it is 128 bits AES is futile.
That would likely change, though, once quantum computing becomes a little more mainstream, available, and effective. Quantum computing is expected to break AES encryption and require other methods to protect our data but thats still a ways down the road.
Manage Digital Certificates like a Boss
14 Certificate Management Best Practices to keep your organization running, secure and fully-compliant.
To better understand what AES is, you need to understand how it works. But in order to see how the advanced encryption standard actually works, however, we first need to look at how this is set up and the rules concerning the process based on the users selection of encryption strength. Typically, when we discuss using higher bit levels of security, were looking at things that are more secure and more difficult to break or hack. While the data blocks are broken up into 128 bits, the key size have a few varying lengths: 128 bits, 196 bits, and 256 bits. What does this mean? Lets back it up for a second here.
We know that encryption typically deals in the scrambling of information into something unreadable and an associated key to decrypt the scramble. AES scramble procedures use four scrambling operations in rounds, meaning that it will perform the operations, and then repeat the process based off of the previous rounds results X number of times. Simplistically, if we put in X and get out Y, that would be one round. We would then put Y through the paces and get out Z for round 2. Rinse and repeat until we have completed the specified number of rounds.
The AES key size, specified above, will determine the number of rounds that the procedure will execute. For example:
As mentioned, each round has four operations.
So, youve arrived this far. Now, you may be asking: why, oh why, didnt I take the blue pill?
Before we get to the operational parts of advanced encryption standard, lets look at how the data is structured. What we mean is that the data that the operations are performed upon is not left-to-right sequential as we normally think of it. Its stacked in a 44 matrix of 128 bits (16 bytes) per block in an array thats known as a state. A state looks something like this:
So, if your message was blue pill or red, it would look something like this:
So, just to be clear, this is just a 16-byte block so, this means that every group of 16 bytes in a file are arranged in such a fashion. At this point, the systematic scramble begins through the application of each AES encryption operation.
As mentioned earlier, once we have our data arrangement, there are certain linked operations that will perform the scramble on each state. The purpose here is to convert the plaintext data into ciphertext through the use of a secret key.
The four types of AES operations as follows (note: well get into the order of the operations in the next section):
As mentioned earlier, the key size determines the number of rounds of scrambling that will be performed. AES encryption uses the Rjindael Key Schedule, which derives the subkeys from the main key to perform the Key Expansion.
The AddRoundKey operation takes the current state of the data and executes the XOR Boolean operation against the current round subkey. XOR means Exclusively Or, which will yield a result of true if the inputs differ (e.g. one input must be 1 and the other input must be 0 to be true). There will be a unique subkey per round, plus one more (which will run at the end).
The SubBytes operation, which stands for substitute bytes, will take the 16-byte block and run it through an S-Box (substitution box) to produce an alternate value. Simply put, the operation will take a value and then replace it by spitting out another value.
The actual S-Box operation is a complicated process, but just know that its nearly impossible to decipher with conventional computing. Coupled with the rest of AES operations, it will do its job to effectively scramble and obfuscate the source data. The S in the white box in the image above represents the complex lookup table for the S-Box.
The ShiftRows operation is a little more straightforward and is easier to understand. Based off the arrangement of the data, the idea of ShiftRows is to move the positions of the data in their respective rows with wrapping. Remember, the data is arranged in a stacked arrangement and not left to right like most of us are used to reading. The image provided helps to visualize this operation.
The first row goes unchanged. The second row shifts the bytes to the left by one position with row wrap around. The third row shifts the bytes one position beyond that, moving the byte to the left by a total of two positions with row wrap around. Likewise, this means that the fourth row shifts the bytes to the left by a total of three positions with row wrap around.
The MixColumns operation, in a nutshell, is a linear transformation of the columns of the dataset. It uses matrix multiplication and bitwise XOR addition to output the results. The column data, which can be represented as a 41 matrix, will be multiplied against a 44 matrix in a format called the Gallois field, and set as an inverse of input and output. That will look something like the following:
As you can see, there are four bytes in that are ran against a 44 matrix. In this case, matrix multiplication has each input byte affecting each output byte and, obviously, yields the same size.
Now that we have a decent understanding of the different operations utilized to scramble our data via AES encryption, we can look at the order in which these operations execute. It will be as such:
Note: The MixColumns operation is not in the final round. Without getting into the actual math of this, theres no additional benefit to performing this operation. In fact, doing so would simply make the decryption process a bit more taxing in terms of overhead.
If we consider the number of rounds and the operations per round that are involved, by the end of it, you should have a nice scrambled block. And that is only a 16-byte block. Consider how much information that equates to in the big picture. Its miniscule when compared to todays file/packet sizes! So, if each 16-byte block has seemingly no discernable pattern at least, any pattern that can be deciphered in a timely manner Id say AES has done its job.
We know the advanced encryption standard algorithm itself is quite effective, but its level of effectiveness depends on how its implemented. Unlike the brute force attacks mentioned above, effective attacks are typically launched on the implementation and not on the algorithm itself. This can be equated to attacking users as in phishing attacks versus attacking the technology behind the service/function that may be hard to breach. These can be considered side-channel attacks where the attacks are being carried out on other aspects of the entire process and not the focal point of the security implementation.
While I always advocate going with a reasonable/effective security option, a lot of AES encryption is happening without you even knowing it. Its locking down spots of the computing world that would otherwise be wide open. In other words, there would be many more opportunities for hackers to capture data if advanced encryption standard wasnt implemented at all. We just need to know how to identify the open holes and figure out how to plug them. Some may be able to use AES and others may need another protocol or process.
Appreciate the encryption implementations we have, use the best ones when needed, and happy scrutinizing!
- Not IonQ. Not D-Wave. This Magnificent Quantum Computing Stock Is the One to Own for the Long Haul. - The Motley Fool - October 10th, 2026 [October 10th, 2026]
- UMass Professor Co-creates Toy to Help Students Grasp Quantum Computing Without Years of Math - UMass Amherst - October 10th, 2026 [October 10th, 2026]
- Quobly and SiPearl Partner to Explore European CPU-QPU Integration For Sovereign Quantum Computing - The Quantum Insider - October 10th, 2026 [October 10th, 2026]
- Error Awareness: The Key to Efficient Quantum Error Correction - D-Wave Quantum Computing - October 10th, 2026 [October 10th, 2026]
- When AI Meets Quantum: The Next Great Leap in Computing - Communications of the ACM - October 10th, 2026 [October 10th, 2026]
- University of Auckland, NIST, and UMD Demonstrate Octave-Spanning Chip-Scale Microcomb in Nature - Quantum Computing Report - October 10th, 2026 [October 10th, 2026]
- Department of War announces $350M in quantum computing initiatives - Evertiq - October 10th, 2026 [October 10th, 2026]
- IonQ Demonstrates 1 kHz Memory-Enhanced Quantum Interconnect Connecting Trapped Ions and Diamond Color Centers - Quantum Computing Report - October 10th, 2026 [October 10th, 2026]
- NTT DOCOMO BUSINESS Partners with Classiq to Expand Enterprise Quantum Software Adoption in Japan - Quantum Computing Report - October 10th, 2026 [October 10th, 2026]
- Not IonQ. Not D-Wave. This Magnificent Quantum Computing Stock Is the One to Own for the Long Haul. - Yahoo Finance - October 10th, 2026 [October 10th, 2026]
- Infinite Computing: When AI And Quantum Computing Become One - Forbes - October 8th, 2026 [October 8th, 2026]
- Fujitsu to establish quantum computing research center in NM - Office of the Governor - October 8th, 2026 [October 8th, 2026]
- Healthcare organizations are underprepared for quantum computing threats - Healthcare Dive - October 8th, 2026 [October 8th, 2026]
- NVIDIA Commits $1 Billion over Five Years to Accelerate U.S. Scientific Computing and Quantum Infrastructure - Quantum Computing Report - October 8th, 2026 [October 8th, 2026]
- Quantum Source Introduces Memory-Assisted Photonic Interconnect to Unify Multi-Modal Quantum Computing - Quantum Computing Report - October 8th, 2026 [October 8th, 2026]
- Quantum computing is delivering business value now. Heres the proof. - Fast Company - October 8th, 2026 [October 8th, 2026]
- Atom Computing Advances To Final Stage Of DARPA Quantum Benchmarking Initiative - Pulse 2.0 - October 8th, 2026 [October 8th, 2026]
- Universal Quantum raises $100m for trapped-ion quantum computing - Electronics Weekly - October 8th, 2026 [October 8th, 2026]
- NVIDIA Announces $1 Billion Commitment to Advance U.S. Science, Quantum Computing and Super Intelligence Research - Quiver Quantitative - October 8th, 2026 [October 8th, 2026]
- Nations and businesses have scaled spending on quantum computing - The Next Web - October 8th, 2026 [October 8th, 2026]
- Governor Michelle Lujan Grisham. . LIVE NOW: Governor Lujan Grisham - Fujitsu and the State of New Mexico are announcing a quantum computing... - October 8th, 2026 [October 8th, 2026]
- 2 Millionaire-Maker Quantum Computing Stocks to Buy Hand Over Fist - Yahoo Finance - October 8th, 2026 [October 8th, 2026]
- Should You Buy These 4 Quantum Computing Stocks Before 2027? - The Globe and Mail - October 8th, 2026 [October 8th, 2026]
- Quantum Elements Named Winner of TMCnets 2026 Quantum Computing Product of the Year Award - EIN News - October 8th, 2026 [October 8th, 2026]
- QuantumCT Opens 4,500 Sq. Ft. Innovation Headquarters in New Haven to Anchor Connecticut Quantum Corridor - Quantum Computing Report - October 8th, 2026 [October 8th, 2026]
- 2 Millionaire-Maker Quantum Computing Stocks to Buy Hand Over Fist - The Motley Fool - October 4th, 2026 [October 4th, 2026]
- Here's My Top Quantum Computing Stock to Buy in October - Yahoo Finance - October 4th, 2026 [October 4th, 2026]
- Cryogenic Cables Market To 2035: Quantum Computing and LNG Demand Drive Expansion - News and Statistics - IndexBox - October 4th, 2026 [October 4th, 2026]
- Quantum Computing Could Cut Industrial Emissions Without an AI-Sized Footprint, BCG Finds - The Quantum Insider - October 4th, 2026 [October 4th, 2026]
- Island's Mike Fey on how quantum computing will change the game - CNBC - October 4th, 2026 [October 4th, 2026]
- Here's My Top Quantum Computing Stock to Buy in October - The Motley Fool - October 4th, 2026 [October 4th, 2026]
- FAMU opens quantum computing lab reaching temperatures colder than outer space, backed by NSF grants - WTXL ABC 27 - October 4th, 2026 [October 4th, 2026]
- Quantum Computing Explained With Maple Syrup and Sunglasses - The Quantum Insider - October 2nd, 2026 [October 2nd, 2026]
- Quote of the day by IBM's Daro Gil: 'Not even a million or a billion of those supercomputers connected together could do the calculations of these... - October 2nd, 2026 [October 2nd, 2026]
- NEC-Led Quantum Computing Cancer Immunotherapy Joint Project Selected for NEDO Program - marketscreener.com - October 2nd, 2026 [October 2nd, 2026]
- Quantum Computing Is Getting Real. Developers Have An Opportunity. - SD Times - October 2nd, 2026 [October 2nd, 2026]
- Next-Generation Cancer Immunotherapy Using Quantum Computing Selected for NEDO Demonstration Program - waseda.jp - October 2nd, 2026 [October 2nd, 2026]
- Intel has 70 people working on quantum computing. Its CEO is betting on the next frontier - calcalistech.com - September 28th, 2026 [September 28th, 2026]
- Quantum Computing Stocks To Watch Today - September 26th - MarketBeat - September 28th, 2026 [September 28th, 2026]
- UKRI Integration of AI/HPC with Quantum Computing (UK) - fundsforNGOs - September 28th, 2026 [September 28th, 2026]
- IonQ Has Made Another Quantum Computing Breakthrough: Here's What a $1,000 Investment in It Could Look Like in 5 Years - The Motley Fool - September 26th, 2026 [September 26th, 2026]
- Mphasis and Copa Airlines Host Quantum Computing Challenge for Airline Optimization - The Quantum Insider - September 26th, 2026 [September 26th, 2026]
- This Stock May Be the Best Artificial Intelligence (AI) and Quantum Computing Investment - AOL.com - September 26th, 2026 [September 26th, 2026]
- Could Infleqtion (INFQ) Be the Ultimate Pure-Play Stock for the Quantum Computing Revolution? - Yahoo Finance - September 26th, 2026 [September 26th, 2026]
- IonQ Has Made Another Quantum Computing Breakthrough: Here's What a $1,000 Investment in It Could Look Like in 5 Years - AOL.com - September 26th, 2026 [September 26th, 2026]
- IonQ Cleared One of Quantum Computing's Biggest Hurdles. Should You Buy the Stock? - The Motley Fool - September 26th, 2026 [September 26th, 2026]
- Nvidia Partners with IonQ for Quantum Computing Initiative - Intellectia AI - September 26th, 2026 [September 26th, 2026]
- Cathie Wood Just Bought This Quantum Computing Stock. Should You Follow Her In? - The Motley Fool - September 24th, 2026 [September 24th, 2026]
- 2 Magnificent Quantum Computing Stocks to Buy and Hold for 10 Years - Yahoo Finance - September 24th, 2026 [September 24th, 2026]
- IonQ and SDT Partner on Quantum Computing and Manufacturing in South Korea - The Quantum Insider - September 24th, 2026 [September 24th, 2026]
- Quantum Computing Leaps Back Into the Scene - pro.thestreet.com - September 24th, 2026 [September 24th, 2026]
- Quantum computing ETFs are booming this year. Here's why. - Yahoo Finance - September 24th, 2026 [September 24th, 2026]
- QuEra and HPE Partner on Fault-Tolerant Quantum Computing for HPC - The Quantum Insider - September 24th, 2026 [September 24th, 2026]
- IonQ Just Nabbed a Quantum Computing Partnership with Nvidia. How to Play IONQ Stock Here. - barchart.com - September 24th, 2026 [September 24th, 2026]
- Cathie Wood Just Bought This Quantum Computing Stock. Should You Follow Her In? - Yahoo Finance - September 24th, 2026 [September 24th, 2026]
- IonQ Just Proved the Biggest Threat to Quantum Computing Scaling Was an Illusion - barchart.com - September 24th, 2026 [September 24th, 2026]
- 2 Magnificent Quantum Computing Stocks to Buy and Hold for 10 Years - The Motley Fool - September 24th, 2026 [September 24th, 2026]
- Cerebras Systems vs. Rigetti Computing: Is an AI or Quantum Computing Stock the Better Buy in 2026? - The Motley Fool - September 24th, 2026 [September 24th, 2026]
- D-Wave And Quantum Computing: Taking Profits On The Pair, Waiting For The Next Gap (QBTS) - Seeking Alpha - September 24th, 2026 [September 24th, 2026]
- Quantum computing company opening U.S. headquarters in Ballston - ARLnow - September 24th, 2026 [September 24th, 2026]
- Nvidia Partner IonQ Sparks a Quantum Computing Stock Rally Heres One Way to Invest. - barchart.com - September 24th, 2026 [September 24th, 2026]
- Should You Forget Palantir and Buy These 3 Quantum Computing Stocks Instead? - The Motley Fool - September 24th, 2026 [September 24th, 2026]
- Quantum Computing (NASDAQ:QUBT) Shares Gap Up - Here's What Happened - MarketBeat - September 24th, 2026 [September 24th, 2026]
- IonQ, Rigetti Computing, D-Wave Quantum, and Quantum Computing Inc. Are Sending Shockwaves Through Wall Street With This $895 Million Warning - Yahoo... - September 24th, 2026 [September 24th, 2026]
- What's New in Quantum Computing? Nasdaq Explores the Sector's Rise in Innovation and Investment - Nasdaq - September 24th, 2026 [September 24th, 2026]
- Should You Forget Palantir and Buy These 3 Quantum Computing Stocks Instead? - Yahoo Finance - September 24th, 2026 [September 24th, 2026]
- USA Rare Earth, Pasqal, and Riven Systems Partner to Advance Quantum ML for Critical Mineral Processing - Quantum Computing Report - September 20th, 2026 [September 20th, 2026]
- Quantum Computing Stocks Lose Their Momentumand the Lone Holdout Isn't Really a Quantum Play - ChartMill - September 20th, 2026 [September 20th, 2026]
- Prediction: This Quantum Computing Stock Is Going to Plummet Over the Next 12 Months - The Motley Fool - September 20th, 2026 [September 20th, 2026]
- Prediction: This Quantum Computing Stock Is Going to Plummet Over the Next 12 Months - Currently.com - September 20th, 2026 [September 20th, 2026]
- USAR Turns To AI, Quantum Computing To Tackle A Key Supply Bottleneck Why Its Partnership With Pasqal, Riven Systems Matters - stocktwits.com - September 20th, 2026 [September 20th, 2026]
- USAR Turns To AI, Quantum Computing To Tackle A Key Supply Bottleneck Why Its Partnership With Pasqal, Riven Systems Matters - Yahoo Finance - September 20th, 2026 [September 20th, 2026]
- Quantum Computing: Continuing To Evolve And Transition From Lab To Commerce (NASDAQ:QUBT) - Seeking Alpha - September 20th, 2026 [September 20th, 2026]
- Shark Tank Star Kevin OLeary Sets $1 Million Bitcoin Target But Theres One Quantum Computing Hurdle - CryptoRank - September 20th, 2026 [September 20th, 2026]
- Roundtable: Quantum Computing Scenario Implementation & Emergence If Quantum Computing Power Is Available Tomorrow, Who Will Be the First... - September 15th, 2026 [September 15th, 2026]
- Quantum Computing Inc. Expands Global Quantum Adoption Through New Hamad Bin Khalifa University Framework Agreement - PR Newswire - September 15th, 2026 [September 15th, 2026]
- Keynote Speech: Breaking Boundaries Quantum Computing Advances into Deep Industrial Application Waters The Next Mile of Quantum Computing | 36Kr... - September 15th, 2026 [September 15th, 2026]
- CloudHill Capital Partner Song Xuwen: Quantum Computing Advances Engineering & Industrialization in Parallel - Inflection Point Near | 36Kr 2026... - September 15th, 2026 [September 15th, 2026]
- Why Quantum Computing Could Break the Internets Security And What Comes Next - European Business Magazine - September 15th, 2026 [September 15th, 2026]
- Quantum Computing expands global quantum adoption via accord with university in Qatar - ROI-NJ - September 15th, 2026 [September 15th, 2026]