5. Digitalization | Do You Know Web? https://philipklinga.rwu.me The place you come to learn about the internet. Mon, 01 Apr 2024 17:04:41 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 https://philipklinga.rwu.me/wp-content/uploads/2024/03/cropped-Website-logo-32x32.png 5. Digitalization | Do You Know Web? https://philipklinga.rwu.me 32 32 Bits of Secrets: Unveiling the Art of LSB Steganography https://philipklinga.rwu.me/2024/04/01/bits-of-secrets-unveiling-the-art-of-lsb-steganography/ https://philipklinga.rwu.me/2024/04/01/bits-of-secrets-unveiling-the-art-of-lsb-steganography/#respond Mon, 01 Apr 2024 17:03:30 +0000 https://philipklinga.rwu.me/?p=62 In the world of digital art, Steganography is the process of hiding messages within another medium. This is possible by modifying the least significant bit (LSB) of each pixel within the image.

The LSB holds the least weight when determining the color/intensity of a pixel. When we modify the LSB the appearance of the pixels changes insignificantly, therefore the human eye is unable recognize any difference. An image file is made up of pixels which contain three different bytes corresponding to the colors Red, Green, and Blue. LSB steganography changes the last bit to hide just one bit of data within that pixel.

Hiding text in an image is done by converting the message into binary. each letter of the message is converted to its binary code of 0s and 1s. The sender then then selects and image to be used. It is important that the image is large enough (has enough pixels) to accommodate the message without changing the image visually. Then the pixels are read into the image and the LSB is modified for each value. Once the image is saved, you now have an hidden message in your text.

LSB steganography can be utilized in many applications such as security/military purposes to copyright and watermark protection. Steganography is fascinating tool used in digital media for both art and war.

ChatGBT Prompt:

How can steganography be used to hide text in an image by modifying the least significant bit?

ChatGBT Response:

Steganography is the practice of concealing a message within another medium, such as hiding text within an image. Modifying the least significant bit (LSB) of the pixels in an image is one technique commonly used for this purpose. Here’s how it works:

  1. Binary Representation of Pixels: In digital images, each pixel is represented by binary values. In an 8-bit grayscale image, each pixel value ranges from 0 to 255, and in a 24-bit color image, each pixel typically has three color channels (red, green, and blue), with each channel represented by 8 bits.
  2. Least Significant Bit: The least significant bit (LSB) is the rightmost bit in a binary number. It holds the smallest value and contributes the least to the overall value of the pixel. Modifying this bit has the least noticeable effect on the appearance of the image.
  3. Hiding Text: To hide text within an image using LSB steganography, you can replace the LSB of each pixel with a bit from the binary representation of the text you want to hide. Since the LSB contributes the least to the pixel value, this alteration is generally imperceptible to the human eye.
  4. Encoding and Decoding: The sender encodes the text message into binary and replaces the LSB of each pixel in the image with a bit from the binary message. The receiver then extracts the hidden message by reading the LSB of each pixel in the image.
  5. Considerations:
    • The length of the text message should be small enough to be hidden within the image without significantly altering its appearance.
    • The choice of pixels to modify can affect the robustness of the hidden message against image manipulation or compression.
    • Encryption can be combined with steganography to enhance security and prevent unauthorized access to the hidden message.
  6. Tools and Software: Various software tools and libraries are available for implementing LSB steganography, including Python libraries like Stegano and OpenStego.

It’s important to note that while LSB steganography can effectively hide messages within images, it’s not foolproof, and sophisticated analysis techniques can potentially detect the presence of hidden data. Additionally, always ensure that the use of steganography complies with legal and ethical guidelines.

]]>
https://philipklinga.rwu.me/2024/04/01/bits-of-secrets-unveiling-the-art-of-lsb-steganography/feed/ 0
The Power of Pixels https://philipklinga.rwu.me/2024/03/27/the-power-of-pixels/ https://philipklinga.rwu.me/2024/03/27/the-power-of-pixels/#respond Wed, 27 Mar 2024 21:46:04 +0000 https://philipklinga.rwu.me/?p=37

A picture element, more commonly known as a pixel, is the building blocks of all thing digital. Pixels are tiny individual boxes made of single colors. When these boxes are combined, they create an image. The more pixels within an image, the more refined and realistic that image will appear.

Image credit goes to Prophoto Studio

Each pixel is assigned both a location and color value. Almost all colors can be broken down into a combination of red, green, and blue. However, A GIF (Graphic Interchange Format) is a specific file format for an image which utilizes binary digits of 0s and 1s to represent each color. All the colors of the rainbow are assigned a specific number value which lets the pixel know what color to display. This means that when you are looking at a GIF, you are really seeing the colorful representation of 1s and 0s.

As we learned in lecture, bit depth is the concepts that helps create digitals images using pixels. Firstly, a bit or binary digit represents the values of 1s and 0s. Bit depth, in the words of Al Cutting, is the number of bits behind each pixels. When creating different types of images in different formats, there are will be a different amount of bits behind each pixel. For example, GIFs have a maximum of 8 bits behind each pixel limiting these images to only 256 colors. JPEGs there can be up to 24 bits behind each pixel, allowing for more 16 million colors. The more bits behind each pixel, the more colors that can be used for that image. However, more bits also increases the size of the file, so it is important to keep that in mind when creating images.

Image credit goes to Cloudinary Glossary

Just to recap, pixels are the puzzle pieces which make up all digital imagery. Without them, all computers would be blank screens. Pixels carry a code of 0s and 1s called bits, which represent a variety of colors to control how an image is perceived. The number of bits inside each pixel is referred to as the bit depth and determines how many colors we can have. All in all, these concepts work together to make up the digital world.

]]>
https://philipklinga.rwu.me/2024/03/27/the-power-of-pixels/feed/ 0