Login method and device of head-mounted device, electronic device and medium

By using a pass-through mode to scan the login QR code in a head-mounted device and employing random number and hash hashing techniques for server verification, the problems of long input time and error-proneness of virtual keyboard input are solved, achieving a convenient and secure login process.

CN115373515BActive Publication Date: 2026-04-24INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
Filing Date
2022-08-19
Publication Date
2026-04-24

AI Technical Summary

Technical Problem

Existing head-mounted devices require virtual keyboard input for login, which is time-consuming, error-prone, and results in a poor user experience. This is especially problematic in financial services, where the interaction process is fragmented, affecting both convenience and security.

Method used

The login QR code generated by the mobile terminal is scanned using a pass-through mode. An encrypted string is generated using random number and hash hashing technology. After verification by the server, the login operation is executed, avoiding the need for virtual keyboard input.

Benefits of technology

It improves the convenience and security of logging in with head-mounted devices, reduces the possibility of input errors, simplifies the login process, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115373515B_ABST
    Figure CN115373515B_ABST
Patent Text Reader

Abstract

The present disclosure provides a login method of a head-mounted device, which can be applied to the financial field or other fields. The method applied to the head-mounted device comprises: scanning a login two-dimensional code by using a transparent transmission mode, wherein the login two-dimensional code is generated by a mobile terminal; parsing the login two-dimensional code to obtain an encrypted string; sending the encrypted string to a server; obtaining a check result of the encrypted string, wherein the check result is obtained by the server by checking the encrypted string by using a database; and performing a login operation when the check result is passed. The present disclosure also provides a login method of a head-mounted device applied to a server, a login device of a head-mounted device, equipment, a storage medium and a program product.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of smart device technology, and can also be used in the financial field or other fields, and more specifically to a login method, apparatus, device, medium and program product for a head-mounted device. Background Technology

[0002] In the financial sector, it is becoming increasingly common to use head-mounted devices as interactive tools to assist users in accessing financial services. Users wear head-mounted devices to browse and access virtual branches provided by banks, and to converse with virtual digital avatars to consult and conduct financial transactions.

[0003] In realizing the present invention, the inventors discovered that current head-mounted devices require the use of a virtual keyboard to perform login operations, which is not only very time-consuming but also prone to input errors, making the login operation very inconvenient. Summary of the Invention

[0004] In view of the above problems, this disclosure provides a login method, apparatus, device, medium and program product for a head-mounted device.

[0005] According to a first aspect of this disclosure, a login method for a head-mounted device is provided, applied to the head-mounted device, the method comprising: scanning a login QR code using a pass-through mode, wherein the login QR code is generated by a mobile terminal; parsing the login QR code to obtain an encrypted string; sending the encrypted string to a server; obtaining a verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database; and performing a login operation when the verification result is successful.

[0006] According to an embodiment of this disclosure, the step of performing a login operation when the verification result is successful includes: sending a user's account information binding request to the server when the verification result is successful; and obtaining a binding success notification sent by the server and performing a login operation.

[0007] According to an embodiment of this disclosure, the step of generating a login QR code on a mobile terminal includes: randomly generating a first random number; sending the first random number to a server; obtaining a second string generated by the server based on the first random number, wherein the second string is generated using hashing technology; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using a QR code generation standard.

[0008] According to a second aspect of this disclosure, a login method for a head-mounted device is provided, applied to a server. The method includes: obtaining a first random number generated by a mobile terminal; generating a second string based on the first random number; sending the second string to the mobile terminal to enable the mobile terminal to generate a login QR code based on the second string; obtaining an encrypted string sent by the head-mounted device; verifying the encrypted string to obtain a verification result; and sending the verification result to the head-mounted device, wherein the verification result is used to: control the head-mounted device to perform a login operation when the verification result is successful.

[0009] According to an embodiment of this disclosure, the step of performing a login operation when the verification result is passed includes: receiving a user's account information binding request sent by the head-mounted device when the verification result is passed; binding the user's account information to the head-mounted device; and sending a binding success notification to the head-mounted device so that the head-mounted device performs a login operation.

[0010] According to an embodiment of this disclosure, the step of generating the second string based on the first random number includes: randomly generating a second random number; concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and performing a hash operation on the first string to generate a second string.

[0011] According to an embodiment of this disclosure, the step of sending the second string to the mobile terminal includes: storing the mapping relationship between the first random number, the second random number, the user identification number, and the first system timestamp and the second string in a database; and sending the second string to the mobile terminal.

[0012] According to an embodiment of this disclosure, the step of the mobile terminal generating a login QR code based on the second string includes: obtaining the second string; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using a QR code generation standard.

[0013] According to embodiments of this disclosure, the step of verifying the encrypted string and obtaining a verification result includes: parsing the encrypted string to obtain a second string and a first random number; using a database to find the first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; comparing the first system timestamp with the current system timestamp; when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, comparing the first random number in the database with the parsed first random number; and when the first random number in the database and the parsed first random number are consistent, the verification result is passed.

[0014] According to an embodiment of this disclosure, the method further includes: when the interval between the first system timestamp and the current system timestamp is greater than a preset time, the verification result is a failure.

[0015] According to an embodiment of this disclosure, the method further includes: when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, and when the first random number in the database is inconsistent with the parsed first random number, the verification result is a failure.

[0016] A third aspect of this disclosure provides a login method for a head-mounted device, the method comprising: a mobile terminal generating a first random number and sending the first random number to a server; the server generating a second string based on the first random number and sending the second string to the mobile terminal; the mobile terminal concatenating the second string with the first random number to generate an encrypted string, and converting the encrypted string into a login QR code using a QR code generation standard; the head-mounted device scanning the login QR code using a pass-through mode, parsing to obtain the encrypted string, and sending the encrypted string to the server; the server verifying the encrypted string, obtaining a verification result, and sending the verification result to the head-mounted device; and when the verification result is successful, the head-mounted device performing a login operation.

