# Embed bit bit_index %= 3 bits[bit_index] = bit & 1 block[2][0] = (block[2][0] & ~1) | bits[0] block[0][0] = (block[0][0] & ~1) | bits[1] block[1][0] = (block[1][0] & ~(1 << 1)) | (bits[2] << 1)
: To retrieve the secret, a program checks if the cover pixel's value is even (LSB is 0) or odd (LSB is 1) and reconstructs the hidden image accordingly. Key Programming Concepts 9.1 4 secret image steganography