This paper presents a technique for digital watermarking that involves encrypting and compressing data into images using variable-length keys through arithmetic coding. The process includes encoding characters into floating point numbers and embedding the resulting data bits in nonlinear pixel positions of an image. It details encryption and decryption algorithms, providing a structured approach to hiding information within digital media while maintaining the integrity of the original image.