Terminal login method and device, electronic equipment and storage medium

By using terminal identification information to generate keys and bind account information during the terminal device login process, the account security risks caused by the fastest ID being easily caught are solved, and the account is securely logged in on the designated device.

CN119996002APending Publication Date: 2025-05-13VISIONVERA INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510156259.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-12
Publication Date
2025-05-13

AI Technical Summary

Technical Problem

During the login process of existing terminal devices, fixed IDs are easily caught by others, resulting in account security risks.

Method used

By receiving the first terminal identification information sent by the target terminal, the terminal key information is generated, and when the target terminal logs in, the account login verification is performed based on the binding relationship of the account information, the terminal key information and the first terminal identification information.

Benefits of technology

The binding between the device and the account is realized, ensuring that the account is logged in safely on the designated device, and reducing the risk of the account being illegally logged in.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996002A_ABST
    Figure CN119996002A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a terminal login method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving first terminal identification information sent by a target terminal, the first terminal identification information being generated when the target terminal detects that a target application program is started; generating terminal key information based on the first terminal identification information; sending the terminal key information to the target terminal; account information, terminal key information and first terminal identification information of a registered account sent by the target terminal are received, and the account information is generated when the target terminal registers the account in the target application program; establishing a binding relationship among the account information, the terminal key information and the first terminal identification information; and when the target terminal logs in the target application program, account login verification is carried out based on the binding relationship. According to the embodiment of the invention, binding of the equipment and the account is realized, so that safe login of the account on the specified equipment is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of terminal technology, and in particular to a terminal login method and device, electronic equipment, and storage medium. Background Art

[0002] Currently, the terminal device login process on the market usually generates a fixed ID on the mobile phone, and then transmits the ID to the server to realize account login. However, if the ID is captured by other people, they can use other devices to log in to the account, which poses certain security risks. Summary of the invention

[0003] In view of the above problems, a terminal login method and device, electronic device, and storage medium are proposed to overcome the above problems or at least partially solve the above problems, including:

[0004] A terminal login method, applied to a first server, comprising:

[0005] Receiving first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started;

[0006] Generate terminal key information based on the first terminal identification information;

[0007] Sending the terminal key information to the target terminal;

[0008] Receiving account information of a registered account, the terminal key information, and the first terminal identification information sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application;

[0009] Establishing a binding relationship between the account information, the terminal key information and the first terminal identification information;

[0010] When the target terminal logs in to the target application, account login verification is performed based on the binding relationship.

[0011] Optionally, it also includes:

[0012] Receiving second terminal identification information and MAC address information sent by the target terminal;

[0013] The generating terminal key information based on the first terminal identification information includes:

[0014] Generate target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information;

[0015] Sending the target terminal identification information to the second server so that the second server generates terminal key information;

[0016] Receive the terminal key information sent by the second server.

[0017] Optionally, the generating the target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information includes:

[0018] The first terminal identification information, the second terminal identification information and the MAC address information are encoded according to a preset encoding method to generate target terminal identification information.

[0019] Optionally, when the target terminal logs in to the target application, performing account login verification based on the binding relationship includes:

[0020] When the target terminal logs into the target application, receiving the account information, the terminal key information, and the first terminal identification information;

[0021] Determining whether the account information, the terminal key information, and the first terminal identification information match the binding relationship;

[0022] When the account information, the terminal key information, and the first terminal identification information match the binding relationship, generating verification success information;

[0023] The verification success information is sent to the target terminal.

[0024] A terminal login method is applied to a target terminal, wherein the target terminal has a target application installed thereon, and the method comprises:

[0025] When detecting that a target application is started, generating first terminal identification information of the target terminal;

[0026] Sending the first terminal identification information to a first server, and receiving terminal key information sent by the first server, wherein the terminal key information is generated based on the first terminal identification information;

[0027] Registering an account in the target application, and sending the account information of the registered account, the terminal key information, and the first terminal identification information to the target application for binding;

[0028] Log in based on the account information, the terminal key information and the first terminal identification information.

[0029] Optionally, when detecting that the target application is started, generating first terminal identification information of the target terminal includes:

[0030] When it is detected that the target application is started, a random character string is generated, and the random character string is used as the first terminal identification information of the target terminal.

[0031] Optionally, sending the first terminal identification information to a first server, and receiving terminal key information sent by the first server includes:

[0032] Acquire second terminal identification information and MAC address information of the target terminal;

[0033] Sending the first terminal identification information, the second terminal identification information, and the MAC address information to a first server, so that the first server generates target terminal identification information based on the first terminal identification information, the second terminal identification information, and the MAC address information, and sending the target terminal identification information to a second server to generate terminal key information;

[0034] Receive the terminal key information sent by the first server.

[0035] Optionally, logging in based on the account information, the terminal key information, and the first terminal identification information includes:

[0036] Sending the account information, the terminal key information, and the first terminal identification information to the first server for device verification;

[0037] When the verification success information sent by the first server is received, the account information is used to log in.

[0038] A terminal login device, applied to a first server, comprising:

[0039] A terminal identification receiving module, used to receive first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started;

[0040] A terminal key information module, used to generate terminal key information based on the first terminal identification information;

[0041] A terminal key sending module, used for sending the terminal key information to the target terminal;

[0042] An account information receiving module, configured to receive the account information of the registered account, the terminal key information, and the first terminal identification information sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application;

[0043] A binding relationship establishing module, used to establish a binding relationship between the account information, the terminal key information and the first terminal identification information;

[0044] A login module is used to perform account login verification based on the binding relationship when the target terminal logs into the target application.

[0045] A terminal login device is applied to a target terminal, wherein the target terminal is installed with a target application, and the device comprises:

[0046] A first terminal identification generating module, configured to generate first terminal identification information of a target terminal when detecting that a target application is started;

[0047] a terminal key information receiving module, configured to receive the first terminal identification information and send it to the first server, and receive the terminal key information sent by the first server, wherein the terminal key information is generated based on the first terminal identification information;

[0048] A binding module, used to register an account in the target application, and send the account information of the registered account, the terminal key information and the first terminal identification information to the target application for binding;

[0049] A login module is used to log in based on the account information, the terminal key information and the first terminal identification information.

[0050] The embodiments of the present invention have the following advantages:

[0051] In an embodiment of the present invention, first terminal identification information sent by a target terminal is received, the first terminal identification information is generated when the target terminal detects that a target application is started; terminal key information is generated based on the first terminal identification information; the terminal key information is sent to the target terminal; account information, terminal key information and first terminal identification information of a registered account sent by the target terminal are received, wherein the account information is generated when the target terminal registers an account in a target application; a binding relationship between the account information, the terminal key information and the first terminal identification information is established; when the target terminal logs in to the target application, account login verification is performed based on the binding relationship, thereby realizing device and account binding, thereby ensuring secure account login. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0053] Figure 1 This is a flowchart of a terminal login method provided by an embodiment of the present invention;

[0054] Figure 2 is a flowchart of another terminal login method provided by an embodiment of the present invention;

[0055] Figure 3 is a flowchart of another terminal login method provided by an embodiment of the present invention;

[0056] Figure 4 is a flowchart of another terminal login method provided by an embodiment of the present invention;

[0057] Figure 5 is a schematic diagram of a device login process provided by an embodiment of the present invention;

[0058] Figure 6 It is a structural schematic diagram of a terminal login device provided by an embodiment of the present invention;

[0059] Figure 7 It is a structural diagram of another terminal login device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0060] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. Obviously, the examples described are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0061] Reference Figure 1 , shows a flowchart of another terminal login method provided by an embodiment of the present invention, which is applied to a first server and may specifically include the following steps:

[0062] Step S101, receiving first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started;

[0063] In actual applications, when a user starts a target application of a target terminal, the target terminal can generate first terminal identification information, and the first server can receive the first terminal identification information sent by the target terminal. Among them, the target application can be an application that needs to be logged in in actual applications, which can be specifically set according to the actual application scenario. The terminal login method in the embodiment of the present invention is applied to a visual networking terminal, and the target application can be a visual networking application. The visual networking application is a software or platform developed based on visual networking technology, which can realize the transmission, processing, storage and interaction of video data. These applications are widely used in many fields, such as video conferencing, distance education, smart security, etc.

[0064] Step S102, generating terminal key information based on the first terminal identification information;

[0065] In the first server, after receiving the first terminal identification information, the terminal key information can be generated based on the first terminal identification information. In practical applications, the generation method of the terminal key information can be preset, and then after the first terminal identification information is generated, the first terminal identification information can be used to generate the terminal key information according to the preset generation method. Among them, the preset generation method can be set according to actual needs, and there is no excessive restriction on this in the embodiment of the present invention. The first server can be a video link server.

