title: Extract hidden text from bmp image
body: <pre><code>f = open("ship.bmp", 'rb')
  data =f.read()[14:]
  f.close()
  mask=0b00000011
  
  for byte in data:
      new_byte=mask&amp;byte
  </code></pre>
  
  <p>This is my code so far. I am trying to extract the hidden text from the ship.bmp. I have made a byte array until know as you can see and now i want to extract the last 2 bits from each byte and reassemble the two bits fragments into bytes of the hidden text and output it. I tried to this by masking the bytes but i guess i was doing it wrong. If someone could help me it would be really appreciated. I posted many questions in here sorry about that but i really want to get done with this.</p>