[0017] According to an embodiment of this disclosure, the step of the server generating a second string based on the first random number includes: the server generating a second random number; the server concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and the server performing a hash operation on the first string to generate a second string.

[0018] According to an embodiment of this disclosure, the step of the server sending the second string to the mobile terminal includes: the server storing the mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string in a database; and the server sending the second string to the mobile terminal.

[0019] According to an embodiment of this disclosure, the step of the server verifying the encrypted string and obtaining a verification result includes: the server parsing the encrypted string to obtain a second string and a first random number; the server using a database to search for a first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; the server comparing the first system timestamp with the current system timestamp; when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, comparing the first random number in the database with the parsed first random number; and when the first random number in the database and the parsed first random number are consistent, the verification result is passed.

[0020] A fourth aspect of this disclosure provides a login device for a head-mounted device, applied to the head-mounted device, comprising: a scanning module for scanning a login QR code using a pass-through mode, wherein the login QR code is generated by a mobile terminal; a parsing module for parsing the login QR code to obtain an encrypted string; a first sending module for sending the encrypted string to a server; a first obtaining module for obtaining a verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database; and a first login module for performing a login operation when the verification result is successful.

[0021] According to an embodiment of this disclosure, the first login module includes a first sending unit, configured to send a user's account information binding request to the server when the verification result is successful; and a login unit, configured to obtain a binding success notification sent by the server and perform a login operation.

[0022] The fifth aspect of this disclosure provides a login device for a head-mounted device, applied to a server, comprising: a second acquisition module for acquiring a first random number generated by a mobile terminal; a first generation module for generating a second string based on the first random number; a second sending module for sending the second string to the mobile terminal, so that the mobile terminal generates a login QR code based on the second string; a third acquisition module for acquiring an encrypted string sent by the head-mounted device; a verification module for verifying the encrypted string to obtain a verification result; and a third sending module for sending the verification result to the head-mounted device, wherein the verification result is used to: control the head-mounted device to perform a login operation when the verification result is successful.

[0023] According to an embodiment of this disclosure, the first generation module includes a first random unit for randomly generating a second random number; a concatenation unit for concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and a second generation unit for hashing the first string to generate a second string.

[0024] According to an embodiment of this disclosure, the second sending module includes a storage unit for storing the mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string in a database; and a first sending unit for sending the second string to the mobile terminal.

[0025] According to embodiments of this disclosure, the verification module includes a parsing unit for parsing the encrypted string to obtain a second string and a first random number; a search unit for searching a database for a first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; a first comparison unit for comparing the first system timestamp with the current system timestamp; a second comparison unit for comparing the first random number in the database with the parsed first random number when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time; and a verification unit for determining that the verification result is passed when the first random number in the database and the parsed first random number are consistent.

[0026] According to an embodiment of this disclosure, the verification unit is further configured to determine the verification result as a failure when the interval between the first system timestamp and the current system timestamp is greater than a preset time.

[0027] According to an embodiment of this disclosure, the verification unit is further configured to determine the verification result as a failure when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, and when the first random number in the database is inconsistent with the parsed first random number.

[0028] The sixth aspect of this disclosure provides a login device for a head-mounted device, comprising: a second generation module for controlling a mobile terminal to generate a first random number and send the first random number to a server; a third generation module for controlling the server to generate a second string based on the first random number and send the second string to the mobile terminal; a concatenation and conversion module for controlling the mobile terminal to concatenate the second string with the first random number to generate an encrypted string, and convert the encrypted string into a login QR code using a QR code generation standard; a scanning and parsing module for controlling the head-mounted device to scan the login QR code using a pass-through mode, parse the encrypted string to obtain it, and send the encrypted string to the server; a verification and sending module for controlling the server to verify the encrypted string, obtain a verification result, and send the verification result to the head-mounted device; and a third login module for controlling the head-mounted device to perform a login operation when the verification result is successful.

[0029] A seventh aspect of this disclosure provides an electronic device comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors perform the methods described above.

[0030] An eighth aspect of this disclosure also provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, cause the processor to perform the methods described above.

[0031] The ninth aspect of this disclosure also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method. Attached Figure Description

[0032] The foregoing contents, as well as other objects, features, and advantages of this disclosure, will become clearer from the following description of embodiments with reference to the accompanying drawings, in which:

[0033] Figure 1 The illustration schematically depicts an application scenario of a login method, apparatus, device, medium, and program product for a head-mounted device according to embodiments of the present disclosure;

[0034] Figure 2 A flowchart illustrating a login method for a head-mounted device applied to a head-mounted device according to an embodiment of the present disclosure is shown schematically.

[0035] Figure 3 A flowchart illustrating a login method for a head-mounted device applied to a server according to an embodiment of the present disclosure is shown schematically.

[0036] Figure 4 A flowchart illustrating a login method for a head-mounted device according to an embodiment of the present disclosure is shown schematically.

[0037] Figure 5 A schematic diagram illustrating a system architecture of a login method for a head-mounted device according to an embodiment of the present disclosure is shown.

[0038] Figure 6 This schematically illustrates a structural block diagram of a login device for a head-mounted device applied to a head-mounted device according to an embodiment of the present disclosure;

[0039] Figure 7 This schematically illustrates a structural block diagram of a login device for a head-mounted device applied to a server according to an embodiment of the present disclosure;

[0040] Figure 8 A schematic block diagram of a login device for a head-mounted device according to an embodiment of the present disclosure is shown; and

[0041] Figure 9 A block diagram schematically illustrates an electronic device suitable for implementing a login method for a head-mounted device according to an embodiment of the present disclosure. Detailed Implementation

