In this paper, a technique for hiding a message into digital images (256 gray levels) is proposed. Some tests, on the proposed technique, are done by applying the technique in hiding messages into some images. From the recorded results, we can note that the proposed watermarking technique introduces, in many cases, a reasonable way that can be used to hide secret messages in the digital images.