Generation and authentication method and application method for credible business travel code of online house-hailing homestay
By generating and verifying trusted business travel codes, using CTID online certificate platform and blockchain technology, the problem of identity information leakage and inefficiency during online house reservations and homestays is solved, and efficient and secure identity verification and accommodation experience optimization are achieved.
Patent Information
- Application Number
- CN202510018599.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-07
AI Technical Summary
During the check-in process of online house-booking homestays, there are problems such as risk of identity information leakage and inefficiency, especially during the peak tourist season, it is easy for guests to queue up, affecting the check-in experience.
By collecting user information and ID card photos, performing preliminary verification and real-name authentication, a trusted business travel code with a unique authentication code with a time mark is generated, and using CTID network certificate platform and blockchain technology for identity verification and data encryption, forming a trusted business travel code with dual attributes of identity and license.
It improves the efficiency and security of identity verification of business accommodation, reduces the use of physical documents, reduces the complexity of verification, enhances data security, optimizes the accommodation experience, and realizes the concept of "integration of people and codes, identity consensus, and one-code pass".
Smart Images

Figure CN119941272A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of trusted business travel codes, and in particular to a method for generating and authenticating trusted business travel codes for online booking of rooms and homestays and an application method thereof. Background Art
[0002] With the development of society, there are more and more online-booked rooms and homestays. The registration of online-booked rooms and homestays requires real-name registration. During the registration process, users need to provide physical ID cards, which gives multiple parties the opportunity to access user identity information and increases the risk of user information leakage. In addition, the accommodation registration method relies on manual verification of ID cards, which is inefficient and can easily cause guests to wait in line, affecting the check-in experience, especially during the peak tourist season. For users, room cards will be assigned after checking in, and users need to manage the room cards, which is inconvenient. Summary of the invention
[0003] In order to solve the above technical problems or at least partially solve the above technical problems, the present invention provides a method and application method for generating and authenticating a trusted business travel code for online-booked rooms and homestays.
[0004] In a first aspect, the present invention provides a method for generating and authenticating a trusted business travel code for online booking rooms and homestays, comprising: collecting user information user_info and a user ID card photo id_card_image and preliminarily verifying the user identity; after the user identity is preliminarily verified, performing real-name authentication verification through a real-name authentication interface based on the user information user_info and the ID card photo id_card_image;
[0005] After the real-name authentication is passed, the user information user_info is transmitted to the CTID online certificate platform for authentication. After the user completes the user identity data authentication through the CTID online certificate platform, the CTID online certificate platform generates the corresponding online certificate data for the user based on the user identity data as the plain text data a_segment_data of the A segment code. After the authentication is successful, the hash timestamp algorithm GenerateHashTimestamp() is used to generate the encrypted user information encrypted_user_info with a unique authentication code timestamped_hash with a time stamp, which is convenient for the CTID online certificate platform to trace and verify the online certificate data of the trusted business travel code;
[0006] Obtain the electronic certificate information authorized by the user, and generate the plain text data of the B segment code according to the set format and rules based on the electronic certificate information provided by the user;
[0007] Generate the S segment code for verification based on the plain code data of the A segment code and the B segment code; combine and associate the generated A segment code, B segment code and S segment code according to the established coding standard to form a complete trusted online business travel plain code with dual attributes of identity and license;
[0008] The parts of the trusted network certificate business travel plain code combined_code are encrypted and obfuscated to obtain the encrypted and obfuscated result encrypted_combined_code; the encrypted and obfuscated result encrypted_combined_code of the trusted network certificate business travel plain code combinedcode is hashed, the hash result of the B segment code is associated with the electronic certificate, and the hash result of the A segment code corresponds to the network certificate data; the hash result is decrypted and encrypted, the encrypted information is converted into a QR code content and optimized to obtain a compressed QR code content, and a trusted business travel code in the form of a QR code is generated according to the compressed QR code content; wherein, the hash value of the encrypted and obfuscated result encrypted_combined_code and the salt value based on the user information are used to construct a verification mark.
[0009] Furthermore, when a user initiates a login registration operation on the homestay booking platform, the homestay booking platform records the initial login data based on the distributed ledger technology of the blockchain to ensure that the login behavior is traceable; the initial login data includes: login registration time and information about the device used for login;
[0010] When users initiate login or registration operations on the homestay booking platform, a dual verification mechanism of graphic verification code and SMS verification code is adopted: a complex graphic verification code is generated through a random deformed character and interference line generation algorithm, and the user provides the correct graphic verification code to request login or registration; a one-time password algorithm generates an SMS verification code with a shorter validity period, and the user provides the correct SMS verification code to request login or registration.
[0011] Furthermore, the preliminary verification of the user's identity includes: extracting the ID card information extracted_info from the ID card photo through OCR for extracting ID card photo information on the homestay booking platform, and the ID card information extracted_info includes: name extracted_info.name, ID card number extracted_info.id_number;
[0012] PerformLivenessCheck(), a liveness detection algorithm based on facial action sequences, confirms that the user is truly alive;
[0013] The information redundancy check algorithm CheckRedundancy() for the ID number and name is used to check the weighted checksum of the ID number extracted_info.id_number in the document information, and to check the character rules of the name extracted_info.name in the document information, to achieve preliminary accuracy and completeness verification.
[0014] Furthermore, the verification of real-name authentication based on user information user_info and ID card photo id_card_image through the real-name authentication interface includes:
[0015] Use the data matching algorithm DataMatch() to verify whether the user information user_info and the ID card photo id_card_image match;
[0016] The image recognition algorithm ImageRecognition() is used to compare the features of the user's uploaded identity photo user_photo with the public security system's archived photos police_records to see if they are consistent. The user's uploaded identity photo user_photo is obtained from the ID card photo id_card_image; the public security system's archived photos police_records are obtained through the real-name authentication interface;
[0017] The multi-dimensional data information multiple_databases of multiple databases such as the public security system is integrated through the multi-data source cross-validation algorithm CrossValidation(), and the multi-dimensional data information multiple_databases and user information user_info are cross-validated in multiple dimensions. If the cross-validation fails, the reason and number of failures are recorded. When the number reaches the threshold, the manual review process is started;
[0018] Combine the above three methods to perform real-name authentication. If real-name authentication fails, it will prompt that real-name authentication failed and you need to try again.
[0019] Furthermore, the CTID online certificate platform collects user identity data user_identity_data through CollectUserIdentityData(), and verifies user identity data user_identity_data through ValidateUserIdentity(). If the verification is successful, the CTID online certificate platform issues the online certificate data as the plain text data a_segment_data of the A segment code according to the user identity data user_identity_data through IssueNetIDData(); the user information user_info is processed into encrypted user information encrypted_user_info through the blockchain encryption protocol EncryptUsingBlockchain(), and after the authentication is successful, the hash timestamp algorithm GenerateHashTimestamp() is used to generate a unique authentication code timestamped_hash with a time stamp for the encrypted user information encrypted_user_info, which is convenient for the CTID online certificate platform to trace and verify the trusted business travel code.
[0020] Furthermore, the electronic certificate information electronic_id_info is collected from the electronic certificate data electronic_id_data provided by the user through CollectElectronicIDInfo(), and the homestay booking platform verifies the validity through ValidateElectronicID(). If the verification is successful, the plain text data b_segment_data of the B segment code is generated.
[0021] Furthermore, the encrypted information is converted into QR code content and optimized including:
[0022] The Reed-Solomon error correction code algorithm ReedSolomonEncode() is used to perform error correction coding on the information obtained by splicing the encrypted ciphertext and metadata, and redundant information is added;
[0023] The adaptive data compression algorithm CompressData() is used to dynamically adjust the compression strategy according to the capacity limit of the QR code and the data characteristics to process the QR code content to obtain the compressed QR code content compressed_data.
[0024] Furthermore, the trusted business travel code in the form of a QR code generated according to the compressed QR code content includes:
[0025] The DNA-based color image encryption algorithm VisualEncrypt() hides the key information of the QR code in the QR code image;
[0026] The YOLOv8-based optimization method YOLOv8Optimize() is used to perform edge enhancement and contrast adjustment operations on the QR code image.
[0027] Furthermore, the authentication process of the trusted business travel code includes:
[0028] The relevant verification party reads the trusted business travel code;
[0029] Decrypt the content scanned_code of the trusted business travel code to obtain the decrypted result decrypted_code, and extract the content of the A segment code, the B segment code and the S segment code from the decrypted result decrypted_code;
[0030] Verify the B segment code through the electronic certificate associated with the hash result of the B segment code, and verify the A segment code through the hash result of the A segment code corresponding to the network certificate data;
[0031] The hash result of the electronic certificate A segment code associated with the hash result of the B segment code corresponds to the network certificate data verification S segment code;
[0032] The final verification result is obtained by combining the verification results of the three codes A, B, and S.
[0033] In a second aspect, the present invention provides a registration method based on a trusted business travel code, comprising: booking a service online and generating a trusted business travel code;
[0034] Scan the trusted business travel code and generate business registration information based on the scanned content;
[0035] Generate a verification request based on the scanned A code segment, B code segment and face image, and initiate verification using the verification request;
[0036] After identity verification, the business serial number is generated and confirmed through the user identity information associated with the B code segment;
[0037] The relevant user identity information and returned business serial number are entered into the room registration information to complete the registration.
[0038] The above technical solution provided by the embodiment of the present invention has the following advantages compared with the prior art:
[0039] This application relies on the CTID online certificate platform to generate a personal identity identifier associated with and bound to personal data, and then generate a trusted business travel code with dual attributes of identity and business. The information capacity of this trusted business travel code is fixed and will not increase with the accumulation of information. In practical applications, the concept of "integration of people and codes, identity consensus, and one-code access" is realized through personal identity identification, which not only ensures the efficiency of travel, but also realizes accurate management. The present invention improves the identity verification efficiency and security of business accommodation, reduces the use of physical certificates, reduces the complexity of verification and enhances data security, while optimizing the accommodation experience. The following aspects are specifically implemented: ① Improve safety and convenience: Improve the safety and convenience of business accommodation and optimize the accommodation experience. ② Improve registration efficiency: Reduce the waiting time of passengers at the front desk, and quickly complete information collection and verification by scanning the accommodation code. ③ Enhance information security: With the help of CTID online certificate encryption technology and authoritative authentication mechanism, identity information leakage and impersonation are prevented. ④ Optimize management process: Automatically enter and update accommodation information, reduce manual operation errors and workload. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A flowchart of a method for generating and authenticating a trusted business travel code for online booking of a room or homestay provided by an embodiment of the present invention;
[0043] Figure 2 A schematic diagram of a trusted business travel code provided by an embodiment of the present invention;
[0044] Figure 3 An architectural diagram of business registration based on a trusted business travel code provided in an embodiment of the present invention;
[0045] Figure 4 A flowchart of business registration based on a trusted business travel code provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0047] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0048] Example 1
[0049] like Figure 1 As shown, the technology of the present invention realizes a method for generating and authenticating a trusted business travel code for online booking rooms and homestays, and the present invention includes the following steps:
[0050] The process of generating a trusted business travel code includes:
[0051] Step 1: Log in and register on the homestay booking platform.
[0052] The user initiates the login and registration operation on the APP or mini program of the homestay booking platform.
[0053] When a user initiates a login and registration operation on the homestay booking platform, the initial login data is collected and recorded in a distributed ledger based on the blockchain. The initial login data includes the login registration time and the device information used for login. The initial login data is recorded in a distributed ledger to ensure that the login behavior is traceable.
[0054] When a user logs in or registers on the homestay booking platform, a dual verification mechanism of graphic verification code and SMS verification code is used:
[0055] A complex graphic verification code is generated through a random deformed character and interference line generation algorithm. The user provides the correct graphic verification code to request login and registration to prevent automatic machine recognition. The one-time password algorithm generates a text message verification code with a shorter validity period. The user provides the correct text message verification code to request login or registration to prevent malicious registration and brute force cracking.
[0056] The code is as follows:
[0057]
[0058] Step 2: Collect user information user_info and user ID card photo id_card_image and preliminarily verify the user's identity.
[0059] User uploads ID card photo id_card_image;
[0060] The ID card information extracted_info is extracted from the ID card photo through OCR, and the ID card information extracted_info includes: name extracted_info.name, ID card number extracted_info.id_number;
[0061] The liveness detection algorithm PerformLivenessCheck() based on facial action sequence confirms that the user is real and alive to prevent fake photos or videos. The liveness detection algorithm requires the user to perform actions such as blinking and shaking the head to obtain the facial action sequence. The liveness detection algorithm PerformLivenessCheck() returns the detection result liveness_result.
[0062] The information redundancy check algorithm CheckRedundancy() for ID number and name verifies the weighted checksum of the ID number extracted_info.id_number in the document information and the character rules of the name extracted_info.name in the document information to achieve preliminary accuracy and completeness verification. The information redundancy check algorithm CheckRedundancy() returns the verification result initial_validation.
[0063] The code is as follows:
[0064]
[0065] Step 3: After the user identity is initially verified, the real-name authentication is verified through the real-name authentication interface based on the user information user_info and the ID card photo id_card_image.
[0066] Step 3 includes: verifying whether the user information user_info and the ID card photo id_card_image match by using the data matching algorithm DataMatch(). The data matching algorithm DataMatch() returns the matching result as match_result.
[0067] The image recognition algorithm ImageRecognition() is used to compare the features of the user's uploaded identity photo user_photo with the police system's archived photos police_records to see if they are consistent. The user's uploaded identity photo user_photo is obtained from the ID card photo id_card_image; the police system's archived photos police_records are obtained through the real-name authentication interface. The image recognition algorithm ImageRecognition() returns the image matching result as image_match_result.
[0068] The multi-dimensional data information multiple_databases of multiple databases such as the public security system is integrated through the multi-data source cross-validation algorithm CrossValidation(), and the multi-dimensional data information multiple_databases and user information user_info are cross-validated in multiple dimensions to reduce the misjudgment rate. The multi-data source cross-validation algorithm CrossValidation() returns the cross-validation result as cross_validation_result. If the cross-validation fails, the reason and number of failures are recorded. When the number reaches the threshold, the manual review process is started.
[0069] The code is as follows:
[0070]
[0071] Combine the above three methods to perform real-name authentication. If real-name authentication fails, it will prompt that real-name authentication failed and you need to try again.
[0072] Step 4: Transmit the user information user_info to the CTID online certification platform for authentication. After the user completes the user identity data authentication through the CTID online certification platform, the CTID online certification platform generates the corresponding online certification data for the user based on the user identity data as the plain text data a_segment_data of the A segment code;
[0073] During the specific implementation process, the CTID network certificate platform collects user identity data user_identity_data through CollectUserIdentityData(), and verifies user identity data user_identity_data through ValidateUserIdentity(). If the verification passes, the CTID network certificate platform issues network certificate data as the plain text data a_segment_data of segment A based on the user identity data user_identity_data through IssueNetIDData(), otherwise, it returns "invalid user identity".
[0074] The code is as follows:
[0075]
[0076]
[0077] In the specific implementation process, the user information user_info is processed into encrypted user information encrypted_user_info through the blockchain encryption protocol EncryptUsingBlockchain() to ensure data confidentiality and integrity. After successful authentication, the hash timestamp algorithm GenerateHashTimestamp() is used to generate a unique authentication code timestamped_hash with a time stamp for the encrypted user information encrypted_user_info, which is convenient for traceability and verification.
[0078] The code is as follows:
[0079]
[0080] Step 5: Obtain the electronic certificate information electronic_id_info provided by the user, and generate the B segment code according to the set format and rules based on the electronic certificate information electronic_id_info provided by the user.
[0081] CollectElectronicIDInfo() collects the electronic certificate information electronic_id_info from the electronic certificate data electronic_id_data provided by the user, and the homestay booking platform verifies the validity through ValidateElectronicID(). If the verification passes, CreateBSegmentCode() generates the plain text data b_segment_data of the B segment code.
[0082] The code is as follows:
[0083] FUNCTION GenerateBSegment(electronic_id_data)
[0084]
[0085] The B segment code corresponds to the electronic certificate presented by the witness, which is the business attribute of the trusted business travel code. It identifies the type and purpose of the electronic certificate and associates relevant information, such as the validity period and issuing authority, for business process control, such as authority control and process approval. The B segment code works together with the A segment code to realize the identity authentication and business functions of the electronic certificate.
[0086] Step 6: Generate S segment code based on the plain code data of A segment code and B segment code.
[0087] The process includes: receiving the A segment code and the B segment code; using the CalculateChecksum() algorithm to calculate the checksum of the A segment code and the B segment code, and combining the checksum with the A segment code and the B segment code to form the S segment code.
[0088] The S segment code plays a supplementary or verification role. The S segment code contains check bit information, which is calculated by a specific algorithm on the A segment code and the B segment code to verify the accuracy and integrity of the entire trusted business travel code and prevent errors in data transmission or generation.
[0089] The code is as follows:
[0090]
[0091]
[0092] Step 7: Combine and associate the generated A-segment code, B-segment code and S-segment code according to the established coding standard to form a complete trusted online business travel code combined_code with dual attributes of identity and certificate.
[0093] The generated A segment code, B segment code and S segment code are combined and associated according to the established encoding standard through EncodeSegments().
[0094] The code is as follows:
[0095]
[0096] An established encoding standard uses delimiters to connect segments, or encodes them in a specific order and format.
[0097] delimiter="-"
[0098] combined_code=A_segment+delimiter+B_segment+delimiter+S_segment;
[0099] The parts of the trusted network certificate business travel plain code combined_code are encrypted and obfuscated to obtain the encrypted and obfuscated result encrypted_combined_code.
[0100] The various parts of the elliptic curve encryption technology EncryptUsingECC() are encrypted and obfuscated to ensure that data is not easily stolen or tampered with during storage and transmission, thereby improving data security.
[0101] encrypted_combined_code=EncryptUsingECC(combined_code)
[0102] Step 8: Hash the encrypted and obfuscated result encrypted_combined_code of the trusted network certificate business travel plain code combinedcode. Use the SHA-256 hash algorithm to hash the encrypted and obfuscated CombinedCode to obtain the hash value hash_CombinedCode of the encrypted and obfuscated result encrypted_combined_code.
[0103] The encrypted and obfuscated result encrypted_combined_code of the trusted network certificate business travel code combinedcode is processed using the SHA-256 hash algorithm to generate a fixed-length hash value to ensure the irreversibility and integrity of the information. In the specific implementation process, a multi-core GPU processor is used to perform SHA-256 hash operations on multiple encrypted and obfuscated CombinedCode data blocks at the same time to improve the operation speed. The Bloom filter is used to quickly screen and detect collisions with hash values to ensure uniqueness.
[0104] Combine the B-segment code, hash value and salt value to associate the B-segment code with the identity information: The GenerateHMAC() algorithm combines the system timestamp, the random string generated by the random number generator and the user information to generate the salt value hmac_value, which increases randomness and security, resists rainbow table attacks, and comprehensively guarantees the quality of the verification mark.
[0105] The code is as follows:
[0106]
[0107] Step 9: Encrypt the hash value in a decryptable way:
[0108] The AES encryption algorithm AESEncrypt() is combined with the dynamic key dynamic_key generated by the TOTP dynamic key generation algorithm to encrypt the hash value hash_CombinedCode of the encrypted obfuscation result encrypted_combined_code to obtain the AES encrypted information aes_encrypted_info;
[0109] Encrypt the hashed information. This step focuses on further encryption of the hashed information. By using a variety of encryption algorithms, on the one hand, the security and integrity of data during storage and transmission are guaranteed to prevent information leakage and tampering; on the other hand, the characteristics of specific encryption algorithms are used to meet the subsequent data analysis needs, so that the entire system still has good data processing and analysis capabilities while ensuring data security.
[0110] The code is as follows:
[0111]
[0112] Step 10: Convert the encrypted information into QR code content and optimize it.
[0113] The Reed-Solomon error correction code algorithm ReedSolomonEncode() is used to perform error correction encoding on the information spliced from the encrypted ciphertext and metadata, adding redundant information to improve the fault tolerance of the QR code.
[0114] The adaptive data compression algorithm CompressData() is used to dynamically adjust the compression strategy according to the capacity limit of the QR code and the characteristics of the data to process the QR code content to obtain the compressed QR code content compressed_data, thereby improving data storage efficiency and generation speed, and avoiding increased processing time due to data volume exceeding the capacity limit; the compression strategy includes Huffman coding or arithmetic coding.
[0115] The code is as follows:
[0116]
[0117] By using specific data encoding and format conversion algorithms, the encrypted information is further processed and the entire QR code content generation process is optimized to ensure that the generated QR code can accurately carry the encrypted key information, has good fault tolerance and meets capacity limit requirements, so that it can be used stably and efficiently in subsequent display and scanning verification operations.
[0118] Step 11: Generate a trusted business travel code in the form of a QR code based on the compressed QR code content.
[0119] The DNA-based color image encryption algorithm VisualEncrypt() hides the key information of the QR code in the QR code image, improving the anti-counterfeiting and security performance and preventing malicious forgery and information theft.
[0120] The YOLOv8-based optimization method YOLOv8Optimize() is used to perform edge enhancement and contrast adjustment operations on the QR code image to improve readability and recognition rate in different environments, expand application scenarios and ease of use, and enhance user experience and business operation efficiency.
[0121] The code is as follows:
[0122]
[0123] Certification of trusted business travel code:
[0124] The relevant verification party reads the trusted business travel code through a scanning device or software;
[0125] Decrypt the trusted business travel code, and then extract the contents of the A segment code, B segment code, and S segment code for verification. Through interaction with the CTID online certificate platform and the electronic certificate system, confirm whether the user identity corresponding to the A segment code is legal, whether the electronic certificate pointed to by the B segment code is authentic and valid, and whether the S segment code has passed the verification, etc., thus completing the entire certificate display verification process.
[0126] During the specific implementation process, the verifier reads the trusted business travel code through a code scanning device or software, assigns the read content to scanned_code, decrypts the content scanned_code of the trusted business travel code, obtains the decrypted result decrypted_code, and extracts the content of the A segment code, the B segment code and the S segment code from the decrypted result decrypted_code;
[0127] Verify the B segment code through the electronic certificate associated with the hash result of the B segment code, and verify the A segment code through the hash result of the A segment code corresponding to the network certificate data;
[0128] The hash result of the electronic certificate A segment code associated with the hash result of the B segment code corresponds to the network certificate data verification S segment code;
[0129] The final verification result is obtained by combining the verification results of the three codes A, B, and S. The code is as follows:
[0130]
[0131] Example 2
[0132] See also Figure 3 and Figure 4 As shown, the embodiment of the present invention provides a registration method based on a trusted business travel code. By scanning the trusted business travel code, the user's identity information is verified and confirmed, and finally the room registration is completed. The specific business process includes:
[0133] Book business online through online booking websites and generate a trusted business travel code;
[0134] During registration, the business registration window scans the trusted business travel code MERC HANT_TRAVEL_CODE through ScanQRCode(), and generates business registration information REGISTRATION_INFO based on the scanned content SCANNED_DATA;
[0135]
[0136]
[0137] The business registration window generates a verification request VALIDATION_RESPONSE based on the scanned A code segment A_CODE, B code segment B_CODE and face image FACE_IMAGE, and uses the verification request VALIDATION_RESPONSE to initiate verification to the business service system; the code is as follows:
[0138]
[0139] The business service system uploads the A code segment, B code segment and face image, and interacts with the trusted business travel code platform to verify the identity. The trusted business travel code platform interacts with the CTID online certificate platform when verifying the A code segment. The code is as follows:
[0140]
[0141] After identity verification, the business service system generates a business serial number BUSINESS_SERIAL_NUMBER through the user identity information ASSOCIATED_IDENTITY_INFO associated with the B code segment. The code is as follows:
[0142]
[0143] Confirm the user identity information associated with the B code segment ASSOCIATE ED_IDENTITY_INFO and the returned business serial number BUSINESS_SERIAL_NUMB ER in the business registration window. The code is as follows:
[0144]
[0145] The business registration window enters the relevant user identity information ASSOCIATED_IDENTITY_INFO and the returned business serial number BUSINESS_SERIAL_NUMBER into the room registration information maintained by the room registration management system.
[0146]
[0147] Return the business processing results and complete the room registration.
[0148]
[0149] In the embodiments provided by the present invention, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the structural embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, structures or units, which can be electrical, mechanical or other forms.
[0150] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0151] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0152] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for generating and authenticating a trusted business code for online booking rooms and homestays, characterized in that: include: Collect user information user_info and user ID card photo id_card_image and preliminarily verify the user's identity; After the user's identity is initially verified, the real-name authentication interface is used to verify the user's identity based on the user's information user_info and the ID card photo id_card_image; After the real-name authentication is passed, the user information user_info is transmitted to the CTID online certificate platform for authentication. After the user completes the user identity data authentication through the CTID online certificate platform, the CTID online certificate platform generates the corresponding online certificate data for the user based on the user identity data as the plain text data a_segment_data of the A segment code. After the authentication is successful, the hash timestamp algorithm GenerateHashTimestamp() is used to generate the encrypted user information encrypted_user_info with a unique authentication code timestamped_hash with a time stamp, which is convenient for the CTID online certificate platform to trace and verify the online certificate data of the trusted business travel code; Obtain the electronic certificate information authorized by the user, and generate the plain text data of the B segment code according to the set format and rules based on the electronic certificate information provided by the user; Generate the S segment code for verification based on the plain code data of the A segment code and the B segment code; combine and associate the generated A segment code, B segment code and S segment code according to the established coding standard to form a complete trusted online business travel plain code with dual attributes of identity and license; The parts of the trusted network certificate business travel plain code combined_code are encrypted and obfuscated to obtain the encrypted and obfuscated result encrypted_combined_code; the encrypted and obfuscated result encrypted_combined_code of the trusted network certificate business travel plain code combinedcode is hashed, the hash result of the B segment code is associated with the electronic certificate, and the hash result of the A segment code corresponds to the network certificate data; the hash result is decrypted and encrypted, the encrypted information is converted into a QR code content and optimized to obtain a compressed QR code content, and a trusted business travel code in the form of a QR code is generated according to the compressed QR code content; wherein, the hash value of the encrypted and obfuscated result encrypted_combined_code and the salt value based on the user information are used to construct a verification mark.
2. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: When a user initiates a login registration operation on the homestay booking platform, the homestay booking platform records the initial login data based on the distributed ledger technology of the blockchain to ensure that the login behavior is traceable; the initial login data includes: login registration time and login device information; When a user initiates a login or registration operation on the homestay booking platform, a dual verification mechanism of graphic verification code and SMS verification code is adopted: a complex graphic verification code is generated by a random deformed character and interference line generation algorithm, and the user provides the correct graphic verification code to request login or registration; The one-time password algorithm generates a text message verification code with a short validity period. The user provides the correct text message verification code to request login or registration.
3. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: The preliminary verification of the user's identity includes: extracting the ID card information extracted_info from the ID card photo through OCR for extracting ID card photo information on the homestay booking platform, and the ID card information extracted_info includes: name extracted_info.name, ID card number extracted_info.id_number; PerformLivenessCheck(), a liveness detection algorithm based on facial action sequences, confirms that the user is truly alive; The information redundancy check algorithm CheckRedundancy() for the ID number and name is used to check the weighted checksum of the ID number extracted_info.id_number in the document information, and to check the character rules of the name extracted_info.name in the document information, to achieve preliminary accuracy and completeness verification.
4. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: The verification of real-name authentication based on user information user_info and ID card photo id_card_image through the real-name authentication interface includes: Use the data matching algorithm DataMatch() to verify whether the user information user_info and the ID card photo id_card_image match; The image recognition algorithm ImageRecognition() is used to compare the features of the user's uploaded identity photo user_photo with the public security system's archived photos police_records to see if they are consistent. The user's uploaded identity photo user_photo is obtained from the ID card photo id_card_image; the public security system's archived photos police_records are obtained through the real-name authentication interface; The multi-dimensional data information multiple_databases of multiple databases such as the public security system is integrated through the multi-data source cross-validation algorithm CrossValidation(), and the multi-dimensional data information multiple_databases and user information user_info are cross-validated in multiple dimensions. If the cross-validation fails, the reason and number of failures are recorded. When the number reaches the threshold, the manual review process is started; Combine the above three methods to perform real-name authentication. If real-name authentication fails, it will prompt that real-name authentication failed and you need to try again.
5. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: The CTID online certificate platform collects user identity data user_identity_data through CollectUserIdentityData(), and verifies user identity data user_identity_data through ValidateUserIdentity(). If the verification is successful, the CTID online certificate platform issues the online certificate data as the plain text data a_segment_data of the A segment code according to the user identity data user_identity_data through IssueNetIDData(); the user information user_info is processed into encrypted user information encrypted_user_info through the blockchain encryption protocol EncryptUsingBlockchain(). After the authentication is successful, the hash timestamp algorithm GenerateHashTimestamp() is used to generate a unique authentication code timestamped_hash with a time stamp for the encrypted user information encrypted_user_info, which is convenient for the CTID online certificate platform to trace and verify the trusted business travel code.
6. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: CollectElectronicIDInfo() collects the electronic certificate information electronic_id_info from the electronic certificate data electronic_id_data provided by the user, and the homestay booking platform verifies the validity through ValidateElectronicID(). If the verification passes, the plain text data b_segment_data of the B segment code is generated.
7. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: Convert encrypted information into QR code content and optimize it including: The Reed-Solomon error correction code algorithm ReedSolomonEncode() is used to perform error correction coding on the information obtained by splicing the encrypted ciphertext and metadata, and redundant information is added; The adaptive data compression algorithm CompressData() is used to dynamically adjust the compression strategy according to the capacity limit of the QR code and the data characteristics to process the QR code content to obtain the compressed QR code content compressed_data.
8. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: The trusted business travel codes generated in the form of QR codes based on the compressed QR code content include: The DNA-based color image encryption algorithm VisualEncrypt() hides the key information of the QR code in the QR code image; The YOLOv8-based optimization method YOLOv8Optimize() is used to perform edge enhancement and contrast adjustment operations on the QR code image.
9. The method for generating and authenticating a trusted business code for online booking of a room or homestay according to claim 1, characterized in that: The authentication process of the trusted business travel code includes: The relevant verification party reads the trusted business travel code; Decrypt the content scanned_code of the trusted business travel code to obtain the decrypted result decrypted_code, and extract the content of the A segment code, the B segment code and the S segment code from the decrypted result decrypted_code; Verify the B segment code through the electronic certificate associated with the hash result of the B segment code, and verify the A segment code through the hash result of the A segment code corresponding to the network certificate data; The hash result of the electronic certificate A segment code associated with the hash result of the B segment code corresponds to the network certificate data verification S segment code; The final verification result is obtained by combining the verification results of the three codes A, B, and S.
10. A registration method based on a trusted business travel code, characterized in that: include: Book business online through online booking websites and generate a trusted business travel code; When registering, scan the trusted business travel code at the business registration window and generate business registration information based on the scanned content; The business registration window generates a verification request based on the scanned A code segment, B code segment and face image, and uses the verification request to initiate verification to the business service system; The business service system uploads the A code segment, B code segment and face image, interacts with the trusted business travel code platform, and conducts identity verification; after identity verification, the business service system generates a business serial number through the user identity information associated with the B code segment and is confirmed by the business registration window; The business registration window enters the relevant user identity information and the returned business serial number into the room registration information to complete the registration.
Citation Information
Patent Citations
M2M terminal control method and related device
CN105745954A
Payment method and device based on trusted digital identity two-dimensional code
CN112926969A
Security verification program generation method and device, equipment and storage medium
CN113360134A
Identity label registration method, identity label verification method, devices and systems
CN113641975A
Online house reservation management method and system based on credible bar code
CN114862630A