[0042] The embodiments of the present disclosure will now be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the disclosure. In the following detailed description, numerous specific details are set forth to provide a thorough understanding of the embodiments of the present disclosure for ease of explanation. However, it will be apparent that one or more embodiments may be practiced without these specific details. Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts of the present disclosure.

[0043] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit this disclosure. The terms “comprising,” “including,” etc., as used herein indicate the presence of the stated features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0044] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein are to be interpreted in a manner consistent with the context of this specification, and not in an idealized or overly rigid way.

[0045] When using expressions such as "at least one of A, B, and C," it should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., "a system having at least one of A, B, and C" should include, but is not limited to, systems having A alone, having B alone, having C alone, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.). The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of the stated features.

[0046] Virtual Reality (VR) headsets are head-mounted displays that block out a person's vision and hearing, creating the feeling of being in a virtual environment. They were among the earliest VR displays. Their display principle involves the left and right eyes seeing images separately on the screens. The human eye receives this differentiated information and, in turn, perceives a virtual environment with a sense of depth. VR headsets have multiple external cameras that scan the user's surroundings, using algorithms to calculate the user's actual position and turning angle in space.

[0047] VR headset pass-through mode: Normally, VR headsets display program-generated virtual scenes. However, most VR headsets support pass-through mode, which means that the real external environment is captured by the camera and projected directly onto the screen inside the headset. Users can see the external environment through the screen. However, this mode is limited by the camera's capture effect and other limitations, so the display effect is limited.

[0048] In the financial sector, it is becoming increasingly common to use VR headsets as interactive tools to assist users in accessing financial services. For example, banks provide VR versions of their bank client apps. After installing the VR headset, users can wear the VR headset to browse and access the virtual branches provided by the bank within the app, and converse with virtual digital avatars to consult and conduct financial business.

[0049] In the practical application of VR headsets in financial scenarios, users are required to log in to their existing bank accounts (entering their online banking account and password). Due to the high security requirements of bank apps, the process typically includes a secondary authentication step via mobile phone verification. The main steps are as follows: The user puts on the VR headset, locates the bank app icon, clicks the app with the controller, opens the registration and login interface, clicks a text box, and a virtual keyboard pops up. The user uses the controller to click the corresponding virtual buttons to input characters, entering their username, password, and mobile phone number. The user then clicks the "Get Verification Code" button, and the bank app's server sends a verification code SMS to the user's phone. The user then removes the VR headset, checks their phone's SMS message, remembers the verification code, and then puts the headset back on, using the controller and virtual keyboard to enter the verification code to complete the user's identity verification.

[0050] As can be seen from the login process described above, current head-mounted devices require users to input characters sequentially using a virtual keyboard to log in. This process is not only time-consuming but also prone to errors, making the login process extremely inconvenient. Furthermore, users need to repeatedly remove and put on the VR headset during registration and login, resulting in a fragmented interaction flow and a poor user experience. In addition, for power-saving reasons, some VR headsets turn off the screen after the headset is removed and require a certain amount of time to restore it upon re-wearing. If the restoration time is long, the SMS verification code may have expired, requiring the user to obtain a new one and repeat the process of removing and putting on the headset again.

[0051] In view of the above problems, embodiments of this disclosure provide a login method for a head-mounted device, applied to a head-mounted device, the method comprising: scanning a login QR code using a pass-through mode, wherein the login QR code is generated by a mobile terminal; parsing the login QR code to obtain an encrypted string; sending the encrypted string to a server; obtaining a verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database; and performing a login operation when the verification result is successful.

[0052] Embodiments of this disclosure also provide a login method for a head-mounted device, applied to a server. The method includes: obtaining a first random number generated by a mobile terminal; generating a second string based on the first random number; sending the second string to the mobile terminal so that the mobile terminal generates a login QR code based on the second string; obtaining an encrypted string sent by the head-mounted device; verifying the encrypted string to obtain a verification result; and sending the verification result to the head-mounted device, wherein the verification result is used to: control the head-mounted device to perform a login operation when the verification result is successful.

[0053] Embodiments of this disclosure also provide a login method for a head-mounted device, the method comprising: a mobile terminal generating a first random number and sending the first random number to a server; the server generating a second string based on the first random number and sending the second string to the mobile terminal; the mobile terminal concatenating the second string with the first random number to generate an encrypted string, and converting the encrypted string into a login QR code using a QR code generation standard; the head-mounted device scanning the login QR code using a pass-through mode, parsing to obtain the encrypted string, and sending the encrypted string to the server; the server verifying the encrypted string, obtaining a verification result, and sending the verification result to the head-mounted device; and when the verification result is successful, the head-mounted device performing a login operation.

[0054] It should be noted that the method and apparatus specified in this disclosure can be used for login of head-mounted devices in the financial field, as well as for login of head-mounted devices in any field other than the financial field. The application field of the login method and apparatus for head-mounted devices disclosed in this disclosure is not limited.

[0055] In the technical solution disclosed herein, the collection, storage, use, processing, transmission, provision, disclosure, and application of user personal information comply with the provisions of relevant laws and regulations, necessary confidentiality measures have been taken, and there is no violation of public order and good morals.

[0056] In the technical solution disclosed herein, the user's authorization or consent is obtained before acquiring or collecting the user's personal information.

[0057] Figure 1 The illustration schematically depicts an application scenario of a login method, apparatus, device, medium, and program product for a head-mounted device according to embodiments of the present disclosure.

[0058] like Figure 1 As shown, application scenario 100 according to this embodiment may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as a medium for providing a communication link between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0059] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc. (for example only).

[0060] Terminal devices 101, 102, and 103 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0061] Server 105 can be a server that provides various services, such as a backend management server that supports websites browsed by users using terminal devices 101, 102, and 103 (for example only). The backend management server can analyze and process data such as received user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0062] It should be noted that the login method for the head-mounted device provided in this embodiment can generally be executed by server 105. Correspondingly, the login device for the head-mounted device provided in this embodiment can generally be located in server 105. The login method for the head-mounted device provided in this embodiment can also be executed by a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105. Correspondingly, the login device for the head-mounted device provided in this embodiment can also be located in a server or server cluster that is different from server 105 and capable of communicating with terminal devices 101, 102, 103 and / or server 105.

