Enhanced payload volume in the least significant bits image steganography using hash function

The art of message masking is called steganography. Steganography keeps communication from being seen by any other person. In the domain of information concealment within images, numerous steganographic techniques exist. Digital photos stand out as prime candidates due to their widespread availability. This study seeks to develop a secure, high-capacity communication system that ensures private interaction while safeguarding information from the broader context. This study used the four least significant bits for steganography to hide the message in a secure way using a hash function. Before steganography, the message is encrypted using one of the encryption techniques: Caesar cipher or Vigenère cipher. By altering only the least significant bits (LSBs), the changes between the original and stego images remain invisible to the human eye. The proposed method excels in secret data capacity, featuring a high peak signal-to-noise ratio (PSNR) and low mean square error (MSE). This approach offers significant payload capacity and dual-layer security (encryption and steganography).


INTRODUCTION
Today, the internet plays a vital role.Internet security and online communication are essential topics that catch people's attention.Since humans are social by nature, we talk to each other in various situations.Everyone has their favorite way of communicating, and sometimes we share private information with the people we mean to share it with Delenda & Noui (2018).The demand for ensuring the authenticity of data and finding efficient methods to protect its integrity has been on the rise.This requirement has gained greater significance owing to the inherent simplicity of altering digital data.In this context, steganography can replace encryption and watermarking for safer data transmission and to maintain privacy (Shyla, Kumar & Das, 2021).Data transmitted between a sender and recipient gains enhanced security through steganography and cryptography.Steganography involves concealing sensitive information within public files to avoid visual detection.Previous studies (Islam et al., 2021;Khan et al., 2016) reveal steganography's capacity to obscure unusual information within confidential or secret content.It is important to note that steganography and cryptography can sometimes be confused as they influence how personal information is managed.Their crucial distinction lies in steganography's use of sensitive data, while the other technique seemingly lacks concealment.This distinction resonates with the notion that individuals and groups often avoid engaging with information they believe is confined within them (Voleti et al., 2021).The term "steganography," with its roots in Greek, originates in "Steganos."This name is formed by combining "secret" and "graphic," which symbolize the concept of "writing." On the other hand, steganography hides data like an image, text, video, or piece of music.It's commonplace to use the words "steganography" and "cryptography" interchangeably.Watermarking verifies the message's integrity, steganography hides it, and cryptography muddles it.Before concealing in steganography, select a suitable carrier.Choosing a trustworthy steganographic technique that can encrypt genuine information is necessary.The secret message can then be delivered to the recipient via any modern communication method by the sender.When the message is received, the recipient should use the proper extraction process to uncover the hidden information.A range of appropriate steganographic techniques is used to ensure security, depending on the kind of carrier (Sasmal & Mula, 2021).These are as follows.
Video steganography: As the security requirements for transmitting secret messages become more stringent and video becomes more popular.Video steganography is increasingly important as a study field in various data-concealing technologies.Image steganography: Employing an image as the cover object for steganography.The majority of these techniques use the image's pixel intensities to mask the information.Network protocol steganography: A network protocol, like TCP, UDP, ICMP, or IP, is used as a cover object in network protocol steganography.In this situation, steganography can be achieved using unused network protocol header bits.Text steganography: employs various methods, such as upper-case letters, white spaces, and the number of tabs, which is akin to Morse code, to disguise information.Audio steganography: Audio as a carrier for information concealment is known as audio steganography.Due to its ubiquity, voice-over-Internet protocol (VOIP) has become a significant medium.Digital audio formats used in this steganography include WAVE, AVI, MIDI, MPEG, and others.
The following elements make up the fundamental building blocks of steganography.

1) Cover image:
The cover image conceals secret information.It hides images or data.
2) Secret image: The "secret image" is the picture or information that needs to be hidden in the "cover image."It can be any picture, word, or other digital data meant to stay secret.
3) Stego image: Steganographically integrating the secret image or information into the cover image creates the stego image.The stego image resembles the cover but conceals information.
4) Embedding and extracting algorithms: The embedding algorithm embeds the hidden picture or data into the cover image without being noticeable.The complementary extraction method recovers the secret picture or data from the stego image.

