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!
- IBM says 'Loon' chip shows path to useful quantum computers by 2029 - Reuters - November 14th, 2025 [November 14th, 2025]
- Prediction: Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum Will Plunge 50% (or More) in 2026 - Nasdaq - November 14th, 2025 [November 14th, 2025]
- Why quantum computing teams at JPMorgan and other banks are being outshined by AI - eFinancialCareers - November 14th, 2025 [November 14th, 2025]
- Quantum computing pure plays duel with giants, rivals - Constellation Research - November 14th, 2025 [November 14th, 2025]
- Quantum Computing Inc (QUBT) Q3 2025 Earnings Report Preview: What to Expect - Yahoo Finance - November 14th, 2025 [November 14th, 2025]
- Quantum Computing Pure-Play Stocks IonQ, Rigetti Computing, D-Wave Quantum, and Quantum Computing Inc. Just Issued a $749 Million Warning to Wall... - November 14th, 2025 [November 14th, 2025]
- Quantum computing stocks are surging but short-seller Andrew Left is still betting against them - Business Insider - November 14th, 2025 [November 14th, 2025]
- This Blue Chip Company Just Announced Quantum Computing 'Breakthroughs.' Its Stock Hit a New High - Investopedia - November 14th, 2025 [November 14th, 2025]
- IBM Just Announced a Massive Jump In Quantum Computing. These Industries Will Benefit Most - Inc.com - November 14th, 2025 [November 14th, 2025]
- What security teams should do to prepare for the quantum computing future - CyberScoop - November 14th, 2025 [November 14th, 2025]
- Commit To Buy Quantum Computing At $5, Earn 30% Using Options - Nasdaq - November 14th, 2025 [November 14th, 2025]
- Is Quantum Computing Stock IonQ Headed to $60? History Offers a Clear Warning About What Could Happen Next - The Motley Fool - November 14th, 2025 [November 14th, 2025]
- Exploring the Impact of Quantum Computing on Financial Risk Management - CIO Applications - November 14th, 2025 [November 14th, 2025]
- IBM Pushes Ahead in the Quantum Computing Race - The Motley Fool - November 14th, 2025 [November 14th, 2025]
- Breaking Quantum Computing Stock News That IonQ, Rigetti Computing, and D-Wave Investors Can't Afford to Miss - The Motley Fool - November 14th, 2025 [November 14th, 2025]
- POET, Quantum Computing team up on 3.2 Tbps optical engines for next-gen AI networks (POET:NASDAQ) - Seeking Alpha - November 11th, 2025 [November 11th, 2025]
- POET Technologies and Quantum Computing Inc. to Co-Develop 3.2 Tbps Optical Engines for CPO and Next-Gen AI Connectivity - PR Newswire - November 11th, 2025 [November 11th, 2025]
- Breaking Quantum Computing Stock News That IonQ, Rigetti Computing, and D-Wave Investors Can't Afford to Miss - Yahoo Finance - November 11th, 2025 [November 11th, 2025]
- Rigetti EPS Preview: Betting on the Future of Quantum Computing - Nasdaq - November 11th, 2025 [November 11th, 2025]
- This Super Micro Computer Rival Is Betting Big on Quantum Computing. Should You Buy Its Stock Now? - Yahoo Finance - November 11th, 2025 [November 11th, 2025]
- Nvidia's Quiet Move Into Quantum Computing Could Reshape the Next Frontier of AI - The Motley Fool - November 11th, 2025 [November 11th, 2025]
- SkyWater Technology (SKYT): Assessing Valuation After Earnings Beat and Quantum Computing Partnership - Yahoo Finance - November 11th, 2025 [November 11th, 2025]
- Quantum Computing (NASDAQ:QUBT) Shares Down 6% - Here's What Happened - MarketBeat - November 11th, 2025 [November 11th, 2025]
- IonQ's Operating Results Highlight a Grim Reality for Quantum Computing Stocks Rigetti Computing and D-Wave Quantum - Yahoo Finance - November 11th, 2025 [November 11th, 2025]
- IBM, IBD Stock Of The Day, Near Buy Point Amid AI Software, Quantum Computing Push - Investor's Business Daily - November 11th, 2025 [November 11th, 2025]
- Amazon Just Ditched Its Stake in IonQ Stock. Should You Bail on the Quantum Computing Leader Too? - Barchart.com - November 11th, 2025 [November 11th, 2025]
- Quantum Computing Q3 Earnings Preview: What To Expect From Upcoming Report - GuruFocus - November 11th, 2025 [November 11th, 2025]
- IonQ's Operating Results Highlight a Grim Reality for Quantum Computing Stocks Rigetti Computing and D-Wave Quantum - The Motley Fool - November 11th, 2025 [November 11th, 2025]
- Rigetti EPS Preview: Betting on the Future of Quantum Computing - Yahoo Finance - November 11th, 2025 [November 11th, 2025]
- IonQ and University of Chicago Partner to Deploy Production-Grade Quantum Computer and Entanglement Network - Quantum Computing Report - November 11th, 2025 [November 11th, 2025]
- Equal1 to Cooperate on Hybrid Quantum Computing System With The European Space Agency - The Quantum Insider - November 11th, 2025 [November 11th, 2025]
- BTC News: How To Avoid The Quantum Computing Threat With Your Bitcoin, According To Analyst - Live Bitcoin News - November 11th, 2025 [November 11th, 2025]
- IonQ Is Advancing Its DARPA Collaboration. Should You Buy the Quantum Computing Stock Here? - Barchart.com - November 11th, 2025 [November 11th, 2025]
- POET Technologies And Quantum Computing Team Up To Boost AI Data Speeds - Stocktwits - November 11th, 2025 [November 11th, 2025]
- Does IonQ's $3.5 Billion Cash Hoard Make It the Most Dominant Force in Quantum Computing? - The Motley Fool - November 11th, 2025 [November 11th, 2025]
- POET Technologies and Quantum Computing to Co-Develop 3.2Tbps Optical Engines - TradingView - November 11th, 2025 [November 11th, 2025]
- Quantum Computing Modules Enhance Statistical Physics Education with Simulations of Random Walks and the Ising Model - Quantum Zeitgeist - November 11th, 2025 [November 11th, 2025]
- POET Technologies (POET) Partners with Quantum Computing for Adv - GuruFocus - November 11th, 2025 [November 11th, 2025]
- You Won't Believe What Elon Musk Just Said About Quantum Computing (Spoiler Alert: It's Good News) - Yahoo Finance - November 3rd, 2025 [November 3rd, 2025]
- Prediction: This Stock Will Be the Ultimate Quantum Computing Winner - Yahoo Finance - November 3rd, 2025 [November 3rd, 2025]
- 3 Top Quantum Computing Stocks to Buy in 2025 - Yahoo Finance - November 3rd, 2025 [November 3rd, 2025]
- History wont forgive us if UK falls behind in quantum computing race, says Tony Blair - The Guardian - November 3rd, 2025 [November 3rd, 2025]
- Quantum Computing Inc. to Host Third Quarter 2025 Shareholder Call on Friday, November 14, 2025 - Yahoo Finance - November 3rd, 2025 [November 3rd, 2025]
- 2 Popular Quantum Computing Stocks to Sell Before They Fall 41% and 54%, According to Select Wall Street Analysts - The Motley Fool - November 3rd, 2025 [November 3rd, 2025]
- 2 Popular Quantum Computing Stocks to Sell Before They Fall 41% and 54%, According to Select Wall Street Analysts - Yahoo Finance - November 3rd, 2025 [November 3rd, 2025]
- Prediction: This Stock Will Be the Ultimate Quantum Computing Winner - The Motley Fool - November 3rd, 2025 [November 3rd, 2025]
- An Epic Reversal Is Coming for Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum, Based on a Time-Tested Indicator - Nasdaq - November 3rd, 2025 [November 3rd, 2025]
- You Won't Believe What Elon Musk Just Said About Quantum Computing (Spoiler Alert: It's Good News) - The Motley Fool - November 3rd, 2025 [November 3rd, 2025]
- NISQ to FASQ Quantum Computing Still Faces a Climb From Promise to Practicality - The Quantum Insider - November 3rd, 2025 [November 3rd, 2025]
- Quantum computing on the verge: correcting errors, developing algorithms and building up the user base - Physics World - November 3rd, 2025 [November 3rd, 2025]
- 3 Top Quantum Computing Stocks to Buy in 2025 - sharewise.com - November 3rd, 2025 [November 3rd, 2025]
- Prediction: This Stock Will Be the Ultimate Quantum Computing Winner - Nasdaq - November 3rd, 2025 [November 3rd, 2025]
- Quantum Computing Stocks D-Wave, IonQ, and Rigetti Talk With Trump Administration About Equity Stakes. Is It Time to Buy? - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- FinovateEurope 2026: AI, Cybersecurity, Stablecoins, Quantum Computing and More! - Finovate - October 28th, 2025 [October 28th, 2025]
- Quantum Computing Stocks Soar on Government Stake Talks. Why IonQ Is a Buy. - Yahoo Finance - October 28th, 2025 [October 28th, 2025]
- Rigetti Computing (RGTI): Assessing Valuation Following a Strong Year for Quantum Tech Shares - simplywall.st - October 28th, 2025 [October 28th, 2025]
- How quantum computing could become the next frontier in national security - oodaloop.com - October 28th, 2025 [October 28th, 2025]
- Quantum Computing Stocks D-Wave, IonQ, and Rigetti Talk With Trump Administration About Equity Stakes. Is It Time to Buy? - Nasdaq - October 28th, 2025 [October 28th, 2025]
- How quantum computing could become the next frontier in national security - MarketWatch - October 26th, 2025 [October 26th, 2025]
- IonQ, Rigetti, Other Quantum-Computing Stocks Jump on U.S. Stake Interest - The Wall Street Journal - October 26th, 2025 [October 26th, 2025]
- 3 Quantum Computing Stocks That Could Be Once-in-a-Lifetime Investment Opportunities - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- This Quantum Computing Stock Is Up 3,000% Over the Last Year, and the CEO Just Cashed Out. Are Retail Investors Fueling a Bubble? - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- This Quantum Computing Stock Is Up 3,000% Over the Last Year, and the CEO Just Cashed Out. Are Retail Investors Fueling a Bubble? - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- Billionaires Bill Ackman, Izzy Englander, and David Tepper Own These 2 Quantum Computing Stocks. Should You? - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- Google Unveils Quantum Computing Breakthrough on Willow Chip - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- Trump Wants in on Quantum Computing. Will RGTI, QBTS, IONQ, or QUBT Win? - Yahoo Finance - October 26th, 2025 [October 26th, 2025]
- 3 Quantum Computing Stocks That Could Be Once-in-a-Lifetime Investment Opportunities - AOL.com - October 26th, 2025 [October 26th, 2025]
- Quantum Computing Investment Boom: Can D-Wave Become the Next Nvidia? - NAI500 - October 26th, 2025 [October 26th, 2025]
- Trump eyes government control of quantum computing firms with Intel-like deals - Ars Technica - October 26th, 2025 [October 26th, 2025]
- Here Is the Easiest Way for Investors to Gain Exposure to the Quantum Computing Theme - The Motley Fool - October 26th, 2025 [October 26th, 2025]
- Quantum Computing Stocks Surge On Reports of Trump Administration Equity Talks - Yahoo - October 26th, 2025 [October 26th, 2025]
- Exclusive | Trump Administration in Talks to Take Equity Stakes in Quantum-Computing Firms - The Wall Street Journal - October 24th, 2025 [October 24th, 2025]
- Quantum computing and AI join forces for particle physics - Physics World - October 24th, 2025 [October 24th, 2025]
- This Is the Biggest Threat to Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum That Virtually No One Is Talking About - Nasdaq - October 24th, 2025 [October 24th, 2025]
- Quantum Computing Stocks Soar on Government Stake Talks. Why IonQ Is a Buy. - The Motley Fool - October 24th, 2025 [October 24th, 2025]
- Quantum computing firms jump after report of US government stake talks - Reuters - October 24th, 2025 [October 24th, 2025]
- What is quantum computing, and why are Big Tech and Washington interested in it? - Yahoo Finance - October 24th, 2025 [October 24th, 2025]
- D-Wave Quantum (QBTS) Expands European Presence With 10M Quantum Computing Initiative in Italy - Yahoo Finance - October 24th, 2025 [October 24th, 2025]
- US Weighs Quantum Computing Boost in Effort to Counter China - Bloomberg.com - October 24th, 2025 [October 24th, 2025]
- This Is the Biggest Threat to Quantum Computing Stocks IonQ, Rigetti Computing, and D-Wave Quantum That Virtually No One Is Talking About - The Motley... - October 24th, 2025 [October 24th, 2025]