[0066] Step S103, sending the terminal key information to the target terminal;

[0067] Step S104, receiving the account information, terminal key information and first terminal identification information of the registered account sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application;

[0068] The user uses the target terminal to register an account in the target application to generate account information, and then the target terminal can send the account information, terminal key information and first terminal identification information to the first server. The account information may include but is not limited to any one or more of the account ID and account key.

[0069] Step S105, establishing a binding relationship between the account information, the terminal key information and the first terminal identification information;

[0070] The first server may establish a binding relationship based on the received account information, terminal key information, and first terminal identification information.

[0071] After the binding is completed, when the user logs in using the target terminal, the target terminal can use its stored account information, terminal key information and first terminal identification information to log in. If the user uses the account information to log in to the target application on a terminal device other than the target terminal, since the terminal device does not have the terminal key information and first terminal identification information corresponding to the target device, the corresponding account cannot be logged in, thus realizing the secure login of the account using a fixed device.

[0072] Step S106: when the target terminal logs into the target application, account login verification is performed based on the binding relationship.

[0073] In the embodiment of the present invention, the first server can implement a binding relationship between the account information, the first terminal identification information and the terminal key information, and further implement binding of the account with the terminal device, thereby ensuring secure login of the account on the designated device.

[0074] Reference Figure 2 , shows a flowchart of another terminal login method provided by an embodiment of the present invention, which is applied to a first server and may specifically include the following steps:

[0075] Step S201, receiving first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started;

[0076] Step S202, receiving second terminal identification information and MAC address information sent by the target terminal;

[0077] Step S203, generating target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information;

[0078] In one embodiment of the present invention, target terminal identification information is generated based on first terminal identification information, second terminal identification information and MAC address information, including: encoding the first terminal identification information, second terminal identification information and MAC address information according to a preset encoding method to generate target terminal identification information.

[0079] In actual applications, the first server can concatenate and encode the first terminal identification information, the second terminal identification information, and the MAC address information sent by the target terminal to generate the target terminal identification information, which can be used to represent the target terminal. The preset encoding method can be set according to demand, for example, the preset encoding method can be Base64 encoding.

[0080] Step S204, sending the target terminal identification information to the second server, so that the second server generates terminal key information;

[0081] Step S205: receiving terminal key information sent by the second server.

[0082] Step S206, sending the terminal key information to the target terminal;

[0083] Step S207, receiving the account information, terminal key information and first terminal identification information of the registered account sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application;

[0084] Step S208, establishing a binding relationship between the account information, the terminal key information and the first terminal identification information;

[0085] Step S209: when the target terminal logs into the target application, account login verification is performed based on the binding relationship.

[0086] In one embodiment of the present invention, when the target terminal logs in to the target application, account login verification is performed based on the binding relationship, including: when the target terminal logs in to the target application, receiving account information, terminal key information and first terminal identification information; determining whether the account information, terminal key information and first terminal identification information match the binding relationship; when the account information, terminal key information and first terminal identification information match the binding relationship, generating verification success information; and sending the verification success information to the target terminal.

[0087] In the embodiment of the present invention, the first server can implement a binding relationship between the account information, the first terminal identification information and the terminal key information, and further implement binding of the account with the terminal device, thereby ensuring secure login of the account on the designated device.

[0088] Reference Figure 3 , shows a flowchart of the steps of a terminal login method provided by an embodiment of the present invention, which is applied to a target terminal, and the target terminal has a target application installed thereon, and specifically may include the following steps:

[0089] Step S301, when detecting that a target application is started, generating first terminal identification information of the target terminal;

[0090] In actual applications, the target terminal can be used to implement a device for securely logging into a target application, wherein the target application can be an application that needs to be logged into in actual applications, and can be specifically set according to actual application scenarios. The terminal login method in the embodiment of the present invention is applied to a visual networking terminal, and the target application can be a visual networking application. The visual networking application is a software or platform developed based on visual networking technology, which can realize the transmission, processing, storage and interaction of video data. These applications are widely used in many fields, such as video conferencing, distance education, smart security, etc.