5)
Stego key (optional): Some steganographic systems employ stego keys.The embedding and extracting methods use the stego key.It may secure, authenticate, or restrict access to concealed information.
Image steganographic algorithms are assessed using three key criteria (Ahmad et al., 2022).
Security: Steganographic algorithms must be secure.It tests the algorithm's ability to hide secret information and withstand assaults and discovery.The algorithm should protect embedded data from unauthorized access.Statistical analysis, ocular examination, and steganalysis are widely used to assess algorithm security.
Capacity: The amount of secret data concealed in the cover image is called capacity.It tests the algorithm's ability to hide much information in the cover image without degrading the visual quality.The algorithm's data embedding rate, secret payload size, and image quality are evaluated to determine capacity.
Robustness: Robustness is a steganographic technique's ability to survive image processing, transmission problems, and assaults without losing data.A robust steganographic approach should preserve and retrieve secret information even after standard procedures or distortions.
Since the limited payload capacity sends a low-quality image to the receiver side, this results in a loss of information at the receiver's end, leading to unclear embedded images.Therefore, it is imperative to incorporate high payload data on the sender's side.Consequently, transmitting high-quality images becomes achievable on the receiver's side (Zheng et al., 2016).
Therefore, in this article, we proposed a data-embedding approach: To enhance the payload and To secure confidential information in a specified way in the cover image with the slightest modification.
The cover image's quality is undetectable to the human eye.
The rest of the article is structured as follows."Related Work" describes related work.The suggested strategy is given in "Proposed Approach"."Experimental Description And Results" presents the experiments and findings.The article is concluded in "Conclusion".