[0063] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0064] The following will be based on Figure 1 The described scene, through Figures 2-5 The login method of the head-mounted device according to the disclosed embodiments will be described in detail.

[0065] Figure 2 A flowchart illustrating a login method for a head-mounted device applied to a head-mounted device according to an embodiment of the present disclosure is shown.

[0066] like Figure 2 As shown, the login method for a head-mounted device applied to a head-mounted device in this embodiment includes operations S210 to S250.

[0067] In operation S210, the login QR code is scanned using the transparent transmission mode, wherein the login QR code is generated by the mobile terminal.

[0068] According to embodiments of this disclosure, the step of generating a login QR code on a mobile terminal includes: randomly generating a first random number; sending the first random number to a server; obtaining a second string generated by the server based on the first random number, wherein the second string is generated using hashing technology; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using QR code generation specifications. The mobile terminal can repeat the above login QR code generation process at preset time intervals to generate new login QR codes, preventing the risk of tampering due to excessively long intervals between QR code generation times.

[0069] In operation S220, the login QR code is parsed to obtain an encrypted string. This encrypted string is generated using random number generation and hashing techniques.

[0070] In operation S230, the encrypted string is sent to the server.

[0071] In operation S240, the verification result of the encrypted string is obtained, wherein the verification result is obtained by the server using the database to verify the encrypted string.

[0072] In operation S250, if the verification result is successful, the login operation is performed. If the verification result is unsuccessful, the login operation fails.

[0073] According to an embodiment of this disclosure, the step of performing a login operation when the verification result is successful includes: sending a user's account information binding request to the server when the verification result is successful; and obtaining a binding success notification sent by the server and performing a login operation.

[0074] In embodiments of this disclosure, user consent or authorization can be obtained before acquiring user account information. For example, a request to acquire user account information can be sent to the user, and if the user consents or authorizes the acquisition of user account information, a request to bind the user's account information to the server can be executed.

[0075] The login method for head-mounted devices provided in this disclosure is applied to head-mounted devices. The head-mounted device verifies the login by scanning a login QR code and performs the login operation. Since the login operation does not require the use of a virtual keyboard, the time is short and the verification is fast, which improves the convenience of logging in to head-mounted devices. In addition, by parsing the login QR code to obtain an encrypted string and verifying the encrypted string, the security of performing the login operation is further improved.

[0076] Figure 3A flowchart illustrating a login method for a head-mounted device applied to a server according to an embodiment of the present disclosure is shown schematically.

[0077] like Figure 3 As shown, the login method for a head-mounted device applied to a server in this embodiment includes operations S310 to S360.

[0078] In operation S310, the first random number generated by the mobile terminal is obtained.

[0079] In operation S320, the second string is generated based on the first random number.

[0080] According to an embodiment of this disclosure, the step of generating the second string based on the first random number includes: randomly generating a second random number; concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and performing a hash operation on the first string to generate a second string.

[0081] According to an embodiment of this disclosure, the step of sending the second string to the mobile terminal includes: storing the mapping relationship between the first random number, the second random number, the user identification number, and the first system timestamp and the second string in a database; and sending the second string to the mobile terminal.

[0082] In operation S330, the second string is sent to the mobile terminal so that the mobile terminal generates a login QR code based on the second string.

[0083] According to embodiments of this disclosure, the step of the mobile terminal generating a login QR code based on the second string includes: obtaining the second string; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using a QR code generation standard. The mobile terminal can repeat the above login QR code generation process at preset time intervals to generate new login QR codes, preventing the risk of tampering due to excessively long intervals between QR code generation times.

[0084] In operation S340, the encrypted string sent by the head-mounted device is obtained.

[0085] In operation S350, the encrypted string is verified to obtain the verification result.

[0086] According to embodiments of this disclosure, the step of verifying the encrypted string to obtain a verification result includes: parsing the encrypted string to obtain a second string and a first random number; using a database to find the first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; comparing the first system timestamp with the current system timestamp; when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, comparing the first random number in the database with the parsed first random number; and when the first random number in the database and the parsed first random number are consistent, the verification result is passed. The preset time can be set according to actual conditions, such as 1 minute, and this disclosure does not limit this. It should be noted that the mobile terminal generating a new login QR code every preset time mentioned above uses the same preset time as here, such as 1 minute, to ensure the smooth progress of the verification process.

[0087] According to an embodiment of this disclosure, the method further includes: when the interval between the first system timestamp and the current system timestamp is greater than a preset time, the verification result is a failure.

[0088] According to an embodiment of this disclosure, the method further includes: when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, and when the first random number in the database is inconsistent with the parsed first random number, the verification result is a failure.

[0089] In operation S360, the verification result is sent to the head-mounted device. The verification result is used to control the head-mounted device to perform a login operation when the verification result is successful.

[0090] According to an embodiment of this disclosure, the step of performing a login operation when the verification result is passed includes: receiving a user's account information binding request sent by the head-mounted device when the verification result is passed; binding the user's account information to the head-mounted device; and sending a binding success notification to the head-mounted device so that the head-mounted device performs a login operation.

[0091] The login method for head-mounted devices provided in this disclosure is applied to a server. The server uses random number and hash hashing technology, together with the mobile terminal, to generate a login QR code, and verifies the encrypted string parsed during the login process, thereby improving the convenience and security of login.

[0092] Figure 4 A flowchart illustrating a login method for a head-mounted device according to an embodiment of the present disclosure is shown schematically.

[0093] like Figure 4As shown, the login method for a head-mounted device applied to a server in this embodiment includes operations S410 to S460.