[0091] When the target terminal detects that the user starts the target application, the first terminal identification information can be generated based on the target terminal currently used. The first terminal identification information is associated with the target terminal, and the first terminal identification information can be a unique identifier of the target terminal. After the first terminal identification information is generated, the first terminal identification information can be stored in the target terminal.

[0092] In an embodiment of the present invention, when it is detected that a target application is started, a random character string may be generated, and the character string may be used as the first terminal identification information of the target terminal.

[0093] Step S302, sending the first terminal identification information to the first server, and receiving the terminal key information sent by the first server, where the terminal key information is generated based on the first terminal identification information;

[0094] After the first terminal identification information is generated, the first terminal identification information can be sent to the first server, the first server can be used to implement the binding of the terminal and the account, and the first server can generate the terminal key information based on the first terminal identification information. In practical applications, the generation method of the terminal key information can be pre-set, and then after the first terminal identification information is generated, the first terminal identification information can be used to generate the terminal key information according to the preset generation method. Among them, the preset generation method can be set according to actual needs, and there is no excessive restriction on this in the embodiment of the present invention. The first server can be a video link server.

[0095] Step S303, registering an account in the target application, and sending the account information, terminal key information, and first terminal identification information of the registered account to the first server for binding;

[0096] When a user registers an account in a target application using a target terminal, the user needs to set the account information of the registered account. The account information may include but is not limited to any one or more of an account ID and an account key.

[0097] The target terminal can send the account information during registration, the terminal key information associated with the terminal device, and the first terminal identification information to the first server, so that the first server binds the account information, the first terminal identification information, and the terminal key information. After the binding is completed, the first terminal identification information, the terminal key information, and the account information can be made to correspond, so that the account and the terminal device can be associated.

[0098] Step S304: Log in based on the account information, the terminal key information and the first terminal identification information.

[0099] After the binding is completed, when the user logs in using the target terminal, the target terminal can use its stored account information, terminal key information and first terminal identification information to log in. If the user uses the account information to log in to the target application on a terminal device other than the target terminal, since the terminal device does not have the terminal key information and first terminal identification information corresponding to the target device, the corresponding account cannot be logged in, thus realizing the secure login of the account using a fixed device.

[0100] In one embodiment of the present invention, logging in is performed based on account information, terminal key information and first terminal identification information, including: sending the account information, terminal key information and first terminal identification information to a first server for device verification; upon receiving verification success information sent by the first server, using the account information to log in.

[0101] In actual applications, when a user uses a target terminal to log in to a target application, the user can send the account information, terminal key information, and first terminal identification information to the first server. In the first server, the account information, terminal key information, and first terminal identification information used for login can be verified based on the binding relationship of the previously stored account information, terminal key information, and first terminal identification information, and then the result of the device verification is fed back to the target terminal. In the case of successful device verification, the first server can generate verification success information, and then send the verification success information to the target terminal, and then the target terminal can use the account information to log in to the target application; in the case of failed device verification, the first server can generate verification failure information, and then send the verification failure information to the target terminal to prompt the target terminal that the login failed. In actual applications, the verification failure information when the login fails can also prompt the user the reason for the verification failure. For example, the reason for the user's verification failure can include but is not limited to account information error, device inconsistency, etc.

[0102] In an embodiment of the present invention, when it is detected that a target application is started, first terminal identification information of the target terminal is generated; the first terminal identification information is sent to a first server, and terminal key information sent by the first server is received, the terminal key information is generated based on the first terminal identification information; an account is registered in the target application, and the account information, terminal key information and first terminal identification information of the registered account are sent to the first server for binding; login is performed based on the account information, terminal key information and first terminal identification information, thereby realizing device and account binding, thereby ensuring secure account login.

[0103] Reference Figure 4 , shows a flowchart of another terminal login method provided by an embodiment of the present invention, which may specifically include the following steps:

[0104] Step S401, when detecting that a target application is started, generating first terminal identification information of the target terminal;

[0105] Step S402, obtaining second terminal identification information and MAC address information of the target terminal;

[0106] The second terminal identification information may be IMEI (International Mobile Equipment Identity), which is a unique device identifier set for each device when it leaves the factory, and MAC address information (Media Access Control Address) is a unique hardware identifier of a network device, which is used to identify the device in a local area network (LAN). The MAC address information is assigned by the network interface controller (NIC) manufacturer and embedded in the device's hardware.