RELATED WORK
Protecting systems and data is vital due to complex software packages and evolving technologies that threaten data security, integrity, and availability.In Ali, Sohrawordi & Uddin (2019), the author proposed a unique steganography technique inside RGB shading space to enhance security over existing solutions.The authors employ various picture quality assessment procedures, such as MSE, MAE, PSNR, SSIM, and NCC (normalized correlation coefficient).The results demonstrate strength, invisibility, and security compared to earlier techniques.The suggested method obtained an average score of 03.67% better for PSNR correlation.In Rahman et al. (2020), the authors present a steganography categorization scheme for professional and non-professional domains.Steganography involves essential factors like SSIM, NCC, image fidelity (IF), and resilience.Examining Stego images, payload, MSE, and correlation brings to light interrelated challenges and their significance.This study aims to investigate and contrast various steganography algorithms utilizing traits like PSNR, MSE, and robustness.In Dhawan & Gupta (2021), the authors divided steganography into technical and nontechnical categories and categories based on its use.The study aims to evaluate and contrast various steganography algorithms utilizing parameters including resilience, PSNR, and MSE.Based on these features and analysis of all issues, this study recommends enhancing a steganography system, aiming for stego images of exceptional quality, increased payload capacity, and improved reliability.In Charan et al. (2015), the author suggests an innovative method that involves converting ordinary text to encrypted text and then inserting it into a colour picture.There are two phases to the encryption process: the 1 st phase uses the Caesar cipher method, and the 2 nd uses chaos theory.The 3, 3, 2 LSB replacement procedure is used to incorporate the cipher text retrieved after encryption.
In Wade et al. (2019), the authors compared the stego and cover images using the following metrics: peak signal-to-noise ratio, CPU time, mean square error, histograms, structure similarity index measures, and feature similarity index measurements.Their research and experiments reveal that their proposed approach is faster and more efficient than traditional LSB methods.In Muhammad et al. (2015), the authors show how grayscale modification (GLM) is used to hide secret information in the cover image and how multilevel encryption (MLE) encodes the secret data.In the GLM technique, the current pixel stays intact if the sensitive bit is zero and the cover pixels exist even, or vice versa.If there is an odd number of cover pixels and the secret bit is 0, then the current cover pixels decrease by 1.If the number of cover pixels is even and the secret bit is greater than 1, then the current cover pixel quantity is increased by 1.The embedded payload is relatively small, yet this strategy improves the PSNR of the stego image.
In Shehzad & Da g (2019), the authors proposed a method in which the cover image is split into four-pixel chunks that do not overlap (2 × 2).Each block's decimal numbers are used to compute the determinant value for that block.A hidden data bit is inserted into a block of pixels using the determinant method.The determinant method used only one block to hide one secret data bit.This technique enhances the stego image quality but has a limited embedding capacity since only one bit may be hidden per block.In Muhammad et al. (2017), the authors concealed secret information in the cover image using stego keydirected adaptive least significant bit (SKA-LSB) replacement and the Multilevel Encryption Algorithm (MLEA) to encrypt confidential information.SKA-LSB performs an XOR operation on the cover pixel's red channel key and LSB.If the sum of the remaining bits is 1, include the secret information bit in the LSB of the green channel.If not, have the confidential information to the LSB of the blue channel.Encapsulation of secret information is only one bit per pixel, but this strategy increases his PSNR value for stego images.
In Kuo, Kuo & Wuu (2015), the Run-Length Encoding (RLE) methodology and the Multi-Bit Generalised Exploding Modification Direction (MGEMD) algorithm were suggested by the authors as a way to conceal information concealed in the cover picture.In Liu, Chang & Chien (2017), the authors proposed a revolutionary approach that relies on LSB substitution and places two bits of hidden data into one cover pixel following the mapping strategy.Three bits are modified in the cover pixel.By using this method, the stego image quality is improved by PSNR 49.04 dB.In Hong (2018), the authors utilize the modified quantization level approach to its fullest extent to enhance stego image performance and effectiveness.This technique divided blocks into easy and complicated blocks using a particular threshold.Smooth blocks hold more sensitive data, but complex blocks only store one bit per block.The Adaptive Pixel Pair Matching (APPM) technique reduces distortion by modifying the block.This method's flaw is its low embedding capacity, 32.27 dB PSNR.
In Setiadi & Jumanto (2018), the authors proposed a hybrid approach combining the Canny and Sobel edge detection algorithms.Edge detection methods Sobel (S) and Canny (C) are utilized to locate the edges of the cover image.The result is saved as CSea by combining the outputs of both algorithms.The LSB approach inserts hidden bits in the cover image's structuring element.If the edge area does not have enough space to display the hidden message, the secret information will be kept in a smooth place.Although the embedding capability of secret data in cover images is quite limited, this strategy does increase the quality of stego images.In Islam et al. (2016), the authors proposed a method in which the colour area of the cover pixels is divided into high and low levels.Cover pixels contain more hidden bits of the low-level colour spectrum than high-level colour pixels.When the pixel ranges lie between 0-31, 32-63, 63-127, and 28-155, respectively, Cover pixels contain secret data of size 4, 3, 2, and 1 bit.This approach enhances the PSNR value of the stego image, but the embedded payload of the hidden info is minimal.In Shehzad & Dag (2017), the authors proposed a method that splits cover pixels' 3-7 MSBs into four pairs of two bits and secret information bits into pairs of two bits.The matching pair number adjusts each cover image's two LSBs after comparing one secret pair with each of the four covering pixels.This method raises the stego image's PSNR value.In Khalind & Aziz (2013), the authors introduced a technique that divides a cover image into edge and smooth pixels, each holding varying levels of information.This method calculates an adaptive parameter K for each pixel to include hidden details, influencing the stego image's quality.The value of K affects PSNR, resulting in high PSNR for low K values when embedding secret information in the cover image and vice versa.In Mohammed & Mohamed (2016), the authors used a straightforward LSB substitution method; secret information is inserted into cover pixels dependent on the value of a variable K ranging from 2 to 5.This method replaces the K LSBs of the cover pixel's K secret data bits.The value of the variable K determines the stego image's quality.PSNR will be small if secret information bits are covered up with a large value of K, and vice versa.Based on PVD and LSB, in Lu & Lu (2017), the authors proposed a method to divide a grayscale image into 1, 2, and 3 predetermined blocks of every three pixels to improve the embedding capacity.The FPPD approach (five-pixel pair difference) with a fixed block size of 2 × 3 is enhanced by this method.Using the FPPD technique, the stego image quality is adequate, but the secret information payload is improved to three bits per pixel.In Swain (2016), the authors separate the covering pixels into blocks of four pixels that do not overlap (2 × 2).
The hybrid PVD/LSB Substitution technique incorporates the secret data in the cover picture.Although the confidential information encapsulates less than one bit per pixel, this strategy increases the stego image's PSNR value.In Liao, Wen & Zhang (2011), the authors split the cover image into 4 × 4 non-overlapping sections.The four sub-blocks that comprise each block are top left, bottom left, top right, and bottom right.Every subblock has four pixels (2 × 2).As a result, the edge and sleek pixels are separated from each block's pixels.The edge area pixels contain more hidden bits than the non-area pixels.The embedding payload and tolerable PSNR are both improved.
In Hussain et al. (2018), the authors split the cover pixels into blocks of high-level and low-level pixels.Each of the four Subblocks Each method (pixel value difference, PVD shift, prediction error correction, and MPE) used to embed the encrypted information into the high-level block has its strengths and weaknesses.The LSB alteration embeds the scrambled information in the sub-blocks that make up each block (top left, bottom left, top right, bottom right).The secret data payload's resistance to attacks is increased with this technique while keeping adequate stego image quality.In Tseng & Leng (2014) author scales the cover image using an interpolation algorithm and employs LSB replacement to cover up secret information.The user can zoom in or out on his cover photo to better embed sensitive information in the cover photo.This technique enhances the embedding payload while maintaining decent PSNR.
In Khodaei, Sadeghi Bigham & Faez (2016), the authors split the covering pixels into two-bit blocks that follow one another without overlapping.The secret data is inserted into the cover image via LSB replacement if both pixels in the block have the lowest value.Otherwise, his PVD of two pixels is calculated.After that, the secret information is placed in the cover pixels using LSB substitution and the PVD value.This technique enhances stego image quality while also improving the embedding payload.In Bai et al. (2017), using an edge detection technique, the authors divide the cover pixels into "edge and smooth pixels areas".The LSB replacement approach then includes concealed information in the cover picture.Compared to a smooth region, the edge area's pixels are employed to carry additional hidden bits.This technique enhances the hidden data payload while maintaining high-quality stego images.In Zakaria et al. (2018), the author splits the cover pixel's MSBs into two pairs of two bits and secret message bits into pairs of two bits.Four possible matches between secret and pixel pairs are created by comparing two pairs of cover pixels with two pairs of secret data.The cover image's two lower-case LSBs are modified according to the matched pair number.With strong PSNR, this technique increases the ability to insert hidden data in cover images.In Hamza et al. (2021), the authors developed a hybrid steganography approach that uses LZW compression to compress data in the first phase, and then the AES cryptographic algorithm is used.Image steganography based on pattern matching is developed using LSB substitution.Four pairs of cover pixels and four pairs of two-bit secret information are compared to generate 16 potential matching instances.Each pixel's four LSBs are adjusted according to how closely the two numbers match.This method can carry eight hidden data bits within a pixel, eight or 10 secret data bits between two pixels, and, at worst, four hidden data bits between two pixels.

