Building intercom system identity authentication method based on block chain
Through the identity authentication method of the building intercom system based on blockchain, a unique identification and public key pair is generated using hashing operations and elliptic curve encryption algorithms. Combined with blockchain storage and symmetric encryption, the security risks and network dependence problems of the building intercom system are solved, and the security and convenient authentication of identity information are achieved.
Patent Information
- Application Number
- CN202510432342.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-07-04
AI Technical Summary
The existing building intercom system identity authentication methods have security risks, such as identity information is easily cracked, data is easily tampered, and cannot work properly in an environment without a network or poor network, which affects the user experience.
The blockchain-based identity authentication method is adopted to generate a unique identifier H through hashing operation, and the public and private key pairs are generated using the elliptic curve encryption algorithm, and H and public keys are stored on the blockchain. The decentralized and immutable characteristics of the blockchain are used to combine symmetric encryption algorithms and digital signatures to realize the identity authentication process.
Ensure the security and reliability of user identity information, provide tamper-free operation logs, facilitate auditing and traceability, and can still complete identity authentication in a network-free environment, improving the convenience and response speed of the system.
Smart Images

Figure CN120263403A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of building intercom systems, and particularly relates to an identity authentication method for a building intercom system based on blockchain. Background Art
[0002] With the acceleration of the urbanization process, the scale of residential communities is constantly expanding, and residents' demands for the security and convenience of buildings are increasing day by day. As one of the important facilities for security prevention in residential communities, the security of the identity authentication mechanism of the building intercom system is directly related to the life and property safety of residents;
[0003] There are many security risks in the existing identity authentication methods of building intercom systems, such as identity information being easily cracked and data being easily tampered with, which cannot meet the high-security requirements of modern building intercom systems. Moreover, traditional identity authentication methods usually rely on centralized servers, which are easily affected by single-point failures and hacker attacks. In addition, the existing identity authentication methods cannot work properly in an environment without a network or with a poor network, affecting the user experience. To solve the above problems, an identity authentication method for a building intercom system based on blockchain is proposed in this application. Summary of the Invention
[0004] The present invention provides an identity authentication method for a building intercom system based on blockchain, which can effectively solve the problems raised in the above background art.
[0005] To achieve the above object, the present invention provides the following technical solution: An identity authentication method for a building intercom system based on blockchain, comprising the following steps:
[0006] S1: The user requests the building intercom system to register and provides the identity information ID. The building intercom system performs a hash operation on the identity information ID to generate a unique identifier H, and generates a user public key and private key pair using the elliptic curve cryptography algorithm (ECC). The building intercom system stores H and the public key on the blockchain;
[0007] S2: When the user requests to access the building intercom system, the device generates a random number N;
[0008] S3: The device signs H using the private key to generate a signature value Signature;
[0009] S4: The device sends Signature and N to the authentication node together;
[0010] S5: After receiving the request, the authentication node obtains the user's public key and H from the blockchain;
[0011] S6: The authentication node verifies Signature using the public key;
[0012] S7: Verification passed. The authentication node generates an authentication token Token containing the user identity information and a random number, Token = {H, N, Timestamp};
[0013] S8: The authentication node uses the symmetric encryption algorithm, AES, to encrypt Token and generates the encrypted authentication token Encrypted Token;
[0014] S9: The authentication node sends EncryptedToken to the user device;
[0015] S10: After receiving Encrypted Token, the user device decrypts it using the pre-shared key Key to obtain Token;
[0016] S11: The device verifies the validity of Token;
[0017] S12: Verification passed. The device sends an authentication success signal to the building intercom system to complete the identity authentication process, and the user can access the functions of the building intercom system normally.
[0018] Preferably, in S1, the identity information ID includes name, ID number, and mobile phone number. The hashing operation uses the SHA-256 algorithm, and the specific formula is as follows:
[0019] H = SHA-256(ID);
[0020] Where H is the generated hash value and ID is the user identity information.
[0021] Preferably, in S1, the elliptic curve encryption algorithm (ECC) is generated, and the specific formula is as follows:
[0022] Public Key = k.G PrivateKey = k;
[0023] Where G is the base point on the elliptic curve and k is a random number;
[0024] The building intercom system stores H and the public key on the blockchain to ensure the security and immutability of the identity information.
[0025] Preferably, in S2, the device generates a random number N to increase the unpredictability of the authentication process.
[0026] Preferably, in S3, the signature process uses the elliptic curve digital signature algorithm (ECDSA), and the specific formula is as follows:
[0027] Signature = ECDSA(H, Private Key).
[0028] Preferably, in S7, the generated authentication token Token includes user identity information, a random number N, and a timestamp.
[0029] Preferably, in S11, when the device verifies the validity of the Token, it specifically includes checking whether H is consistent with the locally stored H, checking whether N is consistent with the sent random number, and checking whether the timestamp is within the valid period.
[0030] Compared with the prior art, the beneficial effects of the present invention are:
[0031] Through the decentralized and immutable characteristics of the blockchain, the security and reliability of user identity information are ensured. All user operation records and permission information can be stored on the blockchain to form an immutable operation log, which is convenient for subsequent auditing and tracing. Moreover, in an environment without a network or with a poor network, users can still perform identity authentication through the locally stored keys and building intercom device information, and can complete identity authentication without relying on an Internet connection, improving the convenience and response speed of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation to the present invention. In the drawings:
[0033] Figure 1 is a flowchart of the identity authentication method for a building intercom system based on blockchain according to the present invention;
[0034] Figure 2 is a schematic diagram of the blockchain storage structure of the identity authentication method for a building intercom system based on blockchain according to the present invention;
[0035] Figure 3 is a flowchart of the authentication node verification of the identity authentication method for a building intercom system based on blockchain according to the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0037] Embodiment, as Figures 1-3 shown, an identity authentication method for a building intercom system based on blockchain includes the following steps:
[0038] S1: The user requests the building intercom system to register and provides identity information ID, including name, ID number, mobile phone number, etc. The building intercom system performs a hash operation on the identity information ID to generate a unique identifier H, where H = SHA-256(ID). An elliptic curve encryption algorithm (ECC) is used to generate a user public key and private key pair, which is generated by the elliptic curve encryption algorithm (ECC). The specific formula is as follows:
[0039] Public Key = k.G PrivateKey = k;
[0040] Where G is the base point on the elliptic curve and k is a random number;
[0041] The building intercom system stores H and the public key on the blockchain to ensure the security and immutability of the identity information;
[0042] S2: When the user requests to access the building intercom system, their device generates a random number N; this is used to increase the unpredictability of the authentication process;
[0043] S3: The device uses the private key to sign H, generating a signature value Signature; the signature process uses the elliptic curve digital signature algorithm (ECDSA). The specific formula is as follows:
[0044] Signature = ECDSA(H, Private Key);
[0045] S4: The device sends Signature and N together to the authentication node;
[0046] S5: After receiving the request, the authentication node retrieves the user's public key and H from the blockchain;
[0047] S6: The authentication node uses the public key to verify Signature;
[0048] S7: If the verification passes, the authentication node generates an authentication token Token that contains the user's identity information and the random number, Token = {H, N, Timestamp}. The generated authentication token Token contains the user's identity information, the random number N, and a timestamp;
[0049] S8: The authentication node uses the symmetric encryption algorithm, AES, to encrypt Token, generating an encrypted authentication token Encrypted Token;
[0050] S9: The authentication node sends EncryptedToken to the user device;
[0051] S10: After the user device receives the Encrypted Token, it decrypts it using the pre-shared key Key to obtain the Token;
[0052] S11: The device verifies the validity of the Token, including checking whether H is consistent with the locally stored H, checking whether N is consistent with the sent random number, and checking whether the timestamp is within the valid period;
[0053] S12: If the verification passes, the device sends an authentication success signal to the building intercom system to complete the identity authentication process, and the user can normally access the functions of the building intercom system.
[0054] This solution ensures the security and reliability of user identity information through the decentralized and immutable characteristics of the blockchain. All user operation records and permission information can be stored on the blockchain to form an immutable operation log, which is convenient for subsequent auditing and tracing. Moreover, in an environment without a network or with a poor network, users can still perform identity authentication using the locally stored key and building intercom device information, and complete the identity authentication without relying on an Internet connection, improving the convenience and response speed of the system.
[0055] Finally, it should be noted that the above are only the preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.
Claims
1. An identity authentication method for a building intercom system based on blockchain, characterized in that , including the following steps: S1: The user requests the building intercom system to register and provides the identity information ID. The building intercom system performs a hash operation on the identity information ID to generate a unique identifier H, generates a user public key and private key pair using the Elliptic Curve Cryptography (ECC) algorithm, and the building intercom system stores H and the public key on the blockchain; S2: When the user requests to access the building intercom system, their device generates a random number N; S3: The device signs H using the private key to generate a signature value Signature; S4: The device sends Signature and N to the authentication node together; S5: After receiving the request, the authentication node retrieves the user's public key and H from the blockchain; S6: The authentication node verifies Signature using the public key; S7: If the verification passes, the authentication node generates an authentication token Token containing the user's identity information and the random number, Token = {H, N, Timestamp}; S8: The authentication node encrypts Token using the symmetric encryption algorithm, AES, to generate the encrypted authentication token Encrypted Token; S9: The authentication node sends EncryptedToken to the user device; S10: After receiving Encrypted Token, the user device decrypts it using the pre-shared key Key to obtain Token; S11: The device verifies the validity of Token; S12: If the verification passes, the device sends an authentication success signal to the building intercom system to complete the identity authentication process, and the user can access the functions of the building intercom system normally.
2. The identity authentication method of the building intercom system based on blockchain according to claim 1, characterized in that: In S1, the identity information ID includes name, ID card number, and mobile phone number. The hash operation uses the SHA-256 algorithm, and the specific formula is as follows: H = SHA-256(ID); where H is the generated hash value and ID is the user identity information.
3. The identity authentication method of the building intercom system based on blockchain according to claim 1, wherein: In S1, the Elliptic Curve Cryptography (ECC) algorithm generates the following specific formula: Public Key = k.G PrivateKey = k; where G is the base point on the elliptic curve and k is a random number; The building intercom system stores H and the public key on the blockchain to ensure the security and immutability of the identity information.
4. The identity authentication method of the building intercom system based on blockchain according to claim 1, characterized in that: In S2, the device generates a random number N to increase the unpredictability of the authentication process.
5. The identity authentication method of the building intercom system based on blockchain according to claim 1, characterized in that: In S3, the signature process uses the Elliptic Curve Digital Signature Algorithm (ECDSA), and the specific formula is as follows: Signature = ECDSA(H, Private Key).
6. The identity authentication method of the building intercom system based on blockchain according to claim 1, characterized in that: In S7, the generated authentication token Token contains the user identity information, the random number N, and the timestamp.
7. The identity authentication method of the building intercom system based on blockchain according to claim 1, characterized in that: In S11, where the device verifies the validity of Token, specifically including checking whether H is consistent with the locally stored H, checking whether N is consistent with the sent random number, and checking whether the timestamp is within the valid period.