[0107] Step S403, sending the first terminal identification information, the second terminal identification information and the MAC address information to the first server, so that the first server generates the target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information, and sends the target terminal identification information to the second server to generate terminal key information;

[0108] In actual applications, the first terminal identification information, the second terminal identification information, and the MAC address information are all information associated with the target terminal. The three are combined to generate the target terminal identification information, which can be used to represent the target terminal. Then, the first server can call the second server for generating keys to generate terminal key information corresponding to the target terminal identification information. Then, the first server can forward the generated terminal key information to the target terminal.

[0109] In an embodiment of the present invention, the first terminal identification information, the second terminal identification information and the MAC address information may be concatenated and encoded to generate the target terminal identification information. In practical applications, the encoding method may be Base64 encoding.

[0110] Base64 encoding is a method of representing arbitrary binary data based on 64 printable characters. It is the process of converting binary data into visible characters.

[0111] Base64 encoding can be used in the following scenarios:

[0112] (1) Data encryption or signature is converted into a string through Base64 for storage or transmission.

[0113] (2) In a network environment where files cannot be transferred, you can convert the files to Base64 for network transmission.

[0114] (3) Embed image files or other binary resources in text resources (such as HTML and CSS files).

[0115] (4) Transmitting small amounts of binary data in URLs, web pages, etc.

[0116] Base64 encoding principle: every 3 bytes (each byte is 8 bits, 3 bytes are 24 bits) are re-divided into 4 groups (each group is 6 bits, two 0s are added to the high bit to make 8 bits as a new byte, and the value range of each byte after division is 00000000-00111111, which is 0-63 in decimal), and then the value of the divided byte is used as an index to look up the encoding table, obtain the corresponding character, and thus obtain the encoded string, and encode any data through 64 characters.

[0117] Step S204, receiving terminal key information sent by the first server;

[0118] Step S205, registering an account in the target application, and sending the account information, terminal key information, and first terminal identification information of the registered account to the first server for binding;

[0119] Step S206: Log in based on the account information, the terminal key information and the first terminal identification information.

[0120] In an embodiment of the present invention, when it is detected that a target application is started, first terminal identification information of the target terminal is generated; second terminal identification information and MAC address information of the target terminal are obtained; the first terminal identification information, the second terminal identification information and the MAC address information are sent to a first server, so that the first server generates target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information, and sends the target terminal identification information to a second server to generate terminal key information; the terminal key information sent by the first server is received; an account is registered in the target application, and the account information, terminal key information and first terminal identification information of the registered account are sent to the first server for binding; login is performed based on the account information, the terminal key information and the first terminal identification information, thereby realizing the binding of the device and the account, thereby ensuring secure login of the account.

[0121] Reference Figure 5, showing a schematic diagram of a device login process in an embodiment of the present invention, a visual networking APP is installed on the visual networking terminal device, and when the user starts the visual networking APP, the terminal can generate a first terminal identification information locally, and the first terminal identification information can be stored in the key chain of the key, and then the visual networking terminal can send the generated first terminal identification information, the locally stored IMEI, and the MAC Address to the visual networking server, and the first terminal identification information, IMEI, and MAC Address can be spliced ​​in the visual networking server, and the target terminal identification information can be generated according to Base64 encoding. In actual applications, the visual networking terminal confidentiality level can be set in the visual networking server.

[0122] The visual network server can also call the cryptographic server to generate terminal key information corresponding to the target terminal identification information, and then the cryptographic server returns the generated terminal key information to the visual network server, and the visual network server returns the terminal key information to the visual network terminal.

[0123] After binding people, devices, and keys, the visual network server can realize that one device can only log in to one account, ensuring the security of device login. When a user logs in using the visual network device, the visual network server can match the account information, the first terminal identification information of the login terminal, IMEI, MAC Address, and terminal key.

[0124] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0125] Reference Figure 6 , shows a schematic diagram of the structure of a terminal login device provided by an embodiment of the present invention, which is applied to a target terminal, and the target terminal has a target application installed thereon, and specifically may include the following modules:

[0126] The first terminal identification generating module 601 is used to generate the first terminal identification information of the target terminal when detecting the start of the target application;

[0127] The terminal key information receiving module 602 is used to receive the first terminal identification information and send it to the first server, and receive the terminal key information sent by the first server, wherein the terminal key information is generated based on the first terminal identification information;

