With the development in technology, data transfer of secret information plays a major role. We go for data security in order to prevent the data from hackers and malware infection. In this study, we dealt with the secret key stegnography method of hiding a plaintext in an image using a random key. The method adopted is highly secured and there is no explicit change in the original image even if long plaintext is inserted in the image.