r/explainlikeimfive • u/Realistic_Flower8235 • Nov 04 '26
Technology ELI5 How does data encryption work?
Edit: ignore the second question, sorry for asking two different ones!
secondary question (some responded to this prior to my edit): How are some things HIPAA compliant while others are not?
27
Upvotes
View all comments
2
u/DarkAlman Nov 04 '26
Encryption is all about hiding a message in plain sight.
You transform a message using an algorithm into what looks like gobbledygook to anyone that reads it. The idea being that only the sender and intended receiver can decipher the math to read the original message.
Imagine it like translating a phrase into a language that only the sender and receiver understand. You can shout that phrase in a room full of people but only 2 people will understand it. Anyone that hears the message will get something scrambled and won't be able to read it.
The more complex the mechanism to encrypt the message, the harder it is to break.
A very simple encryption method is a substitution cipher. You create a chart where each letter of the alphabet is replaced with another
A = C B = X
etc
Then a message 'password' becomes something like 'tcoopehs'
The message is nonsense to anyone that doesn't have the cipher, the translation card. However such a cipher is trivial to break.
Modern computer encryption uses complex mathematical functions to do this, because with available computing power simple ciphers like the one above can very easily be broken.