[0094] During operation S410, the mobile terminal generates a first random number and sends the first random number to the server.

[0095] In operation S420, the server generates a second string based on the first random number and sends the second string to the mobile terminal.

[0096] According to an embodiment of this disclosure, the step of the server generating a second string based on the first random number includes: the server generating a second random number; the server concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and the server performing a hash operation on the first string to generate a second string.

[0097] According to an embodiment of this disclosure, the step of the server sending the second string to the mobile terminal includes: the server storing the mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string in a database; and the server sending the second string to the mobile terminal.

[0098] In operation S430, the mobile terminal concatenates the second string with the first random number to generate an encrypted string, and uses the QR code generation standard to convert the encrypted string into a login QR code.

[0099] When operating S440, the head-mounted device scans the login QR code using the pass-through mode, parses it to obtain an encrypted string, and sends the encrypted string to the server.

[0100] In operation S450, the server verifies the encrypted string, obtains the verification result, and sends the verification result to the head-mounted device.

[0101] According to an embodiment of this disclosure, the step of the server verifying the encrypted string and obtaining a verification result includes: the server parsing the encrypted string to obtain a second string and a first random number; the server using a database to search for a first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; the server comparing the first system timestamp with the current system timestamp; when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, comparing the first random number in the database with the parsed first random number; and when the first random number in the database and the parsed first random number are consistent, the verification result is passed.

[0102] In operation S460, when the verification result is successful, the head-mounted device performs a login operation.

[0103] Figure 5 A schematic diagram illustrating a system architecture of a login method for a head-mounted device according to an embodiment of the present disclosure is provided.

[0104] like Figure 5 As shown, the login method for this headset involves four roles:

[0105] In-VR headset banking app: A banking application within a VR headset that requires user account authentication and device verification, hereinafter referred to as VRApp;

[0106] User: The actual user of VR headsets and mobile phones;

[0107] Mobile banking app: A mobile banking application used to assist in identity registration, login, binding and other operations. It is referred to as a mobile app. Mobile app and VR app belong to the same bank.

[0108] Mobile Banking App Backend Server: The backend server corresponding to the mobile banking app is responsible for the actual authentication and authorization. Both the VR app and the mobile app are connected to the backend server.

[0109] For example, the specific system interaction steps are as follows:

[0110] Step 1: After successfully logging in with their personal identity, users open the mobile app and click the "QR code binding" function.

[0111] Step 2: The mobile app generates a random number X and communicates with the backend server, sending X to the server. The server generates a random number Y for this binding function and concatenates it with the account UID and the current UTC system timestamp to generate the string: X_Y_UID_timestamp. This string is then hashed using SHA256 to generate the string H. The corresponding relationship between X, Y, UID, H, and the timestamp is stored in the backend database, and then the string H is sent to the mobile app.

[0112] Step 3: After receiving H, the mobile app concatenates it with the random number X to generate X_H. Using standard QR code generation specifications, the string X_H is used to generate a QR code image, which is displayed on the user's mobile app interface. Steps 2 and 3 above are repeated every 60 seconds to generate a new QR code.

[0113] Step 4: The user puts on the headset, uses the controller to open the VR APP, enters the account registration and binding function, and selects the QR code authentication and binding function.

[0114] Step 5: Enable pass-through mode on the VR headset, using the camera to transmit the outside world to the user's eyes, and the user looks at the QR code on their mobile phone through the camera.

[0115] Step 6: After the VRApp recognizes the QR code, it parses out X_H based on the QR code parsing specification, and then sends X_H, the device ID, and other device information to the backend server.

[0116] Step 7: The backend server receives the device ID, the string X_H, and parses it using underscores to separate X and H. It then uses H to query the database to retrieve the corresponding X, Y, UID, and timestamp.

[0117] Step 8: Compare the retrieved timestamp with the current system time. If the interval exceeds 1 minute, the verification fails. If the interval is less than 1 minute, compare X with the parsed X. If they do not match, the verification fails.

[0118] Step 9: After successful verification in Step 8, the server queries the user's basic information using the UID, such as the registered name and registration time, and then transmits the relevant information to the VRApp.

[0119] Step 10: The VRApp pops up a prompt box displaying the user's basic information and asking the user to confirm account binding. After the user confirms, a confirmation request is sent to the server, completing the background VR device binding registration.

[0120] Step 11: The server sends a message to the VRAPP, and the VRAPP prompts that the binding is complete.

[0121] Step 12: The server sends a message (containing device model, ID, and other information) to the mobile app. The mobile app prompts that the binding is complete and displays the bound device information.

[0122] Step 13: After the user confirms the binding in the mobile APP, the entire process is completed, the virtual world in VR is restored, and the functions begin.

[0123] The login method for head-mounted devices provided in this disclosure completes authentication by scanning a QR code. At the same time, it uses multiple random numbers, hashing, and other technologies to prevent malicious attacks, forgery, and replay of the login process, greatly improving the convenience and security of login. In addition, the login process does not require removing the VR glasses or using a controller to select virtual keyboards in the VR, further enhancing the authentication experience.

[0124] Based on the above-described login method for head-mounted devices, this disclosure also provides a login device for head-mounted devices. The following will be combined with... Figures 6-8 The device is described in detail.

[0125] Figure 6 A schematic block diagram of a login device for a head-mounted device applied to a head-mounted device according to an embodiment of the present disclosure is shown.

[0126] like Figure 6 As shown, the login device 600 for a head-mounted device in this embodiment includes a scanning module 610, a parsing module 620, a first sending module 630, a first acquisition module 640, and a first login module 650.

[0127] The scanning module 610 is used to scan a login QR code using a pass-through mode, wherein the login QR code is generated by the mobile terminal. In one embodiment, the scanning module 610 can be used to perform the operation S210 described above, which will not be repeated here.

