CN115373515B - Login methods, devices, electronic equipment and media for head-mounted devices - Google Patents

Login methods, devices, electronic equipment and media for head-mounted devices

Info

Publication number
CN115373515B
CN115373515B CN202211003545.9A CN202211003545A CN115373515B CN 115373515 B CN115373515 B CN 115373515B CN 202211003545 A CN202211003545 A CN 202211003545A CN 115373515 B CN115373515 B CN 115373515B
Authority
CN
China
Prior art keywords
string
login
random number
head
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211003545.9A
Other languages
Chinese (zh)
Other versions
CN115373515A (en
Inventor
李峰
罗涛
尹勇
王宏杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202211003545.9A priority Critical patent/CN115373515B/en
Publication of CN115373515A publication Critical patent/CN115373515A/en
Application granted granted Critical
Publication of CN115373515B publication Critical patent/CN115373515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Hardware Design (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Computing Systems (AREA)
  • Development Economics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Telephonic Communication Services (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The disclosure provides a login method of a head-mounted device, which can be used in the financial field or other fields. The method is applied to head-mounted equipment and comprises the steps of utilizing a transmission mode to scan a login two-dimensional code, analyzing the login two-dimensional code to obtain an encrypted character string, sending the encrypted character string to a server, obtaining a verification result of the encrypted character string, wherein the verification result is obtained by the server verifying the encrypted character string by utilizing a database, and executing login operation when the verification result is passed. The present disclosure also provides a login method of the head-mounted device applied to the server, a login apparatus of the head-mounted device, a storage medium, and a program product.

Description

Login method and device of head-mounted equipment, electronic equipment and medium
Technical Field
The present disclosure relates to the technical field of smart devices, and may also be used in the financial field or other fields, and more particularly to a login method, apparatus, device, medium, and program product for a head-mounted device.
Background
In the financial field, it is more common to use a head-mounted device as an interactive tool to assist a user in using financial services, and the user wears the head-mounted device, browses and accesses a virtual business hall provided by a bank, and dialogues with a virtual digital person and handles financial services in consultation.
In the process of implementing the disclosed concept, the inventor finds that the current head-mounted device needs to use a virtual keyboard to perform login operation, which not only takes a very long time, but also is easy to input errors, so that the login operation is very inconvenient to perform.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a login method, apparatus, device, medium, and program product for a head-mounted device.
According to a first aspect of the disclosure, a login method of a head-mounted device is provided and applied to the head-mounted device, and the method comprises the steps of scanning a login two-dimensional code by using a transparent transmission mode, analyzing the login two-dimensional code to obtain an encrypted character string, sending the encrypted character string to a server, obtaining a verification result of the encrypted character string, wherein the verification result is obtained by the server verifying the encrypted character string by using a database, and executing login operation when the verification result is passed.
According to the embodiment of the disclosure, when the verification result is passing, the step of executing login operation comprises the steps of sending an account information binding request of a user to the server when the verification result is passing, and obtaining a binding success notification sent by the server to execute login operation.
According to the embodiment of the disclosure, the mobile terminal generates a login two-dimensional code by randomly generating a first random number, sending the first random number to a server, obtaining a second character string generated by the server based on the first random number, wherein the second character string is generated by using a hash technology, splicing the second character string with the first random number to generate an encryption character string, and converting the encryption character string into the login two-dimensional code by using a two-dimensional code generation specification.
According to a second aspect of the disclosure, a login method of a head-mounted device is provided and applied to a server, and the method comprises the steps of obtaining a first random number generated by a mobile terminal, generating a second character string based on the first random number, sending the second character string to the mobile terminal to enable the mobile terminal to generate a login two-dimensional code based on the second character string, obtaining an encryption character string sent by the head-mounted device, checking the encryption character string to obtain a check result, and sending the check result to the head-mounted device, wherein the check result is used for controlling the head-mounted device to execute login operation when the check result is that the check result is passed.
According to the embodiment of the disclosure, when the verification result is passing, the step of executing login operation comprises the steps of receiving an account information binding request of a user sent by the head-mounted device, binding the account information of the user with the head-mounted device, and sending a binding success notification to the head-mounted device so that the head-mounted device executes login operation.
According to an embodiment of the disclosure, the step of generating the second character string based on the first random number includes randomly generating a second random number, concatenating the first random number, the second random number, a user identification number and a first system timestamp to generate a first character string, and hashing the first character string to generate a second character string.
According to an embodiment of the disclosure, the step of transmitting the second character string to the mobile terminal includes storing the first random number, the second random number, a user identification number, and a mapping relationship of a first system time stamp and the second character string in a database, and transmitting the second character string to the mobile terminal.
According to the embodiment of the disclosure, the step of generating the login two-dimensional code by the mobile terminal based on the second character string comprises the steps of obtaining the second character string, splicing the second character string with the first random number to generate an encrypted character string, and converting the encrypted character string into the login two-dimensional code by utilizing a two-dimensional code generation specification.
According to the embodiment of the disclosure, the step of verifying the encrypted character string to obtain a verification result comprises the steps of analyzing the encrypted character string to obtain a second character string and a first random number, searching a first random number, a second random number, a user identification number and a first system timestamp corresponding to the second character string by using a database, comparing the first system timestamp with a current system timestamp, comparing the first random number in the database with the first random number obtained by analysis when the interval between the first system timestamp and the current system timestamp is smaller than or equal to a preset time, and verifying the first random number when the first random number in the database is consistent with the first random number obtained by analysis.
According to the embodiment of the disclosure, the method further comprises the step of checking that the result is failed when the interval between the first system time stamp and the current system time stamp is larger than a preset time.
According to the embodiment of the disclosure, the method further comprises the step of checking that the result is failed when the interval between the first system time stamp and the current system time stamp is smaller than or equal to a preset time and when the first random number in the database and the first random number obtained through analysis are inconsistent.
The third aspect of the disclosure provides a login method of a headset device, which comprises the steps that a mobile terminal generates a first random number and sends the first random number to a server, the server generates a second character string based on the first random number and sends the second character string to the mobile terminal, the mobile terminal splices the second character string with the first random number to generate an encrypted character string and converts the encrypted character string into a login two-dimensional code by means of a two-dimensional code generation specification, the headset device scans the login two-dimensional code by means of a transmission mode, analyzes the login two-dimensional code to obtain the encrypted character string and sends the encrypted character string to the server, the server verifies the encrypted character string to obtain a verification result and sends the verification result to the headset device, and the headset device executes login operation when the verification result is passing.
According to the embodiment of the disclosure, the step of generating the second character string by the server based on the first random number comprises the steps of generating the second random number by the server, generating the first character string by the server by splicing the first random number, the second random number, the user identity number and the first system time stamp, and generating the second character string by hashing the first character string by the server.
According to the embodiment of the disclosure, the step of sending the second character string to the mobile terminal by the server comprises the step of storing the first random number, the second random number, the user identification number and the mapping relation between a first system time stamp and the second character string into a database by the server, and the step of sending the second character string to the mobile terminal by the server.
According to the embodiment of the disclosure, the server checks the encrypted character string to obtain a check result, wherein the server analyzes the encrypted character string to obtain a second character string and a first random number, the server searches a first random number, a second random number, a user identification number and a first system timestamp corresponding to the second character string by using a database, the server compares the first system timestamp with a current system timestamp, when the interval between the first system timestamp and the current system timestamp is smaller than or equal to a preset time, the first random number in the database is compared with the first random number obtained by analysis, and when the first random number in the database is consistent with the first random number obtained by analysis, the check result is passing.
The fourth aspect of the disclosure provides a login device of a head-mounted device, which is applied to the head-mounted device and comprises a scanning module, an analysis module, a first sending module, a first acquisition module and a first login module, wherein the scanning module is used for scanning a login two-dimensional code by using a transmission mode, the login two-dimensional code is generated by a mobile terminal, the analysis module is used for analyzing the login two-dimensional code to obtain an encrypted character string, the first sending module is used for sending the encrypted character string to a server, the first acquisition module is used for acquiring a verification result of the encrypted character string, the verification result is obtained by the server verifying the encrypted character string by using a database, and the first login module is used for executing login operation when the verification result is passed.
According to the embodiment of the disclosure, the first login module comprises a first sending unit and a login unit, wherein the first sending unit is used for sending an account information binding request of a user to the server when the verification result is that the verification result is passed, and the login unit is used for obtaining a binding success notification sent by the server and executing login operation.
The fifth aspect of the disclosure provides a login device of a head-mounted device, which is applied to a server and comprises a second acquisition module, a first generation module, a second transmission module, a third acquisition module, a verification module and a third transmission module, wherein the second acquisition module is used for acquiring a first random number generated by a mobile terminal, the first generation module is used for generating the second character string based on the first random number, the second transmission module is used for transmitting the second character string to the mobile terminal so that the mobile terminal generates a login two-dimensional code based on the second character string, the third acquisition module is used for acquiring an encrypted character string transmitted by the head-mounted device, the verification module is used for verifying the encrypted character string to obtain a verification result, and the third transmission module is used for transmitting the verification result to the head-mounted device, and the verification result is used for controlling the head-mounted device to execute login operation when the verification result is passed.
According to the embodiment of the disclosure, the first generation module comprises a first random unit for randomly generating a second random number, a splicing unit for splicing the first random number, the second random number, the user identification number and a first system time stamp to generate a first character string, and a second generation unit for hashing the first character string to generate a second character string.
According to the embodiment of the disclosure, the second sending module comprises a storage unit for storing the first random number, the second random number, the user identification number, the mapping relation between the first system time stamp and the second character string into a database, and a first sending unit for sending the second character string to the mobile terminal.
According to the embodiment of the disclosure, the verification module comprises an analysis unit, a search unit, a first comparison unit and a verification unit, wherein the analysis unit is used for analyzing the encrypted character string to obtain a second character string and a first random number, the search unit is used for searching a first random number, a second random number, a user identification number and a first system time stamp corresponding to the second character string by using a database, the first comparison unit is used for comparing the first system time stamp with a current system time stamp, the second comparison unit is used for comparing the first random number in the database with the first random number obtained by analysis when the interval between the first system time stamp and the current system time stamp is smaller than or equal to preset time, and the verification unit is used for verifying that a result is passed when the first random number in the database and the first random number obtained by analysis are consistent.
According to an embodiment of the disclosure, the verification unit is further configured to verify that the result of the verification is failure when the interval between the first system timestamp and the current system timestamp is greater than a preset time.
According to an embodiment of the disclosure, the verification unit is further configured to, 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 and the first random number obtained by analysis are inconsistent, verify that the result is failure.
The sixth aspect of the disclosure provides a login device of a headset device, which comprises a second generation module, a third generation module, a splicing conversion module and a third login module, wherein the second generation module is used for controlling a mobile terminal to generate a first random number and sending the first random number to a server, the third generation module is used for controlling the server to generate a second character string based on the first random number and sending the second character string to the mobile terminal, the splicing conversion module is used for controlling the mobile terminal to splice the second character string with the first random number to generate an encrypted character string and convert the encrypted character string into a login two-dimensional code by utilizing a two-dimensional code generation specification, the scanning analysis module is used for controlling the headset device to scan the login two-dimensional code by utilizing a transmission mode and analyze the encrypted character string and send the encrypted character string to the server, the verification sending module is used for controlling the server to verify the encrypted character string to obtain a verification result and send the verification result to the headset device, and the third login module is used for controlling the headset device to execute login operation when the verification result is passed.
A seventh aspect of the present disclosure provides an electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above-described method.
An eighth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method.
A ninth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above method.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a method, apparatus, device, medium and program product for logging in a head-mounted device according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a login method of a head mounted device applied to the head mounted device according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flowchart of a login method for a head mounted device applied to a server according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of a login method for a headset device according to an embodiment of the disclosure;
FIG. 5 schematically illustrates a system architecture diagram of a login method for a headset device according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of a login apparatus of a head-mounted device applied to the head-mounted device according to an embodiment of the present disclosure;
Fig. 7 schematically illustrates a block diagram of a login apparatus of a head-mounted device applied to a server according to an embodiment of the present disclosure;
FIG. 8 schematically shows a block diagram of a login device of a headset according to an embodiment of the present disclosure, and
Fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a login method for a head-mounted device according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a convention should be interpreted in accordance with the meaning of one of skill in the art having generally understood the convention (e.g., "a system having at least one of A, B and C" would include, but not be limited to, systems having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.). The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more of the described features.
The Virtual Reality (VR) helmet is an earliest Virtual Reality display which uses a head-mounted display to seal the outside vision and hearing of a person, guides the user to generate a feeling of a person in a Virtual environment, and has the display principle that left and right eye screens respectively display images of left and right eyes, and human eyes generate a person Virtual environment in the brain after acquiring the information with the difference, and has a stereoscopic impression. The VR helmet is provided with a plurality of cameras outside to scan the surrounding environment of the user, and the actual position and steering angle of the user in space positioning are calculated through an algorithm.
And the VR helmet transparent transmission mode is that virtual scenes generated by programs are displayed in the VR helmet under normal conditions, but the general VR supports the transparent transmission mode, namely, the real external environment is directly projected onto the internal screen of the helmet after being collected by a camera, a user can see the external environment through the screen, but the mode is limited by the limitation of the collection effect of the camera, and the display effect is limited.
In the financial field, it is more common to use VR helmets as interactive tools to assist users in using financial services, for example, banks provide VR version of a bank client App, and after the VR helmets are installed, users wear VR helmets, browse and access virtual business halls provided in the App by banks, and talk with virtual digital people and transact financial services in consultation.
In the practice process of the VR helmet in a financial scene, a user is required to log in an existing banking system account (input an internet bank account and a password) during use. The user wears the VR helmet, finds out the bank App icon in the helmet, clicks App by using a handle, opens a registration login interface, clicks a text box in the registration login interface, pops up a virtual keyboard by the system, clicks corresponding virtual keys by using the handle, performs character input, sequentially inputs a user name and a password, and inputs own mobile phone number. The user needs to click a button for acquiring the mobile phone verification code, and the server side of the bank App sends a verification code short message to the mobile phone of the user. At this time, the user needs to take off the VR helmet, check the short message of the mobile phone, remember the verification code, put on the helmet again, and finish the identity authentication of the user after inputting the verification code by using the handle and the virtual keyboard inside.
As can be seen from the above login process, since the current head-mounted device needs to complete character input by clicking sequentially using the virtual keyboard, it takes a very long time to perform the login operation, and is easy to input errors, so that it is very inconvenient to perform the login operation. Meanwhile, in the registration and login process, the user needs to take off and put on the VR helmet for many times, the interaction flow is split, and the use experience is poor. In addition, based on the consideration of saving electric quantity and the like, some VR can stop the screen after taking off the helmet, and after wearing again, a certain time is required for recovery, for example, the recovery time is longer, the short message verification code may be expired, the user is required to acquire again, and the process of taking off and wearing the helmet is repeated again.
In view of the above, an embodiment of the present disclosure provides a login method of a head-mounted device, which is applied to the head-mounted device, and the method includes scanning a login two-dimensional code by using a transparent mode, wherein the login two-dimensional code is generated by a mobile terminal, analyzing the login two-dimensional 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 by using a database, and executing login operation when the verification result is passed.
The embodiment of the disclosure also provides a login method of the head-mounted device, which is applied to a server and comprises the steps of obtaining a first random number generated by a mobile terminal, generating the second character string based on the first random number, sending the second character string to the mobile terminal to enable the mobile terminal to generate a login two-dimensional code based on the second character string, obtaining an encryption character string sent by the head-mounted device, checking the encryption character string to obtain a check result, and sending the check result to the head-mounted device, wherein the check result is used for controlling the head-mounted device to execute login operation when the check result is that the check result is passed.
The embodiment of the disclosure also provides a login method of the head-mounted device, which comprises the steps that a mobile terminal generates a first random number and sends the first random number to a server, the server generates a second character string based on the first random number and sends the second character string to the mobile terminal, the mobile terminal splices the second character string with the first random number to generate an encrypted character string and converts the encrypted character string into a login two-dimensional code by utilizing a two-dimensional code generation specification, the head-mounted device scans the login two-dimensional code by utilizing a transmission mode, analyzes the login two-dimensional code to obtain the encrypted character string and sends the encrypted character string to the server, the server checks the encrypted character string to obtain a check result and sends the check result to the head-mounted device, and the head-mounted device executes login operation when the check result is passing.
It should be noted that the method and apparatus for determining the present disclosure may be used for logging in a head-mounted device in a financial field, and may also be used for logging in a head-mounted device in any field other than the financial field, and the application field of the method and apparatus for logging in a head-mounted device of the present disclosure is not limited.
In the technical scheme of the disclosure, the related processes of collecting, storing, using, processing, transmitting, providing, disclosing, applying and the like of the personal information of the user all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public order harmony is not violated.
In the technical scheme of the disclosure, the authorization or consent of the user is obtained before the personal information of the user is obtained or acquired.
Fig. 1 schematically illustrates an application scenario diagram of a login method, apparatus, device, medium and program product of a head-mounted device according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various communication client applications, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the login method of the head-mounted device provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the logging device of the head-mounted device provided in the embodiments of the present disclosure may be generally disposed in the server 105. The logging-in method of the head-mounted device provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the logging device of the head-mounted device provided by the embodiments of the present disclosure may also be provided in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The login method of the head-mounted device according to the disclosed embodiment will be described in detail with reference to fig. 2 to 5 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a flowchart of a login method of a head mounted device applied to the head mounted device according to an embodiment of the present disclosure.
As shown in fig. 2, the login method of the head-mounted device applied to the head-mounted device in this embodiment includes operations S210 to S250.
In operation S210, a login two-dimensional code is scanned using a transparent mode, wherein the login two-dimensional code is generated by a mobile terminal.
According to the embodiment of the disclosure, the mobile terminal generates a login two-dimensional code by randomly generating a first random number, sending the first random number to a server, obtaining a second character string generated by the server based on the first random number, wherein the second character string is generated by using a hash technology, splicing the second character string with the first random number to generate an encryption character string, and converting the encryption character string into the login two-dimensional code by using a two-dimensional code generation specification. The mobile terminal can repeat the process of generating the login two-dimensional code every preset time to generate a new login two-dimensional code, so that the risk of tampering caused by overlong time after the login two-dimensional code is generated is prevented.
In operation S220, the login two-dimensional code is parsed, and an encrypted string is obtained. Wherein the encrypted string is generated using a random number and a hash technique.
The encrypted string is transmitted to the server in operation S230.
In operation S240, a verification result of the encrypted string is obtained, where the verification result is obtained by the server verifying the encrypted string with a database.
In operation S250, when the verification result is passed, a login operation is performed. And when the verification result does not pass, executing login operation to fail.
According to the embodiment of the disclosure, when the verification result is passing, the step of executing login operation comprises the steps of sending an account information binding request of a user to the server when the verification result is passing, and obtaining a binding success notification sent by the server to execute login operation.
In embodiments of the present disclosure, the user's consent or authorization may be obtained prior to obtaining the user's account information. For example, a request to obtain user account information may be issued to the user, and in the event that the user agrees or authorizes that user account information may be obtained, sending an account information binding request for the user to the server is performed.
The login method of the head-mounted device is applied to the head-mounted device, the head-mounted device performs verification by scanning the login two-dimensional code, login operation is performed, and because the virtual keyboard is not required to be used for performing the login operation, the time is short, verification is fast, convenience of the login of the head-mounted device is improved, in addition, the encrypted character string is obtained by analyzing the login two-dimensional code, and the encrypted character string is verified, so that the security of performing the login operation is further improved.
Fig. 3 schematically illustrates a flowchart of a login method of a head-mounted device applied to a server according to an embodiment of the present disclosure.
As shown in fig. 3, the login method of the headset device applied to the server in this embodiment includes operations S310 to S360.
In operation S310, a first random number generated by a mobile terminal is acquired.
In operation S320, the second character string is generated based on the first random number.
According to an embodiment of the disclosure, the step of generating the second character string based on the first random number includes randomly generating a second random number, concatenating the first random number, the second random number, a user identification number and a first system timestamp to generate a first character string, and hashing the first character string to generate a second character string.
According to an embodiment of the disclosure, the step of transmitting the second character string to the mobile terminal includes storing the first random number, the second random number, a user identification number, and a mapping relationship of a first system time stamp and the second character string in a database, and transmitting the second character string to the mobile terminal.
And in operation S330, the second character string is sent to the mobile terminal, so that the mobile terminal generates a login two-dimensional code based on the second character string.
According to the embodiment of the disclosure, the step of generating the login two-dimensional code by the mobile terminal based on the second character string comprises the steps of obtaining the second character string, splicing the second character string with the first random number to generate an encrypted character string, and converting the encrypted character string into the login two-dimensional code by utilizing a two-dimensional code generation specification. The mobile terminal can repeat the process of generating the login two-dimensional code every preset time to generate a new login two-dimensional code, so that the risk of tampering caused by overlong time after the login two-dimensional code is generated is prevented.
In operation S340, an encrypted string transmitted by the head-mounted device is acquired.
In operation S350, the encrypted string is verified, and a verification result is obtained.
According to the embodiment of the disclosure, the step of verifying the encrypted character string to obtain a verification result comprises the steps of analyzing the encrypted character string to obtain a second character string and a first random number, searching a first random number, a second random number, a user identification number and a first system timestamp corresponding to the second character string by using a database, comparing the first system timestamp with a current system timestamp, comparing the first random number in the database with the first random number obtained by analysis when the interval between the first system timestamp and the current system timestamp is smaller than or equal to a preset time, and verifying the first random number when the first random number in the database is consistent with the first random number obtained by analysis. The preset time may be set according to actual situations, for example, may be 1 minute, which is not limited in the embodiments of the present disclosure. It should be noted that, the mobile terminal generates a new login two-dimensional code every preset time, and the preset time is the same as the preset time here, for example, 1 minute, so as to ensure that the verification process is smoothly performed.
According to the embodiment of the disclosure, the method further comprises the step of checking that the result is failed when the interval between the first system time stamp and the current system time stamp is larger than a preset time.
According to the embodiment of the disclosure, the method further comprises the step of checking that the result is failed when the interval between the first system time stamp and the current system time stamp is smaller than or equal to a preset time and when the first random number in the database and the first random number obtained through analysis are inconsistent.
And in operation S360, the verification result is sent to the head-mounted device, and the verification result is used for controlling the head-mounted device to execute login operation when the verification result is passing.
According to the embodiment of the disclosure, when the verification result is passing, the step of executing login operation comprises the steps of receiving an account information binding request of a user sent by the head-mounted device, binding the account information of the user with the head-mounted device, and sending a binding success notification to the head-mounted device so that the head-mounted device executes login operation.
The login method of the head-mounted device, provided by the embodiment of the disclosure, is applied to the server, the server generates the login two-dimensional code by utilizing the random number and the hash technology and matching with the mobile terminal, and verifies the encrypted character string obtained by analysis in the login process, so that the convenience and the safety of login are improved.
Fig. 4 schematically illustrates a flowchart of a login method of a head-mounted device according to an embodiment of the present disclosure.
As shown in fig. 4, the login method of the headset device applied to the server in this embodiment includes operations S410 to S460.
In operation S410, the mobile terminal generates a first random number and transmits the first random number to the server.
In operation S420, the server generates a second string based on the first random number, and transmits the second string to the mobile terminal.
According to the embodiment of the disclosure, the step of generating the second character string by the server based on the first random number comprises the steps of generating the second random number by the server, generating the first character string by the server by splicing the first random number, the second random number, the user identity number and the first system time stamp, and generating the second character string by hashing the first character string by the server.
According to the embodiment of the disclosure, the step of sending the second character string to the mobile terminal by the server comprises the step of storing the first random number, the second random number, the user identification number and the mapping relation between a first system time stamp and the second character string into a database by the server, and the step of sending the second character string to the mobile terminal by the server.
In operation S430, the mobile terminal splices the second string with the first random number to generate an encrypted string, and converts the encrypted string into a login two-dimensional code by using a two-dimensional code generation specification.
In operation S440, the headset scans the login two-dimensional code using the transparent mode, analyzes the login two-dimensional code to obtain an encrypted string, and transmits the encrypted string to the server.
In operation S450, the server verifies the encrypted string to obtain a verification result, and sends the verification result to the head-mounted device.
According to the embodiment of the disclosure, the server checks the encrypted character string to obtain a check result, wherein the server analyzes the encrypted character string to obtain a second character string and a first random number, the server searches a first random number, a second random number, a user identification number and a first system timestamp corresponding to the second character string by using a database, the server compares the first system timestamp with a current system timestamp, when the interval between the first system timestamp and the current system timestamp is smaller than or equal to a preset time, the first random number in the database is compared with the first random number obtained by analysis, and when the first random number in the database is consistent with the first random number obtained by analysis, the check result is passing.
In operation S460, when the verification result is passed, the head-mounted device performs a login operation.
Fig. 5 schematically illustrates a system architecture diagram of a login method of a head-mounted device according to an embodiment of the present disclosure.
As shown in fig. 5, the login method of the head-mounted device involves 4 roles:
bank App in VR helmet the banking application program in VR helmet for user account authentication and equipment, called VRApp below;
the user actually uses the VR helmet and the mobile phone;
The mobile phone banking APP is used for assisting in carrying out operations such as identity registration, login, binding and the like, and is called a mobile phone App, and the mobile phone App and VRAPP belong to the same bank;
The mobile phone bank APP background server is a background server corresponding to the mobile phone bank App and is responsible for actual authentication and authorization and other contents, wherein VRApp and the mobile phone App are connected with the background server.
Exemplary, specific system interaction steps are:
step 1, a user opens a mobile phone App, and clicks a two-dimension code binding function after successful login by using the personal identity.
And 2, the mobile phone App generates a random number X, communicates with a background server, and sends the X to the server background. The server background generates a random number Y for the binding function, and splices the random number Y with an account UID and a current UTC system timestamp to generate a character string, namely X_Y_UID_timestamp, and after carrying out sha256 hash on the character string, a character string H is generated. And generating corresponding relations of the X, Y, UID, H and the time stamp, storing the corresponding relations to a background database, and then issuing the character string H to a mobile phone App.
And 3, after the mobile phone APP receives the H, splicing the H with the random number X to generate X_H. And generating a two-dimensional code picture by using a standard two-dimensional code generation specification, displaying the two-dimensional code picture on an App interface of a user mobile phone, and repeating the processes 2 and 3 every 60 seconds to generate a new two-dimensional code.
And 4, putting on the helmet by the user, opening VRAPP by using a handle, entering an account registration binding function, and selecting a two-dimensional code authentication binding function by the user.
And 5, enabling a transmission mode by the VR helmet, transmitting the outside world to eyes of a user by using a camera, and enabling the user to watch the mobile phone two-dimensional code through the camera.
And 6, after the VRApp identifies the two-dimensional code, analyzing X_H based on the two-dimensional code analysis specification, and then uploading the equipment information such as X_H, the equipment ID and the like to a background server.
And 7, after receiving the equipment ID and the character string X_H, the background server analyzes X and H by using underline separation. And querying the database by using H, and querying the corresponding X, Y, UID and timestamp.
And 8, comparing the queried time stamp with the current system time, and if the time interval exceeds 1 minute, checking fails. When the interval does not exceed 1 minute, X is used for comparison with X after analysis, and if the X is inconsistent, verification fails.
Step 9, after the verification in step 8 is successful, the server inquires the user basic information such as the registration name, the registration time and the like through the UID, and then transmits the related information to VRApp
And 10, a VRApp pops up a prompt box, displays basic information of the user, and inquires whether the user confirms account binding. After the user confirms, a confirmation request is sent to the server, and the binding registration of the background VR equipment is completed.
And step 11, the server transmits a message to the VRAPP, and the VRAPP prompts that the binding is completed.
Step 12, the server issues a message (including information such as equipment model, ID and the like) to the mobile phone APP, and the mobile phone APP prompts that the binding is completed and displays the bound equipment information.
And 13, after the user confirms the binding in the mobile phone APP, the whole process is finished, the virtual world is restored in the VR, and the function is started.
According to the login method of the head-mounted device, authentication is completed in a code scanning mode, meanwhile, through multiple random numbers, hash and other technologies, the login process is prevented from being attacked, forged and replayed maliciously, the login convenience and safety are greatly improved, in addition, VR glasses do not need to be taken off in the login process, a virtual keyboard in VR is also not required to be sequentially clicked by a handle, and authentication experience is further improved.
Based on the login method of the head-mounted equipment, the disclosure also provides a login device of the head-mounted equipment. The device will be described in detail below in connection with fig. 6-8.
Fig. 6 schematically shows a block diagram of a login apparatus of a head-mounted device applied to the head-mounted device according to an embodiment of the present disclosure.
As shown in fig. 6, the login apparatus 600 applied to the head-mounted device of the present embodiment includes a scanning module 610, a parsing module 620, a first sending module 630, a first obtaining module 640, and a first login module 650.
The scanning module 610 is configured to scan a login two-dimensional code by using a transparent transmission mode, where the login two-dimensional code is generated by the mobile terminal. In an embodiment, the scanning module 610 may be configured to perform the operation S210 described above, which is not described herein.
And the parsing module 620 is configured to parse the login two-dimensional code to obtain an encrypted string. In an embodiment, the parsing module 620 may be configured to perform the operation S220 described above, which is not described herein.
A first sending module 630, configured to send the encrypted string to a server. In an embodiment, the first sending module 630 may be used to perform the operation S230 described above, which is not described herein.
The first obtaining module 640 is configured to obtain a verification result of the encrypted string, where the verification result is obtained by verifying, by the server, the encrypted string with a database. In an embodiment, the first obtaining module 640 may be configured to perform the operation S240 described above, which is not described herein.
The first login module 650 is configured to perform a login operation when the verification result is passed. In an embodiment, the first login module 650 may be used to perform the operation S250 described above, which is not described herein.
According to the embodiment of the disclosure, the first login module comprises a first sending unit and a login unit, wherein the first sending unit is used for sending an account information binding request of a user to the server when the verification result is that the verification result is passed, and the login unit is used for obtaining a binding success notification sent by the server and executing login operation.
Fig. 7 schematically shows a block diagram of a login apparatus of a head-mounted device applied to a server according to an embodiment of the present disclosure.
As shown in fig. 7, the login apparatus 700 of the head-mounted device applied to the server of this embodiment includes a second acquisition module 710, a first generation module 720, a second transmission module 730, a third acquisition module 740, a verification module 750, and a third transmission module 760.
The second obtaining module 710 is configured to obtain that the mobile terminal generates the first random number. In an embodiment, the second obtaining module 710 may be configured to perform the operation S310 described above, which is not described herein.
A first generation module 720, configured to generate the second string based on the first random number. In an embodiment, the first generating module 720 may be configured to perform the operation S320 described above, which is not described herein.
And a second sending module 730, configured to send the second string to the mobile terminal, so that the mobile terminal generates a login two-dimensional code based on the second string. In an embodiment, the second sending module 730 may be configured to perform the operation S330 described above, which is not described herein.
And a third obtaining module 740, configured to obtain the encrypted string sent by the head-mounted device. In an embodiment, the third obtaining module 740 may be configured to perform the operation S340 described above, which is not described herein.
And the verification module 750 is used for verifying the encrypted character string to obtain a verification result. In an embodiment, the verification module 750 may be used to perform the operation S350 described above, which is not described herein.
And a third sending module 760, configured to send the verification result to the head-mounted device, where the verification result is used to control the head-mounted device to perform a login operation when the verification result is that the verification result is passed. In an embodiment, the third sending module 760 may be used to perform the operation S360 described above, which is not described herein.
According to the embodiment of the disclosure, the first generation module comprises a first random unit for randomly generating a second random number, a splicing unit for splicing the first random number, the second random number, the user identification number and a first system time stamp to generate a first character string, and a second generation unit for hashing the first character string to generate a second character string.
According to the embodiment of the disclosure, the second sending module comprises a storage unit for storing the first random number, the second random number, the user identification number, the mapping relation between the first system time stamp and the second character string into a database, and a first sending unit for sending the second character string to the mobile terminal.
According to the embodiment of the disclosure, the verification module comprises an analysis unit, a search unit, a first comparison unit and a verification unit, wherein the analysis unit is used for analyzing the encrypted character string to obtain a second character string and a first random number, the search unit is used for searching a first random number, a second random number, a user identification number and a first system time stamp corresponding to the second character string by using a database, the first comparison unit is used for comparing the first system time stamp with a current system time stamp, the second comparison unit is used for comparing the first random number in the database with the first random number obtained by analysis when the interval between the first system time stamp and the current system time stamp is smaller than or equal to preset time, and the verification unit is used for verifying that a result is passed when the first random number in the database and the first random number obtained by analysis are consistent.
According to an embodiment of the disclosure, the verification unit is further configured to verify that the result of the verification is failure when the interval between the first system timestamp and the current system timestamp is greater than a preset time.
According to an embodiment of the disclosure, the verification unit is further configured to, 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 and the first random number obtained by analysis are inconsistent, verify that the result is failure.
Fig. 8 schematically shows a block diagram of a configuration of a login device of a head-mounted device according to an embodiment of the present disclosure.
As shown in fig. 8, the login device 800 of the head-mounted device of this embodiment includes a second generating module 810, a third generating module 820, a splice conversion module 830, a scan parsing module 840, a verification transmitting module 850, and a third login module 860.
The second generating module 810 is configured to control the mobile terminal to generate a first random number, and send the first random number to the server. In an embodiment, the second generating module 810 may be configured to perform the operation S410 described above, which is not described herein.
And a third generating module 820, configured 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 an embodiment, the third generating module 820 may be configured to perform the operation S420 described above, which is not described herein.
And the splicing conversion module 830 is configured to control the mobile terminal to splice the second string with the first random number, generate an encrypted string, and convert the encrypted string into a login two-dimensional code by using a two-dimensional code generation specification. In an embodiment, the splice transformation module 830 may be configured to perform the operation S430 described above, which is not described herein.
The scan analysis module 840 is configured to control the head-mounted device to scan the login two-dimensional code using a transparent transmission mode, analyze the login two-dimensional code to obtain an encrypted string, and send the encrypted string to a server. In an embodiment, the scan parsing module 840 may be used to perform the operation S440 described above, which is not described herein.
And the verification transmitting module 850 is configured to control a server to verify the encrypted string to obtain a verification result, and transmit the verification result to the head-mounted device. In an embodiment, the verification sending module 850 may be used to perform the operation S450 described above, which is not described herein.
And the third login module 860 is configured to control the head-mounted device to perform a login operation when the verification result is that the verification result is passed. In an embodiment, the third login module 860 may be used to perform the operation S460 described above, which is not described herein.
According to the embodiment of the disclosure, the third generation module comprises a second random unit for controlling the server to randomly generate a second random number, a second splicing unit for controlling the server to splice the first random number, the second random number, the user identification number and the first system time stamp to generate a first character string, and a third generation unit for controlling the server to hash the first character string to generate a second character string.
According to the embodiment of the disclosure, the third generating module further comprises a second storage unit, a second sending unit and a second sending unit, wherein the second storage unit is used for controlling the server to store the first random number, the second random number, the user identification number, the first system timestamp and the mapping relation of the second character string into a database, and the second sending unit is used for controlling the server to send the second character string to the mobile terminal.
According to the embodiment of the disclosure, the verification sending module comprises a first analysis unit, a second search unit, a third comparison unit and a fourth comparison unit, wherein the first analysis unit is used for controlling the server to analyze the encrypted character string to obtain a second character string and a first random number, the second search unit is used for controlling the server to search the first random number, the second random number, the user identification number and the first system timestamp corresponding to the second character string by using a database, the third comparison unit is used for controlling the server to compare the first system timestamp with the current system timestamp, the fourth comparison unit is used for controlling the server to compare the first random number in the database and the first random number obtained by analysis when the interval between the first system timestamp and the current system timestamp is smaller than or equal to preset time, and the second verification unit is used for verifying that a result is passing when the first random number in the database and the first random number obtained by analysis are consistent.
According to embodiments of the present disclosure, any of the scanning module 610, the parsing module 620, the first transmitting module 630, the first acquiring module 640, the first logging module 650, the second acquiring module 710, the first generating module 720, the second transmitting module 730, the third acquiring module 740, the checking module 750, the third transmitting module 760, the second generating module 810, the third generating module 820, the stitching transformation module 830, the scanning parsing module 840, the checking transmitting module 850, and the third logging module 860 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Or at least some of the functionality of one or more of the modules may be combined with, and implemented in, at least some of the functionality of other modules. According to embodiments of the present disclosure, at least one of the scan module 610, the parsing module 620, the first sending module 630, the first obtaining module 640, the first logging module 650, the second obtaining module 710, the first generating module 720, the second sending module 730, the third obtaining module 740, the verification module 750, the third sending module 760, the second generating module 810, the third generating module 820, the splice conversion module 830, the scan parsing module 840, the verification sending module 850, and the third logging module 860 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or any other reasonable manner of integrating or packaging the circuitry, or any one of or a suitable combination of three implementations of software, hardware, and firmware. Or at least one of the scanning module 610, the parsing module 620, the first sending module 630, the first obtaining module 640, the first login module 650, the second obtaining module 710, the first generating module 720, the second sending module 730, the third obtaining module 740, the verification module 750, the third sending module 760, the second generating module 810, the third generating module 820, the splice conversion module 830, the scanning parsing module 840, the verification sending module 850, and the third login module 860 may be at least partially implemented as a computer program module, which may perform corresponding functions when being executed.
Fig. 9 schematically illustrates a block diagram of an electronic device adapted to implement a login method for a head-mounted device according to an embodiment of the disclosure.
As shown in fig. 9, an electronic device 900 according to an embodiment of the present disclosure includes a processor 901 that 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)), or the like. Processor 901 may also include on-board memory for caching purposes. Processor 901 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 903, various programs and data necessary for the operation of the electronic device 900 are stored. The processor 901, the ROM 902, and the RAM 903 are connected to each other by a bus 904. The processor 901 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 902 and/or the RAM 903. Note that the program may be stored in one or more memories other than the ROM 902 and the RAM 903. The processor 901 may also perform various operations of the method flow according to embodiments of the present disclosure by executing programs stored in the one or more memories.
According to an embodiment of the disclosure, the electronic device 900 may also include an input/output (I/O) interface 905, the input/output (I/O) interface 905 also being connected to the bus 904. The electronic device 900 may also include one or more of an input portion 906 including a keyboard, a mouse, etc., an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc., a storage portion 908 including a hard disk, etc., and a communication portion 909 including a network interface card such as a LAN card, a modem, etc., connected to the I/O interface 905. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
The present disclosure also provides a computer-readable storage medium that may be included in the apparatus/device/system described in the above embodiments, or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present 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.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to perform the methods of embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, via communication portion 909, and/or installed from removable medium 911. The computer program may comprise program code that is transmitted using any appropriate network medium, including but not limited to wireless, wireline, etc., or any suitable combination of the preceding.
In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 901. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. These examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (16)

1.一种头戴式设备的登录方法,应用于头戴式设备,其特征在于,所述方法包括: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. 根据权利要求1所述的方法,其特征在于,所述当所述校验结果为通过时,执行登录操作的步骤包括:2. The method according to claim 1, wherein the step of performing the login operation when the verification result is successful includes: 当所述校验结果为通过时,向所述服务器发送用户的账户信息绑定请求;和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.一种头戴式设备的登录方法,应用于服务器,其特征在于,所述方法包括: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.根据权利要求3所述的方法,其特征在于,所述在所述校验结果为通过时,控制所述头戴式设备执行登录操作的步骤包括:4. The method according to claim 3, wherein the step of controlling the head-mounted device to perform a login operation when the verification result is passed 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.根据权利要求3所述的方法,其特征在于,所述基于所述第一随机数,生成所述第二字符串的步骤包括:5. The method according to claim 3, wherein 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. 根据权利要求5所述的方法,其特征在于,所述将所述第二字符串发送给所述移动终端的步骤包括:6. The method according to claim 5, wherein 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.根据权利要求3所述的方法,其特征在于,所述对所述加密字符串进行校验,得到校验结果的步骤包括:7. The method according to claim 3, wherein the step of verifying the encrypted string to obtain a 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.根据权利要求7所述的方法,其特征在于,所述方法还包括:8. The method according to claim 7, characterized in that the method further comprises: 当所述第一系统时间戳与当前系统时间戳的间隔大于预设时间时,校验结果为失败。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.根据权利要求7所述的方法,其特征在于,所述方法还包括:9. The method according to claim 7, characterized in that the method further comprises: 当所述第一系统时间戳与当前系统时间戳的间隔小于等于预设时间时,且当所述数据库中的第一随机数和解析得到的第一随机数不一致时,校验结果为失败。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.一种头戴式设备的登录方法,其特征在于,所述方法包括:10. A login method for a head-mounted device, characterized in that the method comprises: 移动终端生成第一随机数,并将所述第一随机数发送至服务器;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.一种头戴式设备的登录装置,应用于头戴式设备,包括: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.一种头戴式设备的登录装置,应用于服务器,包括: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 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 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.一种头戴式设备的登录装置,包括: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. 校验发送模块,用于控制服务器对所述加密字符串进行校验,得到校验结果,并将所述校验结果发送给所述头戴式设备;以及A verification and transmission 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; and 第三登录模块,用于当所述校验结果为通过时,控制所述头戴式设备执行登录操作。The third login module is used to control the head-mounted device to perform a login operation when the verification result is successful. 14.一种电子设备,包括:14. An electronic device, comprising: 一个或多个处理器;One or more processors; 存储装置,用于存储一个或多个程序,Storage device for storing one or more programs. 其中,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器执行根据权利要求1~10中任一项所述的方法。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.一种计算机可读存储介质,其上存储有可执行指令,该指令被处理器执行时使处理器执行根据权利要求1~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.一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1~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.
CN202211003545.9A 2022-08-19 2022-08-19 Login methods, devices, electronic equipment and media for head-mounted devices Active CN115373515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211003545.9A CN115373515B (en) 2022-08-19 2022-08-19 Login methods, devices, electronic equipment and media for head-mounted devices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211003545.9A CN115373515B (en) 2022-08-19 2022-08-19 Login methods, devices, electronic equipment and media for head-mounted devices

Publications (2)

Publication Number Publication Date
CN115373515A CN115373515A (en) 2022-11-22
CN115373515B true CN115373515B (en) 2026-04-24

Family

ID=84065881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211003545.9A Active CN115373515B (en) 2022-08-19 2022-08-19 Login methods, devices, electronic equipment and media for head-mounted devices

Country Status (1)

Country Link
CN (1) CN115373515B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026081164A1 (en) * 2024-10-18 2026-04-23 Boe Technology Group Co., Ltd. Apparatus for logging into application and method for logging into application

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259436A (en) * 2016-12-29 2018-07-06 中国移动通信集团公司 Authenticating user identification processing method, application server and Verification System server

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE311063T1 (en) * 2000-02-08 2005-12-15 Swisscom Mobile Ag UNITED LOGIN PROCESS
CN103647746A (en) * 2013-11-01 2014-03-19 北京奇虎科技有限公司 User login method, device and system
CN104967604B (en) * 2015-04-21 2018-07-20 深圳市腾讯计算机系统有限公司 Login method and system
CN107330310A (en) * 2017-06-23 2017-11-07 北京小鸟看看科技有限公司 Wear method, client terminal device, equipment and the system of display device login
CN208076827U (en) * 2017-09-11 2018-11-09 深圳市屯奇尔科技有限公司 A kind of head-mounted display apparatus
CN114430346B (en) * 2022-01-27 2023-09-05 亿咖通(湖北)技术有限公司 Login method and device and electronic equipment
CN114637400A (en) * 2022-03-11 2022-06-17 杭州灵伴科技有限公司 Visual content updating method, head-mounted display device assembly and computer readable medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259436A (en) * 2016-12-29 2018-07-06 中国移动通信集团公司 Authenticating user identification processing method, application server and Verification System server

Also Published As

Publication number Publication date
CN115373515A (en) 2022-11-22

Similar Documents

Publication Publication Date Title
US20230120160A1 (en) Authentication aggregator
JP2021500811A (en) Post-processing methods, devices, equipment and media based on copyright registration information
CN106487747B (en) User identification method, system, device and processing method, device
EP3061025B1 (en) Method and system for authenticating service
CN112154636B (en) Deep link authentication
CA3178249A1 (en) Systems and methods for conducting remote attestation
CN111191200B (en) A three-party linkage authentication page display method, device and electronic equipment
CN114500093A (en) Safe interaction method and system for message information
CN113656782B (en) Method for aggregating identification codes, device for aggregating identification codes and electronic equipment
CN112367314B (en) Identity authentication method, device, computing equipment and medium
CN115373515B (en) Login methods, devices, electronic equipment and media for head-mounted devices
US11785001B1 (en) Image-based access to data
CN109934009B (en) Personal information data query interactive authorization method
US12309292B2 (en) Multi-computer system for user authentication based on client-side one-time passcode
CN113518061B (en) Data transmission method, equipment, device, system and medium in face recognition
CN114969698A (en) Password input method and device, electronic equipment and storage medium
CN114528061A (en) AR-based device using method, device and intelligent terminal system
US10853789B2 (en) Dynamic digital consent
US12462063B1 (en) Data sharing through enhanced advertising
KR102854505B1 (en) Method, system and terminal for recording real time screen image and event informaiton at the same time
EP4546177A1 (en) System and method for cross-platform recent user-activity based authentication
US20250259161A1 (en) Systems and methods for authentication and card provisioning in desktop merchant checkouts
CN116310423B (en) Image recognition methods, devices, electronic devices and readable storage media
CN115147101A (en) Secure payment method, apparatus, electronic device, medium, and program product
CN116311441A (en) Identity verification method, device, system, storage medium and program product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant