Steganography is the practice of concealing a message or data inside another file, such as an image or audio recording, rather than encrypting it into an unreadable format. Unlike cryptography, steganography hides the very existence of the message, making it far less likely to attract scrutiny.
Steganography
With encryption, we're actually taking data and converting it into some sort of code. With steganography, what we're doing is hiding our message inside of something else.
Steganography is the art of hiding some sort of message or information inside something else. An example might be that we have some sort of secret message and we're hiding it inside a picture.
So here's what that looks like. We have a secret and we're going to hide it. Cryptography says that we are going to convert that into some sort of code that can be decoded later, or that we're going to encrypt it and then it's going to be decrypted later. Steganography means that we're concealing it inside something else.
Maybe it's a message. This is an example where this secret is actually inside this little sentence right here. In fact, we can play a little bit of a game here. See if you can find the word secret embedded inside this message right here. It's embedded in a certain way, so it's very definitive on seeing the word secret in there, but how is it?
Here's the answer. The way it was embedded was the first letter of every second word spells out the word secret. So, did you get it right?
If we want to embed a message into a picture, it could be something as even like a sign in the background of the picture that we're looking at and you derive information from there. Or it could be even using the bits of the picture itself. So let's take a look at how we'd actually embed a binary message inside a picture.
A picture actually has a lot of bits to it, and the bigger the picture, the more the bits. It takes a lot of bits in order to represent what a picture is going to look like. A picture is represented in colors, and those colors are going to be represented by binary numbers in how much red, how much green, how much blue, the higher the binary number. So this right here says that it has a lot of blue in it, it has quite a bit of green, and it has a little bit less red in it.
When you're looking at a binary number, and we won't get too in depth into this, the more significant bits are to the left, just as it is with decimal, and the least significant bits are to the right. So we could actually flip this one to a zero right here, or flip this 0 to a 1, without drastically altering any color. It would be a very small change in the color, it would be hardly noticeable at all. So we can take these little bits and we can flip them depending on what our message is that we're trying to convey.
This is a little more of what a picture might look like. We would have all these bits, and this would be a really small picture that this would represent right here, and then every eighth bit could be our secret message that we're encoding in it.
There are pros and cons to using this method. With cryptography, you have some sort of code that you're passing back and forth. The problem with this is if I were to see a code, I would say, hm, I wonder if I could break the code, and then start trying to work at breaking the code. It's pretty obvious that this is going to be a coded message that's going to go back and forth.
With steganography, if I'm looking at a picture, I don't necessarily know that there's something embedded in it, and so the code could be much more breezed over, and I'm not even going to attempt to try to find a code in it, because it's just a picture. Now, that being said, once I did know, it might actually be easier for me to extract that code and figure out what it's saying.
So maybe what I can do, if I want a secret code that doesn't look like a code, is I could combine these two. I could have cryptography give me some sort of code, and I can embed that into a picture and send it. It doesn't have to be a picture, it could be an audio file. The audio file is also information rich, and we could flip some non-significant bits and we could encode a message and send it that way. Or there are other methods of sending this as well.
TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.
Explore free tools and programs →