PROPOSED APPROACH
The suggested strategy uses two things-message encryption techniques and embedding algorithms.

Massage encryption technique
A variety of cryptographic algorithms are utilized to secure the data.Some standard encryption techniques include: Symmetric-key cryptography: When a secret key is used for encryption and decryption operations, the technique is called symmetric key cryptography, also called symmetric encryption.Symmetric encryption is the most common type in email and online banking applications.The advantage of using a symmetric key is that it is easy to encrypt and decrypt data using the same key.Additionally, symmetric-key cryptography is relatively simple to implement, making it a good choice for applications without critical security.However, symmetric-key cryptography has one major drawback: it can be easily hacked if the key is compromised.

CaEsAr cipher
A kind of symmetric-key cryptography known as the Caesar cipher employs a substitution cipher.Established in the 1st century BC.Created by Julius Caesar and is still in use today.
To make a text message difficult to interpret, the Caesar cipher, which bears the name of its creator, operates by replacing arbitrary words with the message's characters.Caesar cipher Considered one of the safest ways available, this encryption safeguards critical information like passwords and bank data.This method shifts each character in the message by the number of alphabetic positions.Shift three, and the letter b becomes an e. 1) Get the secret massage 2) Use the encoding algorithm (Caesar cipher)

Vigenère cipher
A polyalphabetic substitution cipher known as the Vigenère cipher replaces every alphabetic letter with a distinct letter using a table of key values, as illustrated in Fig. 1.Francesco Vigenère devised an algorithm for it in 1,694, and his name was given to the cipher.Polyalphabetic ciphers are less vulnerable to cryptanalysis.The polyalphabetic cipher is ideal for encrypting material that parties outside the sender and recipient will read.The Vigenère cipher, constructed on a straightforward replacement algorithm, substitutes one of the 26 continuous letters of the alphabet for every letter of the alphabet.The initial stage of encryption of a message using this cipher is to select key values (26 total) that specify the characters to replace corresponding characters in the message.
The table below shows key values and associated characters for both English and Latin scripts.
Asymmetric-key cryptography: To prevent unauthorized access or use, asymmetric cryptography, often known as public-key cryptography, encrypts and decrypts data using a pair of related keys (a private key and a public key).