[0128] A binding module 603 is used to register an account in the target application, and send the account information of the registered account, the terminal key information and the first terminal identification information to the target application for binding;

[0129] The login module 604 is used to log in based on the account information, the terminal key information and the first terminal identification information.

[0130] In an embodiment of the present invention, when the first terminal identification generating module 601 is used to generate the first terminal identification information of the target terminal when detecting the start of the target application, it is specifically used to:

[0131] When it is detected that the target application is started, a random character string is generated, and the random character string is used as the first terminal identification information of the target terminal.

[0132] In an embodiment of the present invention, the terminal key information receiving module 602 may include:

[0133] An information acquisition submodule, used to acquire second terminal identification information and MAC address information of the target terminal;

[0134] an information sending submodule, configured to send the first terminal identification information, the second terminal identification information, and the MAC address information to a first server, so that the first server generates target terminal identification information based on the first terminal identification information, the second terminal identification information, and the MAC address information, and sends the target terminal identification information to a second server to generate terminal key information;

[0135] The terminal key receiving submodule is used to receive the terminal key information sent by the first server.

[0136] In one embodiment of the present invention, the login module 604 may include:

[0137] A device verification submodule, used to send the account information, the terminal key information and the first terminal identification information to the first server for device verification;

[0138] The login submodule is used to log in using the account information when receiving the verification success information sent by the first server.

[0139] In an embodiment of the present invention, when it is detected that a target application is started, first terminal identification information of the target terminal is generated; the first terminal identification information is sent to a first server, and terminal key information sent by the first server is received, the terminal key information is generated based on the first terminal identification information; an account is registered in the target application, and the account information, terminal key information and first terminal identification information of the registered account are sent to the first server for binding; login is performed based on the account information, terminal key information and first terminal identification information, thereby realizing device and account binding, thereby ensuring secure account login.

[0140] Reference Figure 7 , shows a schematic diagram of the structure of a terminal login device provided by an embodiment of the present invention, which is applied to a target terminal, and the target terminal has a target application installed thereon, and specifically may include the following modules:

[0141] The terminal identification receiving module 701 is used to receive first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started;

[0142] The terminal key information module 702 is used to generate terminal key information based on the first terminal identification information;

[0143] The terminal key sending module 703 is used to send the terminal key information to the target terminal;

[0144] An account information receiving module 704 is used to receive the account information of the registered account, the terminal key information and the first terminal identification information sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application;

[0145] A binding relationship establishing module 705, used to establish a binding relationship between the account information, the terminal key information and the first terminal identification information;

[0146] The login module 706 is used to perform account login verification based on the binding relationship when the target terminal logs into the target application.

[0147] In one embodiment of the present invention, the device may further include:

[0148] An information receiving module, used to receive second terminal identification information and MAC address information sent by the target terminal;

[0149] The terminal key information module 702 may include:

[0150] A terminal identification information generating submodule, configured to generate target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information;

[0151] A terminal key generation submodule, used for sending the target terminal identification information to the second server, so that the second server generates terminal key information;

[0152] The terminal key information receiving submodule is used to receive the terminal key information sent by the second server.

[0153] In one embodiment of the present invention, the terminal identification information generation submodule may be used to:

[0154] The first terminal identification information, the second terminal identification information and the MAC address information are encoded according to a preset encoding method to generate target terminal identification information.

[0155] In one embodiment of the present invention, the login module 706 may include:

[0156] A login submodule, configured to receive the account information, the terminal key information, and the first terminal identification information when the target terminal logs in to the target application;

[0157] A matching submodule, used to determine whether the account information, the terminal key information and the first terminal identification information match the binding relationship;

[0158] A verification success submodule, configured to generate verification success information when the account information, the terminal key information, and the first terminal identification information match the binding relationship;

[0159] The verification success information sending submodule is used to send the verification success information to the target terminal.

[0160] In the embodiment of the present invention, the first server can implement a binding relationship between the account information, the first terminal identification information and the terminal key information, and further implement binding of the account with the terminal device, thereby ensuring secure login of the account on the designated device.

[0161] An embodiment of the present invention further provides an electronic device, which may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the terminal login method as described above is implemented.

[0162] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the terminal login method as described above is implemented.

[0163] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0164] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0165] Those skilled in the art will appreciate that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.

