Abstract
We propose a novel mutual authentication protocol based on an enhanced XOR-based visual cryptography scheme exhibiting a non-monotonic access structure. A secret image is split into four visual shares such that the XOR of exactly three shares reveals a clear and human-readable image, while the XOR of one, two, or all four shares produces a visually blurred result. This property is achieved through carefully designed visual cryptography basis matrices. Using this construction, we design a lightweight challenge–response mutual authentication protocol requiring minimal cryptographic operations and relying primarily on XOR operations and human visual verification while assuming a trusted authority for initial share distribution. Security analysis shows that the protocol provides resistance against impersonation and eavesdropping attacks, while replay protection can be achieved by incorporating standard session management techniques. Experimental validation confirms the effectiveness of the proposed scheme, making it suitable for human-centric and resource-constrained environments.
1. Introduction
Mutual authentication is a fundamental security requirement in modern distributed systems, ensuring that two communicating entities can reliably verify each other’s identity before exchanging sensitive information. With the rapid expansion of the Internet of Things (IoT), smart cities, industrial automation, healthcare systems, unmanned aerial vehicles, and metaverse environments, authentication protocols are increasingly required to operate under strict constraints in terms of computation, storage, energy consumption, and user interaction [1,2,3,4,5,6,7,8,9,10]. As a result, the design of lightweight and robust mutual authentication mechanisms has become a critical research challenge.
Most existing mutual authentication schemes rely on conventional cryptographic primitives, including public-key cryptography, elliptic curve cryptography, hash-based constructions, blockchain infrastructures, and even quantum-based mechanisms [5,6,7,8,9,10,11,12,13,14]. While these approaches provide strong security guarantees, they often incur significant computational and communication overhead, require complex key management, and depend on specialized infrastructure or hardware support. Such requirements may be impractical in human-centric systems and resource-constrained environments, such as wearable devices, smart home systems, drones, and edge IoT nodes [1,2,5,6,10].
To overcome these limitations, alternative authentication approaches have been explored. Among them, visual cryptography (VC), originally introduced by Naor and Shamir [15], offers a unique approach in which secret reconstruction relies on human visual perception rather than computational decryption. In classical -threshold VC schemes, a secret image is divided into n shares such that stacking at least k shares reveals the secret, while fewer shares provide no information. This simplicity makes VC particularly attractive for intuitive and lightweight authentication mechanisms.
Recent works have explored the use of visual cryptography in authentication and key distribution scenarios, including IoT-cloud systems [7], ghost imaging-based key distribution [8], and secure access control mechanisms in distributed environments. However, most of these approaches inherit the monotonic reconstruction behavior of classical VC, where the visual quality of the reconstructed image improves as more shares are combined. This property is undesirable in authentication contexts, as it may lead to partial information leakage or unintended verification outcomes.
More fundamentally, classical visual cryptography is constructed according to a monotonic reconstruction principle. The basis matrices are designed so that visual information progressively emerges as additional shares are combined. Consequently, the designer has limited control over the visual behavior of individual subsets of shares. In contrast, the enhanced visual cryptography framework considered in this work removes this restriction by allowing the visual outcome of selected subsets to be explicitly controlled through basis matrix design. Depending on the chosen matrices, a subset of shares may produce either a meaningful reconstruction or a visually degraded image. This additional flexibility enables the construction of non-monotonic access structures that cannot be realized within the classical threshold framework.
XOR-based visual cryptography provides a natural foundation for such enhanced constructions. By replacing the OR operation with XOR, it becomes possible to analyze and control the Hamming-weight properties of reconstructed subsets more precisely. This flexibility allows the design of basis matrices that enforce specific visual behaviors for selected combinations of shares, including non-monotonic reconstruction patterns. In particular, XOR-based constructions enable the realization of non-monotonic reconstruction behaviors, where adding more shares does not necessarily improve visual clarity. This property is especially suitable for authentication, where successful verification must occur only under precisely defined conditions.
Motivated by this observation, we propose a mutual authentication framework based on an enhanced XOR-based visual cryptography scheme exhibiting a non-monotonic access structure. The proposed construction splits a secret image into four visual shares with the following behavior: individual shares are completely unintelligible, the XOR of two shares produces a blurred image, the XOR of exactly three shares yields a clear and human-recognizable reconstruction, and the XOR of all four shares again results in a blurred output. This controlled visual behavior enables an authentication mechanism based on visual verification rather than purely cryptographic computation.
Building on this property, we design a lightweight challenge–response mutual authentication protocol that relies on simple XOR operations and human visual inspection, while assuming a trusted authority for the initial generation and distribution of visual shares. The protocol avoids the use of computationally expensive cryptographic primitives such as public-key encryption, digital signatures, or complex key exchange mechanisms during the authentication phase.
The contributions of this work can be summarized as follows. We first introduce an enhanced XOR-based visual cryptography model in which the visual behavior of share subsets is determined through basis matrix design, and demonstrate a non-monotonic reconstruction property specifically tailored for authentication. We then propose concrete basis matrix constructions and provide a formal analysis of their Hamming weight properties to guarantee the desired visual behavior. Based on this construction, we design a lightweight mutual authentication protocol and analyze its security under a strong adversarial model. Finally, we validate the effectiveness of the proposed approach through both qualitative and quantitative experimental evaluations, demonstrating a clear perceptual distinction between valid and invalid reconstructions.
By combining the simplicity of visual cryptography with the flexibility of XOR-based reconstruction, the proposed approach illustrates how enhanced visual cryptography can be exploited for authentication-oriented applications. This makes it particularly suitable for human-centric and resource-constrained environments.
2. Related Work
Mutual authentication has been extensively studied across a wide range of application domains, including Internet of Things (IoT), smart environments, healthcare systems, unmanned aerial vehicles, and emerging virtual platforms. Existing solutions predominantly rely on conventional cryptographic primitives and infrastructure-based security mechanisms.
2.1. Traditional and Emerging Authentication Paradigms
A large body of research has explored mutual authentication mechanisms based on cryptographic primitives such as symmetric encryption, hash functions, and elliptic curve cryptography (ECC). For instance, ECC-based schemes have been proposed for smart grids [13], telecare medical information systems [14,16], and wearable devices in the Medical Internet of Things [6]. While these approaches provide strong security guarantees, they still introduce non-negligible computational and communication overhead.
In large-scale and distributed environments, additional mechanisms have been introduced to address trust and scalability issues. Consensus-based schemes [3], secure addressing mechanisms [12], and blockchain-based authentication protocols [17,18,19] aim to reduce reliance on centralized authorities and improve traceability. However, these solutions often increase system complexity, latency, and storage requirements.
Authentication protocols have also been proposed for emerging environments such as metaverse systems and distributed healthcare platforms [20,21]. In these contexts, privacy preservation and scalability are key concerns, but the reliance on cryptographic primitives remains dominant.
In resource-constrained and physically exposed environments, such as drone networks, hardware-assisted approaches have been proposed using physically unclonable functions (PUFs) and secure coprocessors [5,10,22]. Although these techniques enhance resistance to physical attacks, they require specialized hardware, limiting their applicability.
Finally, recent works have explored post-quantum and quantum-based authentication mechanisms [11,23]. While offering strong theoretical security, these approaches remain impractical for lightweight deployments due to their complexity and infrastructure requirements.
Overall, existing authentication paradigms rely heavily on cryptographic computation, hardware support, or distributed infrastructures, which motivates the exploration of alternative lightweight and human-centric solutions.
2.2. Visual Cryptography-Based Authentication
Visual cryptography (VC), introduced by Naor and Shamir [15], provides an alternative paradigm in which secret reconstruction is achieved through human visual perception rather than computational decryption. This property makes VC particularly attractive for authentication scenarios requiring simplicity and usability.
Several works have applied visual cryptography to authentication and key distribution. For example, Ehuil et al. [7] proposed a VC-based mutual authentication protocol for IoT-cloud environments, combining secret images and ticket mechanisms. Kang et al. [8] introduced a ghost-imaging-based authentication and key distribution scheme using cumulative visual cryptography.
Although these approaches demonstrate the feasibility of visual authentication, they rely on classical VC constructions with monotonic reconstruction behavior. In such schemes, the visual quality of the reconstructed image improves as more shares are combined. This property is not well-suited for authentication, as it may allow partial information leakage or unintended reconstruction with unauthorized subsets.
2.3. Positioning of the Proposed Work
The proposed work differs from existing visual-cryptography-based authentication approaches in both design and objective. Unlike many conventional authentication schemes that rely on computationally expensive public-key primitives during the authentication phase, the proposed protocol primarily employs lightweight XOR operations, session-dependent pseudorandom permutations, and human visual verification. A trusted authority is assumed only during the enrollment phase for the generation and secure distribution of visual shares and the secret seed required for session synchronization.
The enhanced visual cryptography framework considered in this work was recently proposed in the context of graphical-password authentication and smart-lock access control. Unlike classical threshold visual cryptography, this framework allows the visual behavior of selected subsets of shares to be controlled directly through basis-matrix design. The present work extends this framework to mutual authentication and demonstrates how its non-monotonic reconstruction capabilities can be exploited to achieve lightweight and session-dependent authentication [24,25].
Furthermore, in contrast to existing visual cryptography-based authentication schemes, the proposed construction enforces a non-monotonic reconstruction property. Specifically, visual clarity is achieved only when exactly three out of four shares are combined, whereas all other combinations (one, two, or four shares) produce visually blurred results. This behavior prevents partial information leakage and ensures that authentication succeeds only under strictly controlled conditions. Combined with the proposed session-dependent permutation mechanism, it further guarantees that previously recorded authentication messages cannot be reused in future sessions.
By introducing this non-monotonic access structure and integrating it into a challenge–response protocol, the proposed approach demonstrates a novel application of enhanced visual cryptography to mutual authentication. Unlike threshold-based visual cryptography, which aims to reconstruct a secret whenever a minimum number of shares is available, the proposed approach enforces authentication through carefully controlled visual behavior specified directly by the basis matrices. In addition, the incorporation of session-dependent permutations enables freshness guarantees and replay-attack resistance while preserving the lightweight nature of the protocol. The resulting framework provides a human-centric authentication mechanism that complements existing cryptographic solutions, particularly in resource-constrained environments where computational simplicity is an important requirement.
3. Enhanced Visual Cryptography
3.1. Enhancing Visual Cryptography via Non-Monotonic XOR Reconstruction
Visual cryptography (VC) enables the protection of visual information by decomposing an image into multiple shares that reveal the secret only through visual reconstruction. Since its introduction by Naor and Shamir in 1994 [15], the classical -threshold model has been widely studied and extended. In this framework, a secret image is reconstructed once at least k out of n shares are superimposed, while fewer shares leak no information. A key strength of VC lies in its simplicity: reconstruction requires no cryptographic keys or complex computation, relying solely on human visual perception.
Despite these advantages, classical visual cryptography schemes exhibit a monotonic reconstruction behavior, meaning that the visual quality of the reconstructed image improves as more shares are combined. While this property is appropriate for secret sharing, it is unsuitable for authentication scenarios, where visual information must be revealed only under strictly controlled conditions.
To overcome this limitation, XOR-based visual cryptography replaces the logical OR operation with XOR, enabling more flexible access structures. In particular, XOR-based schemes allow the design of non-monotonic reconstruction behaviors, where adding more shares does not necessarily improve visual quality. Such behavior is especially attractive for authentication purposes.
In contrast to classical threshold visual cryptography, where basis matrices are designed to guarantee reconstruction whenever a threshold number of shares is reached, the enhanced XOR-based framework considered in this work aims to control the visual behavior of arbitrary subsets of shares. More precisely, the basis matrices are constructed so that selected subsets produce a positive contrast difference, while other subsets produce zero contrast. This allows the realization of non-monotonic access structures that cannot be obtained through conventional threshold-based constructions.
As a particular instance of this framework, we construct a four-share scheme in which each individual share is visually random, the XOR of exactly two shares produces a blurred image, the XOR of exactly three shares reveals a clear reconstruction of the secret image, and the XOR of all four shares again yields a blurred result.
3.2. Formal Model and Definitions
Let M be an Boolean matrix, where each row corresponds to a visual share and each column represents a subpixel. For any subset , we denote by the submatrix formed by the rows indexed by X. Let denote the Boolean vector obtained by applying the XOR operation to all rows of . The function denotes the Hamming weight of , i.e., the number of black subpixels.
In the visual cryptography framework, each pixel of the secret image is encoded using two Boolean basis matrices:
It is important to distinguish between the basis matrices and the visual shares. The matrices and define the encoding rules for white and black pixels, respectively. During the share generation process, columns from these basis matrices are distributed to produce the individual visual shares and that are later used in the authentication protocol.
Definition 1
(Enhanced XOR-Based Visual Cryptography). An XOR-based visual cryptography scheme with four shares is said to be enhanced if its basis matrices and satisfy the following condition for every subset : either (i) there exists a constant such that
where denotes the Hamming weight, or (ii) the restricted submatrices and are identical up to a permutation of columns.
This definition generalizes the classical -threshold model by allowing non-monotonic reconstruction behavior. In classical threshold visual cryptography, all subsets containing at least k shares are associated with a positive contrast difference, resulting in monotonic reconstruction. The enhanced framework removes this restriction and allows arbitrary visual behaviors to be specified directly through the basis matrices. This additional flexibility is particularly suitable for authentication-oriented applications, where visual information must be revealed only under precisely controlled conditions.
3.3. Practical Basis Matrix Construction
We now present a concrete construction of basis matrices that satisfies the enhanced XOR-based visual cryptography definition and realizes the intended non-monotonic reconstruction behavior.
Example
From Table 1, we observe that for all unauthorized subsets (i.e., or 4), the Hamming weights of and are identical. Consequently, the corresponding contrast difference is given by Equation (1):
which implies zero contrast difference between white and black pixel encodings. Consequently, the corresponding XOR reconstructions are visually indistinguishable and reveal no perceptual information about the secret image.
Table 1.
Hamming weights for the proposed construction.
In contrast, when , the corresponding contrast difference is given by Equation (2):
Equation (2) establishes a strictly positive contrast gap, ensuring that only three-share XOR combinations yield a clear and human-recognizable reconstruction of the secret image.
Importantly, the four-share combination () again produces zero contrast, confirming the non-monotonic reconstruction property: visual clarity emerges exclusively for the authorized three-share subsets, while all other combinations remain perceptually ambiguous.
3.4. Discussion
The analysis of Table 1 confirms that the proposed basis matrices satisfy the enhanced XOR-based visual cryptography definition. Authorized subsets () exhibit a strictly positive contrast gap, whereas unauthorized subsets () exhibit zero contrast. Consequently, visual clarity emerges exclusively for three-share combinations, establishing the desired non-monotonic reconstruction property. This behavior makes the construction particularly suitable for authentication, as successful verification occurs only for precisely defined share combinations.
4. Mutual Authentication Protocol
This section describes the proposed mutual authentication protocol built upon the enhanced XOR-based visual cryptography scheme introduced in Section 3. The protocol enables two parties to verify each other’s identity using visual reconstruction, while requiring only lightweight XOR operations and human visual perception. The scheme assumes a trusted authority for the initial generation and distribution of visual shares, and avoids the use of heavy cryptographic primitives such as public-key encryption or digital signatures during the authentication phase.
4.1. System Setup Phase
A trusted authority (TA) is responsible for initializing the system. The TA generates a secret binary image and constructs four visual shares using the basis matrices defined in Section 3.
In addition to the visual shares, the TA generates a secret seed K and securely distributes it to the communicating parties during the registration phase. User A receives , while User B receives .
The seed K is used to derive a synchronized sequence of session-dependent pseudorandom permutations. For each authentication session t, both participants independently generate the same permutation sequence from K and the session identifier t using a cryptographically secure pseudorandom generator, instantiated concretely in Section 5 (paragraph “Instantiating the Permutation Generator”). These permutations are subsequently applied to the basis matrices during the share reconstruction process, ensuring that each authentication session employs a distinct visual encoding while preserving the contrast properties of the underlying enhanced visual cryptography scheme.
After this initialization phase, the TA is no longer involved in the authentication process.
4.2. Authentication Phase
The mutual authentication between User A and User B is performed through a challenge–response mechanism based on XOR operations and session-dependent visual encoding.
For authentication session t, both participants derive the same pseudorandom permutation sequence from the shared secret seed K. Specifically, they compute a session seed , where denotes the concatenation operation and t is the session identifier. Thus, the session seed is obtained by applying the SHA-256 hash function to the concatenation of the secret seed K and the current session identifier t.
The value is then used to generate a deterministic sequence of column permutations , where N is the number of pixels in the secret image and is applied to the basis matrices used to encode the i-th pixel. The permutations are generated through a Fisher–Yates procedure initialized with (concretely, via an unbiased, rejection-sampled Fisher–Yates shuffle driven by a ChaCha20/AES-CTR keystream keyed with , as detailed in Section 5). Since both participants possess the same secret seed K and use the same session identifier t, they obtain identical permutation sequences without additional communication.
Using these session-dependent permutations, both participants generate the corresponding shares and perform the following authentication procedure:
- User A computes and sends to User B.
- Upon receiving , User B computes and visually inspects the reconstructed image.
- If the reconstructed image is visually clear and recognizable, User B accepts the identity of User A; otherwise, the authentication fails.
- User B computes and sends to User A.
- User A computes and performs visual verification.
- If the reconstructed image is visually clear and recognizable, User A accepts the identity of User B; otherwise, the authentication is rejected.
Because a distinct permutation sequence is used in each authentication session, the generated shares and transmitted authentication values are session-dependent. Consequently, messages captured during a previous session cannot be successfully reused in subsequent sessions, providing intrinsic replay-attack resistance while preserving the lightweight nature of the protocol.
This bidirectional verification ensures mutual authentication, as both parties independently confirm the legitimacy of the other.
4.3. Verification Procedure
The correctness of the protocol relies on both the non-monotonic reconstruction property of the proposed enhanced visual cryptography scheme and the session-dependent permutation mechanism. By construction, the XOR of exactly three valid shares generated using the current session permutation sequence produces a visually clear and recognizable image, whereas any combination involving fewer than three shares, more than three shares, or an incorrect permutation sequence results in a blurred and unintelligible reconstruction.
Consequently, successful authentication occurs only when the verifier combines a received value with its own share using the same session-dependent permutation sequence. In this case, the XOR operation produces the reconstruction associated with exactly three valid shares, allowing reliable visual verification.
If an adversary replays a message captured during a previous session, the message corresponds to a different permutation sequence and therefore fails to generate a valid reconstruction under the current session parameters. The resulting image remains visually unintelligible and the authentication attempt is rejected.
This verification process provides both human-verifiable identity confirmation and intrinsic protection against replay attacks while preserving the lightweight nature of the proposed protocol.
4.4. Formal Description
The complete mutual authentication procedure is summarized in Algorithm 1. In addition to XOR operations and visual verification, the protocol employs a session-dependent permutation mechanism derived from a shared secret seed. This ensures that each authentication session uses a distinct visual encoding while preserving the lightweight nature of the proposed scheme.
| Algorithm 1 Mutual Authentication Protocol |
|
The execution flow of Algorithm 1 is further illustrated in Figure 1, which provides a high-level overview of the authentication process.
Figure 1.
Flowchart illustrating the execution of the proposed mutual authentication protocol described in Algorithm 1.
4.5. Practical Deployment Considerations
In practical deployments, the visual shares and the secret seed K used to derive session-dependent permutation sequences must be securely generated, distributed, and stored by the participating entities. This process is performed during an initial enrollment phase handled by a trusted authority (TA) prior to the execution of the authentication protocol.
During the enrollment phase, the TA generates the visual shares from the secret image using the basis matrices described in Section 3. The TA also generates a secret seed K, which is securely distributed together with the corresponding shares. For instance, User A receives , while User B receives . Distribution is performed through an authenticated and protected initialization channel. In IoT, UAV, or cyber-physical environments, this process may occur during device manufacturing, secure provisioning, firmware installation, or a protected onboarding procedure.
Each participant locally stores its assigned shares and the secret seed within a protected storage environment. Standard protection mechanisms, such as secure storage modules, trusted execution environments, secure elements, firmware integrity verification, or hardware-assisted key protection, may be employed to prevent unauthorized extraction of stored information.
During authentication, the secret seed K is used to derive session-dependent pseudorandom permutation sequences. Consequently, authentication messages become session-specific and previously recorded messages cannot be reused successfully in subsequent sessions. This mechanism provides freshness guarantees without requiring timestamps, sequence numbers, public-key cryptography, or additional encrypted message exchanges.
In dynamic environments, periodic renewal of visual shares and the associated secret seed can be performed to limit long-term exposure. This renewal process consists of generating a new secret image, new visual shares, and a new secret seed, followed by secure distribution through an update phase managed by the trusted authority.
These considerations demonstrate that the proposed enhanced visual cryptography-based authentication mechanism can be integrated into existing provisioning and secure onboarding procedures while preserving its lightweight nature and providing resistance against replay attacks.
5. Security Analysis
5.1. Threat Model
We specify the adversarial model considered in the security analysis of the proposed mutual authentication protocol. The objective of the adversary is to impersonate a legitimate participant, replay previously observed authentication messages, or extract visually meaningful information about the protected secret.
We consider an active network adversary with full control over the communication channel. In particular, the adversary can observe, record, analyze, modify, inject, replay, delay, or block protocol messages. The adversary may also monitor multiple authentication sessions and attempt to correlate exchanged values across different executions in order to recover secret information or impersonate a legitimate participant.
The protocol assumes that the visual shares and the shared secret seed K remain confidential and are not accessible to the adversary. Legitimate participants are assumed to store these long-term secrets using secure storage mechanisms such as Secure Elements (SE), Trusted Platform Modules (TPM), Trusted Execution Environments (TEE), or equivalent hardware- or software-based protected storage.
Accordingly, physical device capture, insider compromise leading to the disclosure of stored secrets, and side-channel attacks capable of extracting protected information are considered implementation-level threats rather than protocol-level attacks. Such attacks are therefore outside the scope of the present work and are left for future investigation. Similarly, legitimate participants are assumed not to maliciously disclose their assigned visual shares or the shared secret seed during normal protocol execution.
The trusted authority responsible for generating and distributing the visual shares and the secret seed is assumed to be fully trusted during the enrollment and renewal phases. Consequently, the security of the proposed protocol relies on the confidentiality of the distributed shares and the secret seed, together with the unpredictability of the pseudorandom permutation sequences derived from K.
5.2. Security Assumptions
The security analysis relies on the following assumptions.
- A1.
- The visual shares remain confidential and are securely stored by legitimate participants throughout the protocol execution.
- A2.
- The shared secret seed K is known only to legitimate participants and is protected using the same secure storage mechanisms as the visual shares.
- A3.
- The pseudorandom permutation generator derived from K is computationally indistinguishable from a truly random permutation generator. A concrete instantiation of this generator and the corresponding cryptographic justification are given below.
- A4.
- The trusted authority securely generates and distributes the visual shares and the secret seed during the enrollment phase.
5.2.1. Instantiating the Permutation Generator
Assumption A3 is stated in terms of an abstract pseudorandom permutation generator so as not to tie the security argument to a single primitive; we now give a concrete instantiation and justify the assumption in terms of it. The session seed (Section 4) is used to key a stream-cipher-based deterministic random bit generator (DRBG): specifically, we instantiate the generator as ChaCha20 [26], keyed with the 256-bit value and a nonce derived from a public counter, equivalently AES-128 in CTR mode as standardized in NIST SP 800-90A [27]. For each pixel index , successive keystream blocks drive a Fisher–Yates shuffle of the m basis-matrix columns, using rejection sampling (discarding out-of-range keystream values) so that the resulting permutation is exactly uniform over the symmetric group on m elements, free of modulo bias, conditioned on the keystream being uniform.
The computational-indistinguishability Assumption A3 therefore reduces to the standard cryptographic assumption that ChaCha20 (respectively, AES-CTR) is a secure pseudorandom generator, i.e., that no probabilistic polynomial-time distinguisher can distinguish its output keystream from a truly random bit string with non-negligible advantage. This is not an ad hoc assumption specific to the present protocol: it is the same assumption underlying the confidentiality of TLS 1.3 and countless other deployed systems, and both primitives have withstood over two decades of public cryptanalysis without a practical distinguishing attack. Under this assumption, and because a uniform keystream yields an exactly uniform Fisher–Yates output by construction, the session-dependent permutation sequence is computationally indistinguishable from a uniformly random permutation sequence, which is precisely Assumption A3. This grounds the abstract term in Equation (10) in the concrete PRG-distinguishing advantage of an adversary against ChaCha20 or AES-CTR, rather than leaving it as an uninstantiated primitive.
5.2.2. Mitigating Trusted-Authority Compromise
The assumption that the TA is fully trusted and uncompromised (A4) is standard for enrollment-based authentication protocols and mirrors the role of the KDC in Kerberos or the CA in TLS. Nonetheless, a single trusted entity is a central point of failure, and we outline three concrete, complementary mitigations that can be layered onto the enrollment procedure of Section 4 without modifying the authentication phase itself.
Threshold enrollment. Rather than a single TA generating and holding the complete secret material , generation can be distributed among n independent custodians using a -threshold secret-sharing scheme (e.g., Shamir’s 1979 secret-sharing scheme [28]) applied to K and to the random bit-strings used to instantiate the basis-matrix column assignments, so that reconstruction of the full secret material requires cooperation of at least custodians. No single custodian ever observes the complete secret, so this weakens Assumption A4 from “the TA is trusted” to the strictly weaker “fewer than of n custodians are compromised,” a standard threshold-cryptography guarantee.
Ephemeral, offline enrollment. The TA’s role is required only once, at enrollment (and, optionally, at periodic share renewal); it is never invoked during authentication (Section 4.2). It can therefore be instantiated as an air-gapped device that is powered on only for enrollment/renewal ceremonies, with all key material securely erased immediately afterward, sharply reducing the exposure window relative to an always-online authority.
Auditable enrollment. Enrollment events can be bound to a signed, timestamped, append-only enrollment log recording which shares and seeds were issued to which participants (without revealing their values). This does not prevent TA compromise, but it enables retrospective detection of unauthorized enrollment activity and limits its undetected impact.
These measures are defense-in-depth mechanisms external to the authentication protocol itself, which remains unchanged once enrollment has completed; they directly address, rather than merely restate, the single-point-of-trust concern associated with Assumption A4, and we reference them in the Limitations discussion (Section 8) accordingly.
Under these assumptions, the proposed protocol provides mutual authentication, confidentiality of the protected visual secret, and resistance against eavesdropping, impersonation, replay, man-in-the-middle, and brute-force attacks. Since each authentication session employs a distinct permutation sequence derived from the shared secret seed, previously recorded messages cannot be reused successfully, and intercepted authentication values reveal neither the secret image nor future session-dependent authentication information.
The considered adversarial model is consistent with the classical Dolev–Yao model, which assumes full control over the communication channel while long-term secrets remain securely stored. Accordingly, correct XOR-based visual reconstruction is possible only for entities that possess the required visual shares and the corresponding session-dependent permutation sequence.
Before presenting the detailed analysis of each attack scenario, Figure 2 provides an overview of the principal attacks considered in this work and summarizes the corresponding protection mechanisms implemented by the proposed protocol.
Figure 2.
Overview of the attack-based security analysis, where dashed arrows denote potential attack vectors targeting the protocol, and solid arrows indicate the progression of protective steps and defense outcomes. The diagram summarizes the principal attack scenarios considered in the proposed mutual authentication protocol and the corresponding protection mechanisms discussed in this section.
5.3. Attack-Based Security Analysis
In this subsection, we analyze the security of the proposed mutual authentication protocol by evaluating its resistance to common attack scenarios under the threat model defined in Section 5.1. The analysis focuses on well-known attack classes, including eavesdropping, impersonation, replay, and man-in-the-middle attacks.
5.3.1. Eavesdropping Attack
We consider a passive adversary that can observe all messages exchanged during the execution of the mutual authentication protocol. In authentication session t, the transmitted values are and , where the session-dependent shares are generated using permutation sequences derived from the shared secret seed K.
By construction of the proposed enhanced visual cryptography scheme, the XOR of any two shares produces a visually blurred pattern with no distinguishable structure. Consequently, the transmitted values and reveal no perceptually meaningful information about the protected secret image.
An adversary may also combine the intercepted authentication messages from the same session by computing . However, owing to the non-monotonic reconstruction property of the proposed scheme, the XOR of all four shares also yields a visually blurred pattern and therefore does not reveal the secret image.
Observing multiple authentication sessions does not provide additional information. Since each session employs a distinct pseudorandom permutation sequence derived from the secret seed K, the exchanged authentication values are session-dependent and cannot be correlated to recover either the protected image or future authentication messages. Moreover, without knowledge of K, the adversary cannot derive the session-specific permutation sequences. This claim is stated here qualitatively for readability; Section 5.5 below gives a formal, hybrid-argument proof that a passive adversary observing any polynomial number of sessions gains only a negligible distinguishing advantage over observing independent uniform noise.
Therefore, intercepted authentication messages never provide the authorized three-share reconstruction required to reveal the secret image. Passive eavesdropping thus does not compromise the confidentiality of the proposed authentication protocol under the defined threat model.
5.3.2. Replay Attack
Consider an adversary that records a valid authentication message during session t and replays it during a subsequent session . In session t, the transmitted authentication value is , where the shares are generated using the permutation sequence . During session , the verifier computes .
Substituting yields Equation (3):
For a valid authentication session, all participating shares are generated using the same permutation sequence. In contrast, the replayed reconstruction combines shares generated under two different permutation sequences, namely and .
Let , , denote the XOR of the first two rows of the basis matrices and , respectively. Let , denote the corresponding third rows. The replayed reconstruction can be characterized by the contrast function defined in Equation (4):
where denotes the Hamming weight and is the relative permutation between the two sessions. When , corresponding to a legitimate authentication session, the construction of the basis matrices yields , which is the positive contrast required for visual reconstruction.
For a replay attack, . Since the session permutations are derived pseudorandomly from the secret seed K, the relative permutation can be regarded as uniformly distributed over the set of all column permutations. For every permutation producing a contrast value , there exists a corresponding permutation producing the contrast value . Consequently, the contrast distribution is symmetric around zero and satisfies .
To verify this property, all possible relative permutations were exhaustively enumerated using MATLAB R2023b. The resulting contrast distribution is shown in Figure 3. The experiment yields , , . The histogram exhibits perfect symmetry around zero, confirming that positive and negative contrast contributions cancel each other when shares generated under different permutation sequences are combined.
Figure 3.
Distribution of the replay contrast obtained by exhaustive enumeration of all relative permutations. The distribution is symmetric around zero, with a mean contrast equal to zero, demonstrating that replayed reconstructions do not preserve the positive contrast required for successful visual authentication.
Therefore, replayed reconstructions do not preserve the positive contrast required for visual recognition and become visually indistinguishable from unauthorized subsets. Consequently, previously recorded authentication messages cannot be successfully reused in a different session.
The same reasoning applies to replayed values of . Therefore, the proposed session-dependent permutation mechanism provides intrinsic replay-attack resistance without requiring timestamps, nonces, encrypted counters, or additional cryptographic exchanges.
5.3.3. Man-in-the-Middle Attack
We consider an active adversary that intercepts, modifies, substitutes, or injects protocol messages in an attempt to impersonate a legitimate participant.
During authentication session t, User A transmits , and the verifier reconstructs
Successful authentication is achieved only when the received message matches the unique session-dependent authentication value expected by the verifier.
Assume that the adversary modifies the transmitted message and forwards
where is an arbitrary binary vector. The verifier then obtains
Since , the reconstructed value differs from the valid session-dependent authentication value. Consequently, a modified, substituted, or injected message is accepted only if it accidentally matches the unique authentication value expected by the verifier.
Let N denote the authentication message length. Since only one valid binary vector exists among the possible candidates, an adversary can succeed only by correctly guessing the unique authentication value expected for the current session.
Moreover, because the authentication value depends on the session-dependent permutation sequence derived from the shared secret seed K, an adversary without knowledge of K cannot predict the valid authentication value for the current session. Therefore, for any probabilistic polynomial-time adversary ,
Hence, the proposed protocol provides resistance against man-in-the-middle attacks.
5.3.4. Brute-Force and Guessing Attacks
In a brute-force or guessing attack, an adversary attempts to generate a valid authentication message without possessing the required visual shares or the shared secret seed K.
Let N denote the authentication message length. Without knowledge of the legitimate shares or the session-dependent permutation sequence, a forged authentication message is simply a random binary vector
A successful forgery occurs only if R exactly matches the unique session-dependent authentication value expected by the verifier. Since only one valid binary vector exists among the possible candidates, the probability that a probabilistic polynomial-time adversary successfully forges a valid authentication message satisfies
Since N is large for practical authentication messages, is negligible, rendering exhaustive search computationally infeasible. Moreover, even after observing multiple authentication sessions, an adversary cannot predict future authentication values without deriving the session-dependent permutation sequence from the shared secret seed K.
Therefore, the proposed protocol provides resistance against brute-force and guessing attacks.
5.3.5. Summary
The preceding analysis demonstrates that the proposed protocol provides resistance against the adversarial behaviors considered in the defined threat model, including eavesdropping, replay, man-in-the-middle, and brute-force attacks. Its security is based on two complementary mechanisms: the non-monotonic reconstruction property of the enhanced XOR-based visual cryptography framework and the session-dependent permutation mechanism derived from the shared secret seed.
Together, these mechanisms ensure that authentication succeeds only when the authorized three-share reconstruction is performed using the correct session-dependent permutation sequence. Consequently, intercepted, modified, or replayed authentication messages do not enable successful authentication or reveal the protected visual secret.
Under the stated security assumptions, the proposed protocol provides a lightweight and efficient mutual authentication mechanism while preserving the computational simplicity of XOR-based visual cryptography.
5.4. Game-Based Authentication Security
To strengthen the formal security analysis, we model the mutual authentication property using a standard game-based experiment between a challenger and a probabilistic polynomial-time adversary .
5.4.1. Authentication Experiment
- 1.
- The challenger generates four valid visual shares according to the enhanced XOR-based visual cryptography scheme and generates a secret seed K used to derive session-dependent permutation sequences. User A receives and User B receives .
- 2.
- The adversary is granted full control over the communication channel in accordance with the Dolev–Yao model and may observe, modify, inject, delay, block, and replay protocol messages.
- 3.
- may interact adaptively with honest participants and may observe polynomially many authentication sessions. For each session t, the honest parties derive a session-dependent permutation sequence from the secret seed K and execute the authentication protocol.
- 4.
- The adversary is not given access to the visual shares or to the secret seed K.
- 5.
- wins the experiment if it causes an honest verifier to accept authentication in a session for which does not possess the information required to generate a valid session-dependent three-share reconstruction.
5.4.2. Adversarial Advantage
The authentication advantage of the adversary is defined by Equation (9):
that is, the probability that the adversary successfully causes an honest verifier to accept an authentication attempt without possessing the information required by the protocol.
Proposition 1.
Consider the authentication experiment defined above. Under Assumptions A1–A4, every probabilistic polynomial-time adversary satisfies
where N denotes the authentication message length and denotes the adversary’s advantage in predicting or distinguishing the session-dependent permutation generator from an ideal random permutation generator.
Consequently, if the session-dependent permutation generator is computationally secure and the authentication message length is sufficiently large, then the authentication advantage of any probabilistic polynomial-time adversary is negligible.
Proof.
Assume that the adversary wins the authentication experiment . By definition of the experiment, an honest verifier accepts an authentication attempt generated by without possessing the information required by the protocol.
Successful authentication requires the verifier to reconstruct the valid session-dependent authentication value
where , , and are three legitimate shares generated using the same session-dependent permutation sequence.
Under Assumptions A1 and A2, the adversary does not possess either the required visual shares or the secret seed K. Therefore, a successful authentication forgery can occur only if one of the following events occurs:
- :
- the adversary correctly guesses the valid session-dependent authentication message;
- :
- the adversary predicts the session-dependent permutation sequence derived from the secret seed K.
Long-term secret compromise is excluded by Assumptions A1–A4 and is therefore outside the security experiment.
The probability of event is bounded by
where N denotes the authentication message length.
By Assumption A3, the probability of event satisfies
where denotes the adversary’s advantage in predicting the session-dependent permutation generator.
Since the adversary succeeds only if either or occurs, the union bound gives
Therefore,
which proves Equation (10).
Finally, if the session-dependent permutation generator is computationally secure, then is negligible. Consequently, for sufficiently large authentication message lengths, the term is also negligible. Therefore, the authentication advantage of any probabilistic polynomial-time adversary is negligible, thereby completing the proof. □
5.4.3. Share Compromise Analysis
The security of the proposed protocol relies on the confidentiality of both the visual shares and the secret seed K, which are assumed to be stored using protected storage mechanisms such as Secure Elements (SE), Trusted Execution Environments (TEE), Trusted Platform Modules (TPM), or equivalent secure storage technologies.
If an adversary compromises fewer than three valid visual shares and does not obtain the secret seed K, successful authentication remains infeasible. Indeed, unauthorized share combinations satisfy the zero-contrast property of the enhanced visual cryptography scheme and therefore do not produce a recognizable reconstruction. Moreover, without knowledge of K, the adversary cannot derive the session-dependent permutation sequences required to generate valid authentication messages.
Similarly, if the adversary compromises the secret seed K but does not obtain a sufficient number of valid visual shares, authentication also remains infeasible since the visual reconstruction process still requires the appropriate share combination.
Conversely, if an adversary compromises three valid visual shares together with the secret seed K, authentication can be forged because the adversary possesses all information required to reconstruct the valid session-dependent authentication values expected by the verifier. This scenario corresponds to a complete compromise of the long-term secret material.
Insider attacks in which a legitimate participant intentionally discloses its assigned visual shares or the shared secret seed are equivalent to long-term secret compromise and are therefore outside the security guarantees provided by the protocol. Likewise, physical device capture or side-channel attacks capable of extracting protected shares or the secret seed are implementation-level attacks that target the underlying secure storage mechanisms rather than the authentication protocol itself.
Consequently, the proposed protocol assumes that appropriate secure storage mechanisms effectively protect the visual shares and the shared secret seed during normal operation. Under this assumption, the protocol remains secure against network-based adversaries considered in the defined threat model.
5.5. Multi-Session Indistinguishability
Section 5.3 argues qualitatively that observing multiple authentication sessions gives a passive eavesdropper no additional advantage. We now formalize this claim via a standard hybrid argument, showing that the transcript of any polynomial number of sessions is computationally indistinguishable from independent uniform noise, up to the same permutation-distinguishing advantage that already appears in Equation (10).
Multi-Session Indistinguishability Experiment
Let be an arbitrary polynomial in the security parameter that governs the length of K, and let m denote the number of subpixels per encoded pixel (Section 3). Define two experiments between a challenger and an adversary :
- :
- runs enrollment once with a uniformly random seed K, honestly executes q authentication sessions with distinct identifiers , and returns the transcript to .
- :
- returns q independently and uniformly sampled pairs , generated without reference to any secret image, share, or seed.
The adversary’s multi-session distinguishing advantage is
Proposition 2.
Under Assumption A3, for every probabilistic polynomial-time adversary and every polynomial q,
where is the single-session permutation-distinguishing advantage of Equation (10). In particular, since q is polynomial in λ and is negligible in λ under Assumption A3 (instantiated concretely as in the paragraph “Instantiating the Permutation Generator”), is negligible in λ.
Proof.
We use a standard hybrid argument over the q sessions. For , define hybrid experiment as returning the true, honestly generated transcript for sessions and independently uniform pairs for sessions . By construction, and , so
Consider consecutive hybrids and , which differ only in whether session ’s pair is generated using the true session permutation derived from K, or replaced by an independent uniform pair. Suppose the permutation sequence used in session were a truly uniformly random permutation sequence, independent of the permutations used in all other sessions (this holds unconditionally if are modeled as independent uniform strings, as is standard when SHA-256 is modeled as a random oracle applied to distinct inputs ). Then, by the zero-contrast property of Equation (1) applied to the two-share subsets and (each of which is an unauthorized subset under the enhanced XOR-based visual cryptography definition of Section 3), and are each exactly uniformly distributed over , independent of the secret image and of all other sessions. Under this idealized substitution, and are therefore identically distributed.
Any residual, non-zero distinguishing advantage between and can consequently arise only from ’s ability to distinguish the actual session- permutation sequence, derived pseudorandomly from K, from a truly uniform permutation sequence. This is precisely the event bounded by Assumption A3: any distinguisher between and can be converted, by a straightforward black-box reduction, into a distinguisher for the permutation generator of Assumption A3 with the same advantage, by using the challenge permutation sequence to generate session ’s shares and forwarding ’s output. Hence for every j. Substituting into Equation (17) yields Equation (16), completing the proof. □
Proposition 2 formalizes the intuition given in Section 5.3: because each session’s transmitted values are computationally indistinguishable from independent uniform strings, correlating transcripts across any polynomial number q of sessions cannot help the adversary recover the secret image or predict future session values, beyond the (negligible, by A3) q-fold permutation-distinguishing advantage. The same argument covers the combined value considered in the Eavesdropping Attack paragraph above, since it is a deterministic function of the (indistinguishable-from-random) session transcript and therefore inherits the same bound.
5.6. Storage and Communication Overhead
The proposed authentication protocol requires each legitimate participant to locally store two visual shares together with the shared secret seed K. No public-key certificates, encrypted counters, timestamps, or additional authentication tokens are maintained during normal protocol execution.
During an authentication session, User A transmits the authentication message while User B similarly transmits Therefore, the communication cost consists of transmitting one share-sized binary image in each direction, resulting in a total communication overhead of two share-sized messages per authentication session.
Although visual shares are larger than conventional cryptographic credentials, the protocol compensates for this increased message size by avoiding computationally expensive cryptographic operations during the authentication phase. In particular, no public-key encryption, digital signature, certificate verification, timestamp validation, or encrypted counter synchronization is required. Authentication is performed using only XOR operations and visual reconstruction, leading to very low computational complexity.
The practical communication cost has already been experimentally evaluated in our previous implementation of the proposed framework [25]. Using a Raspberry Pi and a Samsung Galaxy A12 connected via Bluetooth, the average transmission time of one visual share was approximately s, while the average end-to-end authentication time, including Bluetooth connection establishment and image display, was approximately s. These experimental results demonstrate that the communication overhead introduced by transmitting visual shares remains practical for IoT authentication scenarios.
6. Experimental Evaluation
This section experimentally validates the proposed enhanced XOR-based visual cryptography scheme through qualitative and quantitative analyses of its non-monotonic reconstruction behavior.
6.1. Qualitative Visual Evaluation
We first present qualitative reconstruction results illustrating the non-monotonic behavior of the proposed scheme.
Figure 4 shows a representative binary secret image used in the experiments. In addition to this example, we conducted experiments on multiple binary images with varying structural complexity, including geometric patterns, alphanumeric symbols, and dense shapes. Across all tested images, the reconstruction behavior remained consistent.
Figure 4.
Representative binary secret image used for evaluation.
Figure 5 illustrates the visual reconstructions obtained from different XOR combinations of shares. Combinations involving one, two, or all four shares produce blurred and visually ambiguous outputs that do not reveal meaningful information. In contrast, combining exactly three shares clearly exposes the structure of the secret image, making it easily recognizable by a human observer.
Figure 5.
Visual reconstruction results using the proposed scheme. From left to right and top to bottom: individual share, XOR of two shares, XOR of exactly three shares, and XOR of all four shares. Only the three-share combination yields a visually clear reconstruction, illustrating the non-monotonic behavior of the scheme.
Across all tested images, visually meaningful information emerges exclusively when exactly three shares are combined, while all other combinations remain ambiguous. This confirms that the non-monotonic reconstruction property is independent of image complexity.
6.2. Quantitative Perceptual Evaluation
To complement the qualitative observations, we employ quantitative image quality metrics to assess the perceptual difference between valid and invalid reconstructions.
Implementation Details
All experiments were conducted using MATLAB R2023b simulations on binary images of size . Each pixel was encoded using the basis matrices described in Section 3, resulting in a fixed pixel expansion of (i.e., 9 subpixels per pixel). Shares were generated deterministically according to the corresponding basis matrices, and XOR operations were implemented using bitwise computations.
Reconstructed images were obtained by XORing one, two, three, and four shares, respectively. Prior to computing the quantitative metrics, the reconstructed images were downsampled to the original resolution using a block-wise reduction over each group of subpixels. Each block was mapped to a single pixel using a Hamming-weight-based decision rule, ensuring consistency with the decoding mechanism of the proposed visual cryptography scheme.
To evaluate perceptual similarity, we compute the Peak Signal-to-Noise Ratio (PSNR), the Structural Similarity Index Measure (SSIM), and the Shannon entropy, summarized for each reconstruction type in Table 2. The PSNR is defined by Equation (18):
where denotes the maximum pixel value and is the mean squared error. An infinite PSNR value indicates perfect reconstruction, i.e., zero error between the reconstructed and original images.
Table 2.
Quantitative perceptual metrics for reconstructed images.
All reported values are obtained from MATLAB-based simulations using the actual reconstructed images. The results demonstrate a clear quantitative distinction between valid and invalid reconstructions. In particular, three-share combinations achieve perfect reconstruction, as reflected by an infinite PSNR and an SSIM value of 1, along with high entropy, indicating a balanced and information-rich structure.
In contrast, unauthorized combinations (one, two, or four shares) collapse to uniform images with zero entropy, indicating a complete loss of informational content. The similarity of the metric values across these cases reflects the enforced annihilation property of the proposed scheme, whereby invalid XOR combinations produce structurally identical constant outputs.
6.3. Robustness to Noise Perturbation
To evaluate the robustness of the proposed authentication scheme under imperfect transmission and display conditions, and to support the practical-deployment claim with more than a single operating point, we performed a progressive bit-flip noise-injection experiment. Random noise affecting a fraction p of the pixels of one transmitted visual share () was introduced before the reconstruction process, at and . Reconstruction was performed by XORing the noisy share with the two remaining valid shares and applying the Hamming-weight threshold (Section 6.2) with the basis matrices of Section 3.3, on the same evaluation image used throughout Section 6 (Figure 4). At each level we report the false-reject rate (FRR, the fraction of foreground pixels incorrectly decoded as background), the false-accept rate (FAR, the fraction of background pixels incorrectly decoded as foreground), the overall pixel error rate, PSNR, and SSIM (Table 3).
Table 3.
FRR, FAR, overall pixel error rate, PSNR, and SSIM as a function of bit-flip noise level p.
The two error types grow at markedly different rates. FRR stays low throughout the tested range—under for and only even at the extreme level—because a foreground pixel is decoded correctly as long as the XOR of the three valid shares still reaches the weight-3 threshold, which tolerates a moderate number of flipped bits in a single share. FAR grows far faster: from at to at , at , and at . This asymmetry has a direct practical reading: under increasing acquisition noise (camera/display capture, print-scan, compression), the scheme degrades primarily by admitting spurious background detail as foreground, well before it starts rejecting genuine foreground content. Overall pixel error rate and the PSNR/SSIM fidelity measures track the same trend, falling from PSNR dB/SSIM at to PSNR dB/SSIM at . Representative noisy shares and their XOR reconstructions at each tested noise level are shown in Figure 6.
Figure 6.
Noisy share (top row) and XOR reconstruction (bottom row) at . At every noise level, the individual noisy share remains visually meaningless and does not reveal any information about the protected secret. The reconstructed image remains clearly recognizable through –, is visibly degraded but still discernible at , and collapses to noise at .
The corresponding FAR/FRR trends, PSNR/SSIM fidelity measures, and overall pixel error rate are plotted in Figure 7.
Figure 7.
(a) FAR and FRR, (b) PSNR and SSIM as a function of bit-flip noise level p, and (c) overall pixel error rate
For deployment, this indicates a graceful-degradation profile rather than an abrupt failure: at low-to-moderate noise (, representative of typical display/camera capture conditions), both error rates remain small (FRR , FAR ) and the reconstruction stays visually reliable (SSIM ). Beyond –, FAR rises sharply enough that the scheme should not be relied upon without additional error-correction or a stricter acceptance threshold; at the reconstruction is effectively unusable. At the same time, unauthorized share combinations continue to produce visually meaningless outputs at every tested noise level, thereby preserving the security properties of the proposed non-monotonic reconstruction scheme.
6.4. Computational Complexity
Let the image size be . Each XOR operation is performed pixel-wise, resulting in a time complexity of . The authentication protocol requires only a constant number of XOR operations per session. Therefore, the overall computational complexity remains linear in the image size. The proposed scheme is thus well suited for lightweight and resource-constrained environments, as it relies exclusively on simple bitwise operations without requiring complex cryptographic primitives.
7. Benchmark and Comparative Analysis
This section presents a benchmark and comparative analysis of the proposed XOR-based visual cryptography authentication scheme against representative state-of-the-art approaches. The comparison focuses on computational complexity, reliance on cryptographic mechanisms, infrastructure requirements, and suitability for resource-constrained and human-centric environments.
7.1. Benchmarking Criteria
The evaluation is conducted using criteria commonly adopted in the mutual authentication literature, including the underlying authentication mechanism, dependence on cryptographic primitives, key management requirements, infrastructure or hardware dependencies, and overall suitability for lightweight environments [1,2,3,6].
7.2. Cryptography-Based Mutual Authentication Schemes
Most existing mutual authentication protocols rely on conventional cryptographic primitives such as symmetric encryption, hash functions, and elliptic curve cryptography (ECC). For example, Ma et al. proposed a smart home authentication scheme based on signature updates and gateway-assisted verification [1], while Jan et al. introduced a hybrid AIoMT authentication framework combining AES and message authentication codes (MAC) [2].
ECC-based schemes are widely used in smart grid and healthcare systems to achieve mutual authentication and key agreement [13,14]. Although these approaches provide security guarantees, they incur non-negligible computational and communication overhead, which may limit their applicability in constrained environments.
Lightweight cryptographic solutions have been proposed to reduce these costs, such as hash-and-XOR-based protocols for medical IoT systems [6,21]. However, these schemes still rely on secret credentials, password management, and cryptographic verification procedures.
In contrast, the proposed approach relies only on lightweight bitwise operations (XOR) combined with visual reconstruction, avoiding the need for encryption, digital signatures, or complex key exchange mechanisms.
7.3. Blockchain- and Hardware-Assisted Authentication
Blockchain-based authentication mechanisms have been introduced to enhance decentralization and trust management in IoT and UAV systems [17,18,19]. While these approaches improve traceability and security, they introduce additional overhead in terms of communication, latency, and storage.
Hardware-assisted authentication schemes, particularly those based on physically unclonable functions (PUFs) or cryptographic coprocessors, provide resistance against physical attacks [5,10]. However, they require specialized hardware components, increasing deployment cost and limiting scalability.
The proposed scheme avoids both blockchain infrastructure and specialized hardware requirements, relying instead on lightweight visual share storage and simple XOR operations, while assuming a trusted provisioning phase for share distribution.
7.4. Visual Cryptography and Emerging Authentication Paradigms
Visual cryptography, introduced by Naor and Shamir [15], enables secret reconstruction through human visual perception rather than computational decryption. Recent works have applied this concept to authentication and key distribution in IoT and cloud environments [7,8]. However, these approaches typically follow a monotonic reconstruction behavior, where image quality improves as more shares are combined.
The proposed scheme differs fundamentally by enforcing a non-monotonic XOR-based reconstruction property, in which visual clarity emerges only when an exact subset of shares is combined. This property prevents partial information leakage and enables precise control over the authentication condition.
More importantly, this design allows authentication to be interpreted as the successful reconstruction of a constrained XOR-based visual structure, rather than as a purely cryptographic verification process.
Emerging authentication paradigms based on zero-knowledge proofs and quantum cryptography provide theoretical guarantees [11,23]. However, these approaches require complex infrastructure and are not well suited for lightweight or human-centric applications.
7.5. Summary of Comparison
Table 4 and Table 5 summarize the main characteristics of the proposed authentication framework and compare it with representative authentication schemes. Unlike conventional protocols, which rely on symmetric-key cryptography, public-key cryptography, or hash-based verification, the proposed method performs authentication through XOR-based visual cryptographic reconstruction.
Table 4.
Comparison with representative authentication protocols.
Table 5.
Comparison of representative authentication schemes in terms of computation, communication, and storage requirements.
The comparison shows that the proposed protocol requires only pixel-wise XOR operations while preserving mutual authentication and replay resistance through session-dependent permutations. In addition, it incorporates human visual verification, a feature that is generally not provided by conventional authentication protocols.
The proposed scheme is not intended to replace established protocols such as Kerberos or TLS, which additionally provide secure key establishment and broader communication security services. Instead, it offers an alternative authentication mechanism for scenarios where lightweight computation and human-verifiable authentication are desired.
7.6. Computational, Communication, and Storage Cost Analysis
Table 5 compares the proposed protocol with representative authentication schemes in terms of computational, communication, and storage requirements.
The proposed scheme performs authentication using pixel-wise XOR operations, resulting in computational complexity of for an image of size . During each authentication session, only two image-share messages are exchanged, namely and . Each participant stores two visual shares together with the secret seed K used to generate the session-dependent permutation sequences.
Compared with authentication schemes based on public-key cryptography, digital signatures, or blockchain operations, the proposed approach eliminates computationally intensive cryptographic primitives and requires only XOR operations. This reduction in computational complexity is achieved at the expense of storing visual shares, representing a different design trade-off that is appropriate for applications where lightweight computation and visual authentication are preferred.
7.7. Scalability and Applicability
The proposed authentication protocol is primarily intended for controlled environments in which a trusted authority can securely distribute visual shares during enrollment. Typical application domains include smart buildings, IoT access control, healthcare facilities, laboratories, and industrial environments.
From a computational perspective, the protocol scales efficiently since authentication requires only pixel-wise XOR operations with complexity for an image of size . The communication cost remains constant for each authentication session, consisting of two transmitted image-share messages. As the number of users increases, the primary scalability challenge lies in enrollment and secure share management rather than in the authentication process itself.
Accordingly, the proposed protocol is intended to complement existing authentication mechanisms in scenarios where lightweight computation and human visual verification are advantageous, rather than to replace general-purpose cryptographic authentication protocols.
8. Conclusions
This paper presented a novel mutual authentication approach based on an enhanced XOR-based visual cryptography scheme exhibiting a non-monotonic reconstruction behavior. By carefully designing the visual basis matrices, the proposed scheme ensures that individual shares remain fully unintelligible, while the XOR of two or four shares produces blurred outputs, and a clear reconstruction is obtained exclusively when exactly three shares are combined. This distinctive property enables precise and human-verifiable authentication under controlled conditions.
Building on this visual structure, we designed a lightweight challenge–response mutual authentication protocol that relies on simple XOR operations and human visual perception, while assuming a trusted provisioning phase for secure share distribution. The proposed approach avoids the use of computationally intensive cryptographic primitives such as encryption, signatures, or key exchange mechanisms, resulting in low computational overhead.
Security analysis under the defined adversarial model demonstrated that the protocol is resilient to eavesdropping, impersonation, and man-in-the-middle attacks, while replay attacks are addressed through the proposed session-dependent permutation mechanism. Experimental evaluation, including qualitative visual inspection and quantitative perceptual metrics, confirmed that only valid three-share combinations yield meaningful reconstructions, whereas all other combinations remain visually ambiguous.
- When Is This Trade-off Preferable to a Lightweight Hash-Based Scheme?
A natural question, given the storage and human-interaction costs of the proposed scheme, is under what conditions this trade-off is preferable to a comparably lightweight hash-based mutual authentication protocol (e.g., a hash-and-XOR or HMAC-based scheme such as [6,21]), which typically requires only tens of bytes of stored credential per party and no human involvement at all. We argue the proposed approach is the preferable choice specifically when (i) an autonomous, unattended verifier cannot, by policy or by design, be given sole authority to accept or reject an authentication attempt, and a human decision-maker is required or desired in the loop for accountability or oversight—e.g., physical access control to a restricted area, safety-critical actuation, or high-value transaction approval; (ii) the deployment specifically seeks to avoid any dependence on a general-purpose cryptographic hash or cipher implementation on the constrained endpoint, relying only on bitwise XOR and display hardware (a screen or printed badge) already present for other purposes; or (iii) reduced exposure to implementation-level side-channel leakage on the endpoint is desired, since long-term secret material (the visual shares) is combined only via XOR during authentication and never processed through a hash or cipher implementation on the device itself, narrowing the timing/power side-channel surface relative to hash-evaluation-based schemes. Conversely, when storage is constrained well below the size of an image share, when no human verifier is available or willing to participate, or when high-frequency, sub-second, fully unattended machine-to-machine authentication is required, a lightweight hash-based scheme remains the preferable choice. This clarifies the intended deployment niche of the proposed protocol relative to conventional lightweight alternatives, consistent with the applicability discussion of Section 7.7.
Limitations of the Study
Although the proposed protocol demonstrates the feasibility of mutual authentication using enhanced XOR-based visual cryptography, several limitations should be acknowledged. First, the protocol assumes the existence of a trusted authority responsible for securely generating and distributing the visual shares and the shared secret seed during enrollment; Section 5.2.2 discusses three concrete, complementary mitigations (threshold enrollment, ephemeral/offline operation, and auditable enrollment logging) that reduce, though do not eliminate, the impact of this assumption, and this remains an open avenue for future strengthening. Second, the security analysis assumes that long-term secrets are protected using appropriate secure-storage mechanisms, while implementation-level threats such as physical device capture, insider compromise, and side-channel attacks remain outside the scope of this work. Finally, in its default configuration, authentication relies on human visual perception to recognize the reconstructed image. As discussed in Section 6.2, the perceptual task presented to the verifier is deliberately made easy by construction—valid reconstructions are perceptually perfect and invalid ones are perceptually featureless (Table 2), rather than differing by degree—which is what makes this reliance defensible under normal viewing conditions. The residual dependency this creates is on the verifier’s own visual ability: users with significant visual impairment, or verification performed under extreme display or lighting conditions, could in principle still affect the accept/reject decision. This is not a limitation specific to the proposed scheme but one inherent to any authentication mechanism relying on human sensory judgment, including classical visual cryptography [15] and biometric authentication methods more broadly (e.g., fingerprint, iris, or face recognition), which similarly exhibit non-zero failure-to-enroll and failure-to-verify rates for certain user populations. The proposed protocol is therefore primarily intended for controlled deployment environments, such as IoT systems, smart buildings, healthcare infrastructures, and industrial facilities.
The proposed scheme demonstrates that authentication can be formulated as the reconstruction of a constrained XOR-based visual structure rather than solely as a cryptographic verification process. This formulation provides a lightweight and human-centric authentication mechanism that is particularly suitable for resource-constrained and visually interactive environments.
Future work will explore extensions to multi-party authentication, adaptive share assignment strategies, support for grayscale and color images, decentralized enrollment mechanisms, and practical deployment in real-world IoT and edge-computing systems.
Author Contributions
Conceptualization, C.H.; methodology, C.H., C.A. and M.S.; investigation, C.H.; writing—original draft preparation, C.H.; writing—review and editing, C.A. and M.S.; supervision, C.A. and M.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
All data generated or analyzed during this study are included within this article.
Acknowledgments
The authors would like to thank the editor and the anonymous reviewers for their constructive comments and suggestions, which helped improve the clarity and quality of this manuscript.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Ma, Q.; Tan, H.; Zhou, T. Mutual authentication scheme for smart devices in IoT-enabled smart home systems. Comput. Stand. Interfaces 2023, 86, 103743. [Google Scholar] [CrossRef] [Scilit]
- Jan, M.A.; Zhang, W.; Akbar, A.; Song, H.; Khan, R.; Chelloug, S.A. A hybrid mutual authentication approach for AIoMT. IEEE Internet Things J. 2024, 11, 311–320. [Google Scholar] [CrossRef] [Scilit]
- Haj-Hassan, A.; Imine, Y.; Gallais, A.; Quoitin, B. Consensus-based mutual authentication scheme for industrial IoT. Ad Hoc Netw. 2023, 145, 103162. [Google Scholar] [CrossRef] [Scilit]
- Khadidos, A.O.; Shitharth, S.; Manoharan, H.; Yafoz, A.; Khadidos, A.O.; Alyoubi, K.H. Intelligent security framework based on collaborative mutual authentication. IEEE Access 2022, 10, 85289–85304. [Google Scholar] [CrossRef] [Scilit]
- Park, Y.; Ryu, D.; Kwon, D.; Park, Y. Provably secure mutual authentication scheme using PUF in Internet of Drones deployments. Sensors 2023, 23, 2034. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Gupta, A.; Tripathi, M.; Muhuri, S.; Singal, G.; Kumar, N. Lightweight anonymous mutual authentication for MIoT. J. Inf. Secur. Appl. 2022, 68, 103259. [Google Scholar] [CrossRef] [Scilit]
- Ehuil, B.B.; Chen, C.; Wang, S.; Guo, H.; Liu, J. Secure mutual authentication protocol based on visual cryptography for IoT-cloud. Chin. J. Electron. 2024, 33, 43–57. [Google Scholar] [CrossRef] [Scilit]
- Kang, Y.; Kanwal, S.; Liu, B.; Zhang, D. Ghost key distribution under mutual authentication mechanism. Inf. Sci. 2023, 640, 119025. [Google Scholar] [CrossRef] [Scilit]
- Gong, B.; Wu, Y.; Badshah, A.; Waqas, M. Certificateless anonymous mutual authentication scheme for IoT. IEEE Trans. Dependable Secure Comput. 2025, 22, 7508–7520. [Google Scholar] [CrossRef] [Scilit]
- Elhence, A.; Chamola, V. HardSecUAV: Hardware-based mutual authentication protocol for UAV networks. Comput. Electr. Eng. 2025, 123, 110286. [Google Scholar] [CrossRef] [Scilit]
- Kara, M.; Karampidis, K.; Sayah, Z.; Laouid, A.; Papadourakis, G.; Abid, M.N. Password-based mutual authentication protocol via zero-knowledge proof solution. In International Conference on Applied Cybersecurity; Springer Nature: Cham, Switzerland, 2023; pp. 31–40. [Google Scholar]
- Sharma, N.; Dhiman, P. Secure addressing mutual authentication scheme for smart IoT home networks. Multimed. Tools Appl. 2025, 84, 25111–25143. [Google Scholar] [CrossRef] [Scilit]
- Salem, F.M.; Khairy, R.; Ali, I.A. ECC-based lightweight mutual authentication scheme for smart grids. Int. J. Inf. Technol. 2025, 17, 4389–4399. [Google Scholar] [CrossRef] [Scilit]
- Chen, Y.; Chen, J. Biometrics-based mutual authentication and key agreement protocol for TMIS. Multimed. Tools Appl. 2023, 82, 16009–16032. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Naor, M.; Shamir, A. Visual cryptography. In Advances in Cryptology—EUROCRYPT’94; Springer: Berlin, Germany, 1995; pp. 1–12. [Google Scholar]
- Ryu, J.; Oh, J.; Kwon, D.; Son, S.; Lee, J.; Park, Y. Secure ECC-based three-factor mutual authentication protocol for telecare medical information system. IEEE Access 2022, 10, 11511–11526. [Google Scholar] [CrossRef] [Scilit]
- Wang, W.; Han, Z.; Gadekallu, T.R.; Raza, S.; Tanveer, J.; Su, C. Lightweight blockchain-enhanced mutual authentication protocol for UAVs. IEEE Internet Things J. 2024, 11, 9547–9557. [Google Scholar] [CrossRef] [Scilit]
- Cui, J.; Zhu, Y.; Zhong, H.; Zhang, Q.; Gu, C.; He, D. Efficient blockchain-based mutual authentication and session key agreement for cross-domain IIoT. IEEE Internet Things J. 2024, 11, 16325–16338. [Google Scholar] [CrossRef] [Scilit]
- Deebak, B.D.; Memon, F.H.; Khowaja, S.A.; Dev, K.; Wang, W.; Qureshi, N.M.F.; Su, C. A lightweight blockchain-based remote mutual authentication for AI-empowered IoT systems. IEEE Internet Things J. 2023, 10, 6652–6660. [Google Scholar] [CrossRef] [Scilit]
- Ryu, J.; Son, S.; Lee, J.; Park, Y.; Park, Y. Design of secure mutual authentication scheme for metaverse environments using blockchain. IEEE Access 2022, 10, 98944–98958. [Google Scholar] [CrossRef] [Scilit]
- Das, S.; Namasudra, S. A lightweight and anonymous mutual authentication scheme for medical big data. IEEE/ACM Trans. Comput. Biol. Bioinform. 2024, 21, 1106–1116. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Pu, C.; Wall, A.; Choo, K.-K.R.; Ahmed, I.; Lim, S. A lightweight and privacy-preserving mutual authentication and key agreement protocol for Internet of Drones environment. IEEE Internet Things J. 2022, 9, 9918–9933. [Google Scholar] [CrossRef] [Scilit]
- Chawla, D.; Mehra, P.S. QSMAH: A novel quantum-based secure cryptosystem using mutual authentication for healthcare in the Internet of Things. Internet Things 2023, 24, 100949. [Google Scholar] [CrossRef] [Scilit]
- Chihi, H.; Chahboun, A.; Mezroui, S. Alternative of Traditional Password Systems Using Enhanced Visual Cryptography. Discov. Comput. 2025, 28, 287. [Google Scholar] [CrossRef] [Scilit]
- Chihi, H.; Chahboun, A.; Mezroui, S. An Enhanced Visual Cryptography Framework for Smart Lock Authentication. Discov. Internet Things 2025, 5, 136. [Google Scholar] [CrossRef] [Scilit]
- Nir, Y.; Langley, A. ChaCha20 and Poly1305 for IETF Protocols; RFC 8439; Internet Engineering Task Force (IETF): Fremont, CA, USA, 2018. [Google Scholar]
- Barker, E.; Kelsey, J. Recommendation for Random Number Generation Using Deterministic Random Bit Generators; NIST Special Publication 800-90A Revision 1; National Institute of Standards and Technology: Gaithersburg, MD, USA, 2015.
- Shamir, A. How to share a secret. Commun. ACM 1979, 22, 612–613. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.