Hash function
Hash functions are mathematical procedures for identifying any object with a unique identifier.A hash function produces a consistent-length output derived from an input.Each input processed by a hash function yields a unique output.The identical hashing technique for generating the identifier can also validate data integrity.This attribute proves advantageous in various applications, including file identification, database access, and password hashing.
This article employs a security approach centered around a hash function.The method utilizes a key and a pixel number as inputs and generates an output number.Before communication, the sender and receiver have already exchanged the designated key value.We illustrate to clarify this: To conceal four message bits within pixel 50 of the cover picture, let's assume a key value of 11.Upon applying the hash function, this key yields the output number 6. Subsequently, using the hash function with a value of four signifies the desire to hide the message within the final four bits originating from this generated bit, resulting in "2." Incrementing this value by "1," the sender replaces the message bits with circularly positioned pixel bits 6, 5, 8, and 7 of pixel 50.Similarly, for values 0, 1, and 3, the sender follows an analogous procedure, utilizing the respective pixel bits for replacement: Case 0: 8, 7, 6, and 5; Case 1: 7, 6, 5, and 8; Case 3: 5, 8, 7, and 6; The recipient extracts the message bits similarly.

Embedded algorithm
The user on the sender side reads the cover image and the text message generated in "Massage Encryption Technique" as input, producing a stego image as output.The procedure starts by reading the cover image and the encrypted text messages.To secure the message, first, apply the Vigenère cipher or the Caesar cipher encryption methods.Read the whole cover image pixel by pixel and hide the encrypted text using the hash function.
The text is hidden circularly in each pixel of the cover image.So, it is hard to access by the third person.Figure 2 illustrate how the embedded algorithm functions on the sender side.
The detail is given in Algorithm 1.

Sender side
On the sender's end, Algorithm 1 is employed.Hide an encrypted ciphertext message inside the cover image.

Extracted algorithm
At the receiver's end, the concealed information is deciphered.The user takes the stego image generated on the sender side and the corresponding key to extract the text message.This process begins by reading the stego image and utilizing the key to access the embedded text message.The concealed message is unveiled by employing the appropriate decryption technique, such as the Vigenère cipher or the Caesar cipher.The stego image is analyzed pixel by pixel to recover the encrypted text, which was hidden using the hash function during the sender's procedure.Figure 3 illustrate how the embedded algorithm functions on the sender side.The detail is given in Algorithm 2.

Receiver end
The receiver uses Algorithm 2, which retrieves the cipher text message from the stego image.