[0166] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0167] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0168] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0169] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0170] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0171] The above provides a detailed introduction to a terminal login method and device, an electronic device, and a storage medium. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for general technical personnel in this field, according to the idea of ​​the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A terminal login method, characterized in that: Applied to a first server, the method comprises: Receiving first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started; Generate terminal key information based on the first terminal identification information; Sending the terminal key information to the target terminal; Receiving account information of a registered account, the terminal key information, and the first terminal identification information sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application; Establishing a binding relationship between the account information, the terminal key information and the first terminal identification information; When the target terminal logs in to the target application, account login verification is performed based on the binding relationship.

2. The method according to claim 1, characterized in that: Also includes: Receiving second terminal identification information and MAC address information sent by the target terminal; The generating terminal key information based on the first terminal identification information includes: Generate target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information; Sending the target terminal identification information to the second server so that the second server generates terminal key information; Receive the terminal key information sent by the second server.

3. The method according to claim 2, characterized in that The generating the target terminal identification information based on the first terminal identification information, the second terminal identification information and the MAC address information includes: The first terminal identification information, the second terminal identification information and the MAC address information are encoded according to a preset encoding method to generate target terminal identification information.

4. The method according to claim 1, characterized in that: When the target terminal logs in to the target application, performing account login verification based on the binding relationship includes: When the target terminal logs into the target application, receiving the account information, the terminal key information, and the first terminal identification information; Determining whether the account information, the terminal key information, and the first terminal identification information match the binding relationship; When the account information, the terminal key information, and the first terminal identification information match the binding relationship, generating verification success information; The verification success information is sent to the target terminal.

5. A terminal login method, characterized in that: Applied to a target terminal, the target terminal having a target application installed thereon, the method comprising: When detecting that a target application is started, generating first terminal identification information of the target terminal; Sending the first terminal identification information to a first server, and receiving terminal key information sent by the first server, wherein the terminal key information is generated based on the first terminal identification information; Registering an account in the target application, and sending the account information of the registered account, the terminal key information, and the first terminal identification information to the target application for binding; Log in based on the account information, the terminal key information and the first terminal identification information.

6. The method according to claim 5, characterized in that The step of generating first terminal identification information of the target terminal when detecting the start of the target application program comprises: When it is detected that the target application is started, a random character string is generated, and the random character string is used as the first terminal identification information of the target terminal.

7. The method according to claim 5, characterized in that The sending the first terminal identification information to the first server and receiving the terminal key information sent by the first server includes: Acquire second terminal identification information and MAC address information of the target terminal; Sending the first terminal identification information, the second terminal identification information, and the MAC address information to a first server, so that the first server generates target terminal identification information based on the first terminal identification information, the second terminal identification information, and the MAC address information, and sending the target terminal identification information to a second server to generate terminal key information; Receive the terminal key information sent by the first server.

8. The method according to claim 5, characterized in that Logging in based on the account information, the terminal key information, and the first terminal identification information includes: Sending the account information, the terminal key information, and the first terminal identification information to the first server for device verification; When the verification success information sent by the first server is received, the account information is used to log in.

9. A terminal login device, characterized in that: Applied to a first server, the device comprises: A terminal identification receiving module, used to receive first terminal identification information sent by a target terminal, where the first terminal identification information is generated when the target terminal detects that a target application is started; A terminal key information module, used to generate terminal key information based on the first terminal identification information; A terminal key sending module, used for sending the terminal key information to the target terminal; An account information receiving module, configured to receive the account information of the registered account, the terminal key information, and the first terminal identification information sent by the target terminal, wherein the account information is generated when the target terminal registers an account in the target application; A binding relationship establishing module, used to establish a binding relationship between the account information, the terminal key information and the first terminal identification information; A login module is used to perform account login verification based on the binding relationship when the target terminal logs into the target application.

10. A terminal login device, characterized in that: Applied to a target terminal, the target terminal having a target application installed thereon, the device comprising: A first terminal identification generating module, configured to generate first terminal identification information of a target terminal when detecting that a target application is started; a terminal key information receiving module, configured to receive the first terminal identification information and send it to the first server, and receive the terminal key information sent by the first server, wherein the terminal key information is generated based on the first terminal identification information; A binding module, used to register an account in the target application, and send the account information of the registered account, the terminal key information and the first terminal identification information to the target application for binding; A login module is used to log in based on the account information, the terminal key information and the first terminal identification information.