[0128] The parsing module 620 is used to parse the login QR code to obtain an encrypted string. In one embodiment, the parsing module 620 can be used to perform the operation S220 described above, which will not be repeated here.

[0129] The first sending module 630 is used to send the encrypted string to the server. In one embodiment, the first sending module 630 can be used to perform the operation S230 described above, which will not be repeated here.

[0130] The first acquisition module 640 is used to acquire the verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database. In one embodiment, the first acquisition module 640 can be used to perform the operation S240 described above, which will not be repeated here.

[0131] The first login module 650 is used to perform a login operation when the verification result is successful. In one embodiment, the first login module 650 can be used to perform the operation S250 described above, which will not be repeated here.

[0132] According to an embodiment of this disclosure, the first login module includes a first sending unit, configured to send a user's account information binding request to the server when the verification result is successful; and a login unit, configured to obtain a binding success notification sent by the server and perform a login operation.

[0133] Figure 7 A schematic block diagram of a login device for a head-mounted device applied to a server according to an embodiment of the present disclosure is shown.

[0134] like Figure 7As shown, the login device 700 for a head-mounted device applied to a server in this embodiment includes a second acquisition module 710, a first generation module 720, a second sending module 730, a third acquisition module 740, a verification module 750, and a third sending module 760.

[0135] The second acquisition module 710 is used to acquire the first random number generated by the mobile terminal. In one embodiment, the second acquisition module 710 can be used to perform the operation S310 described above, which will not be repeated here.

[0136] The first generation module 720 is used to generate the second string based on the first random number. In one embodiment, the first generation module 720 can be used to perform the operation S320 described above, which will not be repeated here.

[0137] The second sending module 730 is used to send the second string to the mobile terminal, so that the mobile terminal generates a login QR code based on the second string. In one embodiment, the second sending module 730 can be used to perform the operation S330 described above, which will not be repeated here.

[0138] The third acquisition module 740 is used to acquire the encrypted string sent by the head-mounted device. In one embodiment, the third acquisition module 740 can be used to perform the operation S340 described above, which will not be repeated here.

[0139] The verification module 750 is used to verify the encrypted string and obtain a verification result. In one embodiment, the verification module 750 can be used to perform the operation S350 described above, which will not be repeated here.

[0140] The third sending module 760 is used to send the verification result to the head-mounted device. The verification result is used to control the head-mounted device to perform a login operation when the verification result is successful. In one embodiment, the third sending module 760 can be used to perform the operation S360 described above, which will not be repeated here.

[0141] According to an embodiment of this disclosure, the first generation module includes a first random unit for randomly generating a second random number; a concatenation unit for concatenating the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and a second generation unit for hashing the first string to generate a second string.

[0142] According to an embodiment of this disclosure, the second sending module includes a storage unit for storing the mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string in a database; and a first sending unit for sending the second string to the mobile terminal.

[0143] According to embodiments of this disclosure, the verification module includes a parsing unit for parsing the encrypted string to obtain a second string and a first random number; a search unit for searching a database for a first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; a first comparison unit for comparing the first system timestamp with the current system timestamp; a second comparison unit for comparing the first random number in the database with the parsed first random number when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time; and a verification unit for determining that the verification result is passed when the first random number in the database and the parsed first random number are consistent.

[0144] According to an embodiment of this disclosure, the verification unit is further configured to determine the verification result as a failure when the interval between the first system timestamp and the current system timestamp is greater than a preset time.

[0145] According to an embodiment of this disclosure, the verification unit is further configured to determine the verification result as a failure when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, and when the first random number in the database is inconsistent with the parsed first random number.

[0146] Figure 8 A schematic block diagram of a login device for a head-mounted device according to an embodiment of the present disclosure is shown.

[0147] like Figure 8 As shown, the login device 800 of the head-mounted device in this embodiment includes a second generation module 810, a third generation module 820, a splicing and conversion module 830, a scanning and parsing module 840, a verification and sending module 850, and a third login module 860.

[0148] The second generation module 810 is used to control the mobile terminal to generate a first random number and send the first random number to the server. In one embodiment, the second generation module 810 can be used to perform the operation S410 described above, which will not be repeated here.

[0149] The third generation module 820 is used to control the server to generate a second string based on the first random number and send the second string to the mobile terminal. In one embodiment, the third generation module 820 can be used to perform the operation S420 described above, which will not be repeated here.

[0150] The concatenation and conversion module 830 is used to control the mobile terminal to concatenate the second string with the first random number to generate an encrypted string, and then convert the encrypted string into a login QR code using a QR code generation standard. In one embodiment, the concatenation and conversion module 830 can be used to perform the operation S430 described above, which will not be repeated here.

[0151] The scanning and parsing module 840 is used to control the head-mounted device to scan the login QR code using a pass-through mode, parse it to obtain an encrypted string, and send the encrypted string to the server. In one embodiment, the scanning and parsing module 840 can be used to perform the operation S440 described above, which will not be repeated here.

[0152] The verification sending module 850 is used to control the server to verify the encrypted string, obtain the verification result, and send the verification result to the head-mounted device. In one embodiment, the verification sending module 850 can be used to perform the operation S450 described above, which will not be repeated here.

[0153] The third login module 860 is used to control the head-mounted device to perform a login operation when the verification result is successful. In one embodiment, the third login module 860 can be used to perform the operation S460 described above, which will not be repeated here.

[0154] According to an embodiment of this disclosure, the third generation module includes a second random unit for controlling the server to randomly generate a second random number; a second concatenation unit for controlling the server to concatenate the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and a third generation unit for controlling the server to perform hashing on the first string to generate a second string.

[0155] According to an embodiment of this disclosure, the third generation module further includes a second storage unit for controlling the server to store the mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string in a database; and a second sending unit for controlling the server to send the second string to the mobile terminal.