EXPERIMENTAL DESCRIPTION AND RESULTS
For the execution of this method, MATLAB 2018 is employed in the course of this investigation.The tests were performed on a system with an Intel Core i5 CPU running at 1.70 GHz and 8 GB of RAM, and other parameters are as follows: The suggested method employed 15 to encrypt the message with the Caesar cipher.The user can use any different number instead of 15 to encrypt data.In this study, The proposed approach utilized the value 11 for the hash function, although alternative values can be substituted instead of 11.Four standard grayscale photographs were used as the cover images to evaluate the proposed method.The names of these pictures are.

Histogram analysis
Histogram analysis serves the purpose of understanding how the stego image relates to the cover image.Through histogram analysis, the imperceptibility of the stego image is

Compared to cutting-edge techniques
The outcomes of the suggested technique are compared to those of methods presently in use using the assessment criteria Payload, MSE, Bits per Pixel (bpp), and PSNR.The MSE and PSNR are calculated as given in Eqs. ( 1) and (2).
where MSE is a mean square error, n is the number of data points, y i is the observed value, and the predicted value is ŷi .Tables 1 through four compare several images of Nature, including jets, fishing boats, and forests.Compared to many other current strategies, the suggested methodology makes locating the bit utilized to store the message difficult.The proposed method is more secure than existing methods with low MSE since it can easily anticipate the bit pattern (Ch et al., 2015;Nasreen et al., 2022).
Table 1 compares the newly suggested method and established LSB steganography techniques using a stego image for nature image.In this experiment, the authors used four different payloads, i.e., 262,144, 524,288, 786,432, and 1,048,576.The findings reveal that the proposed techniques can effectively conceal a substantial payload while maintaining a minimal increase in MSE, all within a secure framework.The proposed method is faster than other techniques because it uses no maintenance technique, which is time-consuming but does not improve the image quality much.
Table 2 compares the newly introduced technique and established LSB steganography methods using a stego image featuring a jet.Within this experiment, the researchers employed four distinct payloads: 262,144, 524,288, 786,432, and 1,048,576.The outcome shows that the suggested techniques can hide a high payload with a minor increase in MSE in a secure way.The proposed method is faster than other techniques because it uses no Table 3 contrasts the proposed technique with established LSB steganography techniques for the stego image of a fishing boat.In this experiment, the authors used four different payloads, i.e., 262,144, 524,288, 786,432, and 1,048,576.The findings reveal that the proposed techniques can effectively conceal a substantial payload while maintaining a minimal increase in MSE, all within a secure framework.Compared to other approaches, the proposed method demonstrates swifter performance owing to its omission of timeconsuming maintenance techniques.While these techniques do not significantly enhance image quality, the proposed method prioritizes efficiency.
Table 4 comprehensively compares the newly introduced technique and wellrecognized LSB steganography methods, focusing on a stego image set within a forest image.During the experiment, the authors investigated four distinct payloads: 262,144, 524,288, 786,432, and 1,048,576.The findings underscore the proposed approach adeptly conceals substantial payloads, with only a marginal escalation in Mean Squared Error (MSE) within a secure context.Noteworthy is the superior efficiency of the proposed method compared to its counterparts, eschewing time-consuming maintenance techniques that yield marginal image quality improvement.

CONCLUSION
The central goal of this study was to facilitate discrete communication while maintaining the confidentiality of information from other group members.Among available online resources, digital images emerge as optimal transmitters.The study focuses on encoding messages within images to achieve this objective.Various steganographic methods hide information within images, each with its intricacies.Encryption choices adapt to application requirements, from complete invisibility to concealing substantial messages.This study explains image steganography's applications and methods.This work converted plain text into ciphertext and encoded it as an image using a 4 LSB technique built on a hash function.The LSB of the image's pixel is used to place the secret text.Human eyes cannot distinguish between the original and final images since only the LSBs are changed.The outcomes of the proposed method demonstrate substantial stego image data capacity, commendable peak signal-to-noise ratio (PSNR), and low mean square error (MSE) compared to existing methods in the field.This approach offers a combination of robust security measures and ample payload capacity.

Table 1
Gray stego image of nature.Table 2 Gray stego image of jet.

Table 3
Gray stego image of fishing boat.