The use of mathematical concepts of mapping in cryptography provides advantages in securing text or image data. The qualitative properties of mapping can preserve data that is kept confidential. Two of the essential properties in the mapping are the reversible and the preserving area. In this article, besides constructing a linear mapping derived from a second-order QRT difference equation and examining its qualitative properties, the coding procedure is used to encrypt text and fractal images based on the two-dimensional linear maps. For the digital text and image security algorithms, we developed the pseudo code algorithm implemented in Mathematica®. The proposed encoding technique will be compared with a 2D mKdV linear map to demonstrate its efficacy.