[0156] According to embodiments of this disclosure, the verification sending module includes a first parsing unit, used to control the server to parse the encrypted string to obtain a second string and a first random number; a second search unit, used to control the server to use a database to search for a first random number, a second random number, a user identification number, and a first system timestamp corresponding to the second string; a third comparison unit, used to control the server to compare the first system timestamp with the current system timestamp; a fourth comparison unit, used to control the server to compare the first random number in the database with the parsed first random number when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time; and a second verification unit, used to verify that the verification result is passed when the first random number in the database and the parsed first random number are consistent.

[0157] According to embodiments of this disclosure, any and multiple modules among the scanning module 610, parsing module 620, first sending module 630, first acquisition module 640, first login module 650, second acquisition module 710, first generation module 720, second sending module 730, third acquisition module 740, verification module 750, third sending module 760, second generation module 810, third generation module 820, splicing and conversion module 830, scanning and parsing module 840, verification and sending module 850, and third login module 860 can be combined into one module, or any one of these modules can be split into multiple modules. Alternatively, at least some of the functions of one or more of these modules can be combined with at least some of the functions of other modules and implemented in one module. According to embodiments of this disclosure, at least one of the scanning module 610, parsing module 620, first sending module 630, first acquisition module 640, first login module 650, second acquisition module 710, first generation module 720, second sending module 730, third acquisition module 740, verification module 750, third sending module 760, second generation module 810, third generation module 820, splicing and conversion module 830, scanning and parsing module 840, verification and sending module 850, and third login module 860 can be at least partially implemented as hardware circuits, such as field-programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems-on-a-chip, systems-on-a-substrate, systems-on-package, application-specific integrated circuits (ASICs), or can be implemented in hardware or firmware by any other reasonable means of integrating or packaging the circuit, or implemented in software, hardware, and firmware, or in any appropriate combination of any of these three implementation methods. Alternatively, at least one of the scanning module 610, parsing module 620, first sending module 630, first acquisition module 640, first login module 650, second acquisition module 710, first generation module 720, second sending module 730, third acquisition module 740, verification module 750, third sending module 760, second generation module 810, third generation module 820, splicing and conversion module 830, scanning and parsing module 840, verification and sending module 850, and third login module 860 can be at least partially implemented as a computer program module, which can perform corresponding functions when the computer program module is run.

[0158] Figure 9 A block diagram schematically illustrates an electronic device suitable for implementing a login method for a head-mounted device according to an embodiment of the present disclosure.

[0159] like Figure 9As shown, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage portion 908 into a random access memory (RAM) 903. The processor 901 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or an associated chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 901 may also include onboard memory for caching purposes. The processor 901 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0160] RAM 903 stores various programs and data required for the operation of electronic device 900. Processor 901, ROM 902, and RAM 903 are interconnected via bus 904. Processor 901 performs various operations of the method flow according to embodiments of the present disclosure by executing programs in ROM 902 and / or RAM 903. It should be noted that the programs may also be stored in one or more memories other than ROM 902 and RAM 903. Processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in said one or more memories.

[0161] According to embodiments of this disclosure, the electronic device 900 may further include an input / output (I / O) interface 905, which is also connected to a bus 904. The electronic device 900 may also include one or more of the following components connected to the I / O interface 905: an input section 906 including a keyboard, mouse, etc.; an output section 907 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 910 as needed so that computer programs read from it can be installed into the storage section 908 as needed.

[0162] This disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or it may exist independently and not assembled into the device / apparatus / system. The computer-readable storage medium carries one or more programs that, when executed, implement the method according to the embodiments of this disclosure.

[0163] According to embodiments of this disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, such as including, but not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this disclosure, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. For example, according to embodiments of this disclosure, the computer-readable storage medium may include ROM 902 and / or RAM 903 and / or one or more memories other than ROM 902 and RAM 903 described above.

[0164] Embodiments of this disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowchart. When the computer program product is run on a computer system, the program code is used to cause the computer system to implement the methods of the embodiments of this disclosure.

[0165] When the computer program is executed by the processor 901, it performs the functions defined in the system / apparatus of this disclosure embodiments. According to embodiments of this disclosure, the systems, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0166] In one embodiment, the computer program may rely on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may also be transmitted and distributed in the form of signals over a network medium, and downloaded and installed via the communication section 909, and / or installed from a removable medium 911. The program code contained in the computer program can be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination thereof.

[0167] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 909, and / or installed from the removable medium 911. When the computer program is executed by the processor 901, it performs the functions defined in the system of this disclosure embodiment. According to embodiments of this disclosure, the systems, devices, apparatuses, modules, units, etc., described above can be implemented by computer program modules.

[0168] According to embodiments of this disclosure, program code for executing the computer programs provided in embodiments of this disclosure can be written in any combination of one or more programming languages. Specifically, these computational programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, Python, "C", or similar programming languages. The program code can execute entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0169] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0170] Those skilled in the art will understand that the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways, even if such combinations or combinations are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure can be combined or combined in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or combinations fall within the scope of this disclosure.

[0171] The embodiments of this disclosure have been described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of this disclosure. Although various embodiments have been described above, this does not mean that the measures in the various embodiments cannot be used advantageously in combination. The scope of this disclosure is defined by the appended claims and their equivalents. Various substitutions and modifications can be made by those skilled in the art without departing from the scope of this disclosure, and all such substitutions and modifications should fall within the scope of this disclosure.

Claims

1. A login method for a head-mounted device, applied to a head-mounted device, characterized in that, The method includes: The login QR code is scanned using a pass-through mode, wherein the login QR code is generated by the mobile terminal; The login QR code is parsed to obtain an encrypted string; Send the encrypted string to the server; Obtain the verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database; and If the verification result is successful, the login operation will be performed; The steps for generating a login QR code on the mobile terminal include: Randomly generate the first random number; Send the first random number to the server; Obtain a second string generated by the server based on the first random number, wherein the second string is generated using hash hashing technology; The second string is concatenated with the first random number to generate an encrypted string; and The encrypted string is converted into a login QR code using the QR code generation standard.

