This article compares two methods for encrypting private information of the image and to make the image data highly secure. One method implements the advanced least significant bit (LSB) steganography, AES encryption, and RSA algorithm by matching data to an image, and there is much less chance of an attacker having the capacity to apply steganography analysis to recover original data. Before concealing the key in an image encrypted using AES algorithm with same key, the application first encrypts it using RSA and LSB methods (Moumen and Sissaoui in Nonlinear Engineering 6:53–59, 2017 ). The other method implements an image encryption algorithm derived from SHA-512 (Seyedzade, et al. in Iranian conference on machine vision and image processing, No. 5941167, 2010 ). In this algorithm, first equal half of data in image is used to encrypt opposite half of the image reciprocally. In order to assess performance, both the algorithms are examined to analyze the measure of the security, quality, and efficiency. These assessments consist of histogram analysis, coefficient of correlation analysis, information entropy analysis, degree of quality in encryption.