2. The method according to claim 1, characterized in that, The steps for performing the login operation when the verification result is successful include: When the verification result is successful, a user account information binding request is sent to the server; and Receive the successful binding notification sent by the server and perform the login operation.

3. A login method for a head-mounted device, applied to a server, characterized in that, The method includes: Obtain the first random number generated by the mobile terminal; Generate a second string based on the first random number; The second string is sent to the mobile terminal so that the mobile terminal generates a login QR code based on the second string; Obtain the encrypted string sent by the head-mounted device; The encrypted string is verified to obtain the verification result; and The verification result is sent to the head-mounted device, and the verification result is used to: control the head-mounted device to perform a login operation when the verification result is successful; The steps for the mobile terminal to generate a login QR code based on the second string include: Get the second string; The second string is concatenated with the first random number to generate an encrypted string; and The encrypted string is converted into a login QR code using the QR code generation standard.

4. The method according to claim 3, characterized in that, The step of controlling the head-mounted device to perform a login operation when the verification result is successful includes: When the verification result is successful, the system receives a user account information binding request sent by the head-mounted device. Binding the user's account information to the head-mounted device; and A successful binding notification is sent to the head-mounted device so that the head-mounted device can perform a login operation.

5. The method according to claim 3, characterized in that, The step of generating the second string based on the first random number includes: Randomly generate a second random number; Concatenate the first random number, the second random number, the user identification number, and the first system timestamp to generate a first string; and The first string is hashed to generate the second string.

6. The method according to claim 5, characterized in that, The step of sending the second string to the mobile terminal includes: The mapping relationship between the first random number, the second random number, the user identification number, the first system timestamp, and the second string is stored in the database; and The second string is sent to the mobile terminal.

7. The method according to claim 3, characterized in that, The step of verifying the encrypted string to obtain the verification result includes: Parse the encrypted string to obtain the second string and the first random number; Use the database to find the first random number, the second random number, the user identification number, and the first system timestamp that correspond to the second string; Compare the timestamp of the first system with the timestamp of the current system; When the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, compare the first random number in the database with the parsed first random number; and The verification result is passed when the first random number in the database matches the first random number obtained through parsing.

8. The method according to claim 7, characterized in that, The method further includes: The verification result is a failure when the interval between the first system timestamp and the current system timestamp is greater than a preset time.

9. The method according to claim 7, characterized in that, The method further includes: The verification result is a failure when the interval between the first system timestamp and the current system timestamp is less than or equal to a preset time, and when the first random number in the database is inconsistent with the first random number obtained by parsing.

10. A login method for a head-mounted device, characterized in that, The method includes: The mobile terminal generates a first random number and sends the first random number to the server; The server generates a second string based on the first random number and sends the second string to the mobile terminal; The mobile terminal concatenates the second string with the first random number to generate an encrypted string, and uses the QR code generation standard to convert the encrypted string into a login QR code; The head-mounted device scans the login QR code using a pass-through mode, parses it to obtain an encrypted string, and sends the encrypted string to the server. The server verifies the encrypted string, obtains the verification result, and sends the verification result to the head-mounted device; and When the verification result is successful, the head-mounted device performs a login operation.

11. A login device for a head-mounted device, applied to the head-mounted device, comprising: The scanning module is used to scan a login QR code using a pass-through mode, wherein the login QR code is generated by a mobile terminal; the steps of the mobile terminal generating the login QR code include: randomly generating a first random number; sending the first random number to a server; obtaining a second string generated by the server based on the first random number, wherein the second string is generated using hashing technology; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using a QR code generation standard. The parsing module is used to parse the login QR code to obtain an encrypted string; The first sending module is used to send the encrypted string to the server; The first acquisition module is used to acquire the verification result of the encrypted string, wherein the verification result is obtained by the server verifying the encrypted string using a database; and The first login module is used to perform a login operation when the verification result is successful.

12. A login device for a head-mounted device, applied to a server, comprising: The second acquisition module is used to acquire the first random number generated by the mobile terminal; The first generation module is used to generate a second string based on the first random number; The second sending module is used to send the second string to the mobile terminal so that the mobile terminal generates a login QR code based on the second string; The steps of the mobile terminal generating a login QR code based on the second string include: obtaining the second string; concatenating the second string with the first random number to generate an encrypted string; and converting the encrypted string into a login QR code using QR code generation specifications. The third acquisition module is used to acquire the encrypted string sent by the head-mounted device; A verification module is used to verify the encrypted string and obtain a verification result; and The third sending module is used to send the verification result to the head-mounted device. The verification result is used to control the head-mounted device to perform a login operation when the verification result is successful.

13. A login device for a head-mounted device, comprising: The second generation module is used to control the mobile terminal to generate a first random number and send the first random number to the server; The third generation module is used to control the server to generate a second string based on the first random number and send the second string to the mobile terminal; The splicing and conversion module is used to control the mobile terminal to splice the second string with the first random number to generate an encrypted string, and to convert the encrypted string into a login QR code using the QR code generation standard; The scanning and parsing module is used to control the head-mounted device to scan the login QR code using a pass-through mode, parse the encrypted string, and send the encrypted string to the server. The verification and sending module is used to control the server to verify the encrypted string, obtain the verification result, and send the verification result to the head-mounted device; as well as The third login module is used to control the head-mounted device to perform a login operation when the verification result is successful.

14. An electronic device comprising: One or more processors; Storage device for storing one or more programs. Wherein, when the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 10.

15. A computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the method according to any one of claims 1 to 10.

16. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • User identity authentication processing method, application server and authentication system server

    CN108259436A