Interaction control method and system for intelligent terminal and server

By converting the application icon arrangement position on the smart terminal into a position sequence, generating an elliptic curve and obtaining a public and private key, encrypting and signing the interactive data between the smart terminal and the server, the problem of insufficient encryption security in the existing technology is solved, and the security and authenticity of data transmission are achieved.

CN119519992APending Publication Date: 2025-02-25SHENZHEN NASDA IND & TRADE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411795185.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-09
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In the prior art, encryption security is insufficient in the interactive control between the smart terminal and the server, making it difficult to effectively ensure the security of data transmission.

Method used

By converting the application icon arrangement position on the smart terminal into a position sequence, an elliptic curve is generated and the public and private keys are obtained. These public and private keys are used to encrypt and sign the sent messages, ensuring the authenticity and security of the messages during transmission.

Benefits of technology

It realizes encryption and decryption of the information interaction process between the smart terminal and the server, ensures the security and authenticity of data transmission, and enhances the overall security of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119519992A_ABST
    Figure CN119519992A_ABST
Patent Text Reader

Abstract

The invention provides an interaction control method and system for an intelligent terminal and a server. The interaction control method comprises the steps that the intelligent terminal obtains arrangement positions of application icons of multiple application programs; the intelligent terminal converts the arrangement position into a position sequence; the intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value and the signature pair; two coefficients for determining an elliptic curve are generated according to the sequence data, the elliptic curve is generated according to the two coefficients, then corresponding data are obtained from the elliptic curve, a private key and a public key of an encryption algorithm are obtained, the determination coefficients of the algorithm are generated according to the unique use habits and personal habits of a user, the encryption performance of the algorithm is guaranteed, and the encryption efficiency of the algorithm is improved. And the information interaction process between the intelligent terminal and the server is encrypted and decrypted according to the random number, the private key, the public key and other characteristics, so that the data security of the interaction process 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 computer technology, and in particular to an interactive control system of an intelligent terminal and a server, an interactive control method of an intelligent terminal and a server, an intelligent terminal and a storage medium. Background Art

[0002] In the prior art, terminals can generally interact with servers in various ways. The interaction between terminals and servers is a vital part of modern computer networks. It involves the transmission and processing of data, information and resources. The communication between terminals and servers must follow certain rules and protocols, such as TCP / IP, HTTP, FTP, etc. These protocols ensure that data can be transmitted and interpreted correctly. The terminal can remotely connect to the server through remote login protocols (such as SSH, Telnet) and obtain an interface similar to local login. Use file transfer protocols (such as FTP, SFTP) to upload files from the terminal to the server or download files from the server to the terminal. The terminal can use various protocols and technologies (such as HTTP, HTTPS, Web services, etc.) to send requests to the server and receive responses. Connect to the database on the server through database connection protocols (such as ODBC, JDBC) and perform data query, insertion, update, deletion and other operations. The terminal first needs to establish a connection with the server. This usually involves using a specific network protocol (such as TCP / IP) to initialize the connection. After the server receives the request from the terminal, it will process it accordingly according to the type of request. This may involve operations such as querying the database, performing calculations, returning pages, etc. After receiving the response from the server, the terminal will parse the response. The content of the response is generally encapsulated in the format specified by the corresponding protocol. The terminal needs to parse the response into readable data according to the protocol. The encryption security of the existing terminal and server interaction control is an urgent problem to be solved. Summary of the invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide an interactive control method of an intelligent terminal and a server, an interactive control system of an intelligent terminal and a server, an interactive control system of an intelligent terminal and a server, an intelligent terminal and a storage medium that overcome the above problems or at least partially solve the above problems.

[0004] In order to solve the above problems, an embodiment of the present invention discloses an interactive control method between an intelligent terminal and a server, wherein the intelligent terminal runs multiple applications; the method comprises: The smart terminal obtains the arrangement positions of the application icons of the multiple application programs; The intelligent terminal converts the arrangement position into a position sequence; The intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; The intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient; The intelligent terminal generates a first public key and a first private key according to the elliptic curve; The intelligent terminal performs encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; The intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; The intelligent terminal sends the first public key, encryption function value, signature pair and message to be sent to the server; The server receives the first public key, the encryption function value, the signature pair and the message to be sent; The server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0005] Preferably, the intelligent terminal converts the arrangement position into a position sequence, including: The intelligent terminal divides the application program into preset categories to obtain a plurality of application icons of different categories; The smart terminal obtains the horizontal coordinates and vertical coordinates of the arrangement positions of multiple different types of application icons; The horizontal coordinate and the vertical coordinate are combined into a position sequence according to a preset order of application icon types.

[0006] Preferably, the intelligent terminal generates the first coefficient and the second coefficient according to the position sequence, including: Calculating a hash value of the position sequence, and determining a first digit of the hash value as a first coefficient; The Euler distance value of the position sequence is calculated, and the Euler distance value is determined as the second coefficient.

[0007] Preferably, the intelligent terminal obtains the elliptic curve through the first coefficient and the second coefficient, including: The first coefficient and the second coefficient are added to the preset elliptic relationship to generate an elliptic curve.

[0008] Preferably, the intelligent terminal generates a first public key and a first private key according to the elliptic curve, including: Selecting a first random number from the position sequence, and if the first random number is less than the order of the elliptic curve, determining the first random number as a first private key; A first public key is generated according to the first private key and the elliptic curve.

[0009] Preferably, the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value, including: Obtain a second random number, calculate a modulus operation of the second random number and an elliptic curve, and obtain first signature data; The second signature data is calculated according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; A signature pair is formed based on the first signature data and the second signature data.

[0010] Preferably, the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value, and the signature, including: If the signature pair is within a preset range, a specific elliptic curve point is obtained according to the first public key and the elliptic curve calculation; If the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point, the message to be sent is verified to be true.

[0011] The embodiment of the present invention discloses an interactive control system of an intelligent terminal and a server, wherein the intelligent terminal runs multiple application programs; the control system comprises: An arrangement position acquisition module, used for the smart terminal to acquire the arrangement positions of the application icons of the multiple application programs; A conversion module, used by the intelligent terminal to convert the arrangement position into a position sequence; A coefficient generation module, used for the intelligent terminal to generate a first coefficient and a second coefficient according to the position sequence; An elliptic curve module, used for the intelligent terminal to obtain an elliptic curve through the first coefficient and the second coefficient; A private key and public key generation module, used for the intelligent terminal to generate a first public key and a first private key according to the elliptic curve; An encryption function calculation module is used for the intelligent terminal to perform encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; A signature pair generation module, used for the smart terminal to generate a signature pair according to the elliptic curve and the encryption function value; A sending module, used for the smart terminal to send the first public key, encryption function value, signature pair and message to be sent to the server; A receiving module, used for the server to receive the first public key, the encryption function value, the signature pair and the message to be sent; The verification module is used for the server to verify the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0012] Embodiments of the present invention The embodiments of the present invention further disclose an intelligent terminal, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the above-mentioned steps of interactive control between the intelligent terminal and the server when executing the computer program.

[0013] The embodiment of the present invention further discloses a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of interactive control between the intelligent terminal and the server are implemented.

[0014] The embodiments of the present invention include the following advantages: The interactive control method between a smart terminal and a server in an embodiment of the present invention, wherein the smart terminal runs multiple applications; comprises: the smart terminal obtains the arrangement positions of the application icons of the multiple applications; the smart terminal converts the arrangement positions into a position sequence; the smart terminal generates a first coefficient and a second coefficient according to the position sequence; the smart terminal obtains an elliptic curve through the first coefficient and the second coefficient; the smart terminal generates a first public key and a first private key according to the elliptic curve; the smart terminal performs an encryption function calculation on a message to be sent to obtain an encryption function value of the message to be sent; the smart terminal generates a signature pair according to the elliptic curve and the encryption function value; the smart terminal converts the first public key, the encryption function value, and the signature pair into a and the message to be sent to the server; the server receives the first public key, the encryption function value, the signature pair and the message to be sent; the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value and the signature pair; generates two coefficients of a determining elliptic curve according to the sequence data, generates an elliptic curve according to the two coefficients, and then obtains corresponding data from the elliptic curve to obtain the private key and public key of the encryption algorithm, and generates the determining coefficient of the algorithm through the user's unique usage habits and personal habits to ensure the encryption of the algorithm. Furthermore, the random number in the embodiment of the present invention is also selected from the sequence data, and then the information interaction process between the smart terminal and the server is encrypted and decrypted according to the characteristics of the random number, the private key and the public key to ensure the data security of the interaction process. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 It is a flowchart of a method for interactive control between a smart terminal and a server according to an embodiment of the present invention; Figure 2 is a schematic diagram of an arrangement position of application icons according to an embodiment of the present invention; Figure 3 is a schematic diagram of arrangement positions of different types of application icons according to an embodiment of the present invention; Figure 4 It is a structural block diagram of an interactive control system embodiment of an intelligent terminal and a server according to an embodiment of the present invention; Figure 5 The figure is a diagram of the internal structure of a smart terminal according to an embodiment. DETAILED DESCRIPTION

[0017] In order to make the technical problems, technical solutions and beneficial effects solved by the embodiments of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0018] In a core concept of an embodiment of the present invention, the icon positions of different types of applications arranged on the display area of ​​the smart terminal are converted into sequence data, and then two coefficients of a determining elliptic curve are generated based on the sequence data, and then the elliptic curve is generated based on the two coefficients, and then the corresponding data is obtained from the elliptic curve to obtain the private key and public key of the encryption algorithm. The determining coefficient of the algorithm is generated by the user's unique usage habits and personal habits to ensure the encryption of the algorithm. Furthermore, the random number in the embodiment of the present invention is also selected from the sequence data, and then the information interaction process between the smart terminal and the server is encrypted and decrypted based on the characteristics of the random number, private key and public key to ensure data security of the interaction process.

[0019] The interactive control of the intelligent terminal and the server provided in the embodiment of the present invention can be applied to an application environment including a terminal and a server. Among them, the terminal communicates with the server through a network. The method can be applied to various intelligent terminals such as personal computers, laptops, smart phones, intelligent terminals and portable wearable devices. The embodiment of the present invention does not limit the specific type of the terminal. The terminal can be, but is not limited to, a server can be implemented by an independent server or a server cluster composed of multiple servers. The terminal is connected to a variety of semiconductor devices, and the embodiment of the present invention does not impose too many restrictions on this.

[0020] Reference Figure 1 , shows a flowchart of a method for interactive control between a smart terminal and a server according to an embodiment of the present invention, wherein the smart terminal runs multiple applications; the method may specifically include the following steps: Step 101, the smart terminal obtains the arrangement positions of the application icons of the multiple application programs; In an embodiment of the present invention, the smart terminal can run multiple different types of applications. In an example of the embodiment of the present invention, the application may include game applications, social applications, shopping applications, tool applications, financial applications, educational applications, life service applications, etc. The embodiment of the present invention does not impose too many restrictions on this; game applications refer to software tools used for entertainment games and casual games; social applications refer to social software tools used for social network functions; shopping applications refer to software tools that make online shopping in new e-commerce a daily consumption channel; tool applications refer to software tools that provide various auxiliary functions, such as transportation, listening to music, etc. , watching movies, surfing the Internet, taking a taxi and other functions; educational applications refer to software tools for learning and education, with functions such as online courses and learning management software; financial applications refer to software tools for financial management such as banks and securities; life service applications refer to software tools that provide convenient life services for people in terms of clothing, food, housing, transportation, etc. The above-mentioned division of different types of applications is only an example of an embodiment of the present invention, and the application can also be divided according to other division methods, for example, according to the target user classification, such as children's applications, elderly applications, business applications, general consumer applications, etc., and the embodiment of the present invention does not impose too many restrictions on this.

[0021] In the embodiment of the present invention, the intelligent terminal can obtain the arrangement positions of the application icons of the multiple application programs, and the arrangement positions may include the ordinate and abscissa in the display area, such as Figure 2 As shown, the arrangement positions of the application icons of multiple application programs may be represented as (1, 1), (1, 2), (1, 3), (2, 3), (3, 3), etc., and the embodiment of the present invention does not impose excessive restrictions on this.

[0022] Step 102, the intelligent terminal converts the arrangement position into a position sequence; In an embodiment of the present invention, the smart terminal converts the arrangement position into a position sequence; specifically, the smart terminal converts the arrangement position into a position sequence, including: the smart terminal divides the application according to preset categories to obtain multiple different types of application icons; the smart terminal obtains the horizontal and vertical coordinates of the arrangement positions of the multiple different types of application icons; and the horizontal and vertical coordinates are combined into a position sequence according to a preset order of application icon categories.

[0023] That is, firstly, the application is divided into different categories, and after the application is divided into different categories, the horizontal coordinates and vertical coordinates of the arrangement positions of the application of different categories are obtained, and the horizontal coordinates and vertical coordinates of the arrangement positions of the application of different categories are combined into a position sequence according to a preset application icon type order; For example, Figure 3 As shown, the display area of ​​the smart terminal displays a plurality of different types of application icons. For example, the positions of application icons of type 1 (educational application icons) are (1, 1), (3, 3), (2, 2), (3, 2), (1, 3), (3, 4), (2, 5), (4, 5), (3, 6), (4, 6), (2, 7). For example, the positions of application icons of type 2 (financial application icons) are (2, 1), (4, 2), (4, 3), (1, 4), (2, 6), (3, 7), (5, 7). For example, the positions of application icons of type 3 (social application icons) are (4, 1), (1, 2), (2, 3), (5, 3), (4, 4), (1, 5), (3, 5), (1, 6), (1, 7), (4, 7). For example, the positions of application icons of type 4 (social application icons) are (5, 1), (5, 2), (3, 3), (2, 4), (5, 4), (5, 5), (6, 5). Furthermore, if the types of application icons are arranged in order, The order is type 1, type 2, type 3, type 4; then the position sequence is the combination of the horizontal and vertical coordinates of the arrangement positions of type 1, type 2, type 3, type 4: (1, 1), (3, 3), (2, 2), (3, 2), (1, 3), (3, 4), (2, 5), (4, 5), (3, 6), (4, 6), (2, 7), (2, 1), (4, 2), (4, 3), (1, 4), (2, 6), (3, 7), (5, 7), (4, 1) , (1, 2), (2, 3), (5, 3), (4, 4), (1, 5), (3, 5), (1, 6), (1, 7), (4, 7), (5, 1), (5, 2), (3, 3), (2, 4), (5, 4), (5, 5), (6, 5), which is 1133223213342545364627214243142637574112235344153516174751523324545565; Step 103, the intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; Further applied to the embodiment of the present invention, after obtaining the position sequence, the intelligent terminal generates the first coefficient and the second coefficient according to the position sequence; in the embodiment of the present invention, the intelligent terminal generates the first coefficient and the second coefficient according to the position sequence, including: calculating the hash value of the position sequence, and determining the first digit of the hash value as the first coefficient; The Euler distance value of the position sequence is calculated, and the Euler distance value is determined as the second coefficient.

[0024] Among them, the first coefficient refers to the real number a in the elliptic curve equation; and the second coefficient refers to the real number b in the elliptic curve equation. Both determine the shape of the elliptic curve and also determine the confidentiality of the private key and public key of the encryption algorithm.

[0025] As for the first coefficient acquisition method, the position sequence may be subjected to a hash operation, that is, the above-mentioned 1133223213342545364627214243142637574112235344153516174751523324545565 is used as the input of the hash algorithm to obtain a hash value of a preset number of bits of a fixed-length output, and the first coefficient is obtained. If the preset number of bits can be set to two digits, the hash value is an output value of two digits. On the other hand, the second coefficient can be obtained by calculating the Euler distance value; specifically, the above position sequence can be divided into data of multiple dimensions, and then the Euler distance value is calculated from the data of multiple dimensions, and the Euler distance value is determined as the second coefficient; The Euler distance value represents D; (x1, y1), (x2, y2) represents two-dimensional data; the position sequence 1133223213342545364627214243142637574112235344153516174751523324545565 can be divided into x1=1133223213342545364627, y1=214243142637574112235, x2=3441535161747, y2=51523324545565; the second coefficient is calculated according to the following expression The Euler distance value expression is as follows: ; It should be noted that the above-mentioned method of calculating the Euler distance value is only an example of an embodiment of the present invention. The position sequence can also be divided into other multi-dimensional data, such as four-dimensional data, five-dimensional data, etc., to calculate the corresponding Euler distance value. The embodiment of the present invention does not impose too many restrictions on this.

[0026] Step 104, the intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient; In actual application to the embodiment of the present invention, the smart terminal obtains an elliptic curve through the first coefficient and the second coefficient, including: adding the first coefficient and the second coefficient to the preset elliptic relationship to generate an elliptic curve.

[0027] In a specific application, the preset ellipse relationship includes: ; Substitute the first coefficient a and the second coefficient b obtained by the above calculation into the preset elliptical relationship to generate an elliptic curve.

[0028] Step 105, the intelligent terminal generates a first public key and a first private key according to the elliptic curve; Further applied to the embodiment of the present invention, the intelligent terminal generates a first public key and a first private key according to the elliptic curve, including: selecting a first random number in the position sequence, if the first random number is less than the order of the elliptic curve, determining the first random number as the first private key; generating a first public key according to the first private key and the elliptic curve.

[0029] A random number of preset bits is selected from the above position sequence: 1133223213342545364627214243142637574112235344153516174751523324545565 as a first random number, and then whether the first random number is less than the order of the elliptic curve is further determined. When the first random number is less than the order of the elliptic curve, the first random number is determined to be the first private key. Furthermore, after obtaining the first private key, a generator of the generated elliptic curve is extracted, and the first public key is calculated based on the first private key and the generator. In an embodiment of the present invention, two coefficients of an elliptic curve are generated based on sequence data related to an application icon, a random number is selected from the sequence data, and then corresponding data is obtained from the elliptic curve to obtain a private key and a public key of the encryption algorithm. The coefficients of the algorithm are generated based on the user's unique usage habits and personal habits to ensure the encryption of the algorithm.

[0030] Step 106, the intelligent terminal performs encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; In an embodiment of the present invention, the intelligent terminal may perform an encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; in a specific example, the encryption function may include a variety of hash functions, such as MD5 algorithm, SHA1 algorithm, SHA256 algorithm, SHA512 algorithm, etc. The embodiment of the present invention does not impose excessive restrictions on this, and the interactive information to be sent is encrypted by the MD5 algorithm to obtain the encrypted summary information of the interactive information to be sent.

[0031] Step 107, the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; In an embodiment of the present invention, the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value, including: obtaining a second random number, calculating the modulus operation of the second random number and the elliptic curve to obtain the first signature data; calculating the second signature data according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; and forming a signature pair according to the first signature data and the second signature data.

[0032] After obtaining the first public key and the first private key, a signature pair can be generated according to the elliptic curve and the encryption function value. The signature pair can be composed of the first signature data and the second signature data. First, the first signature data can be an elliptic curve point calculated by the second random number, and the modulus operation result of the elliptic curve point is used as the first signature data. For example, the elliptic curve point P = the second random number k * the generator L of the elliptic curve; and the elliptic curve point P includes the horizontal coordinate t1 and the vertical coordinate t2; then the first signature data ; It should be noted that the second random number is not the same as the first random number, and the second random number can also be selected in the position sequence. When it is identified that the second random number is the same as the first random number, the second random number is reselected in the position sequence; In a specific application, the second signature data ; Wherein, M represents the second signature data, h represents the encryption function value, Q represents the first signature data, k refers to the second random number, and d refers to The first private key; e refers to the encryption coefficient, which is an empirical constant; the first signature data and the second signature data are obtained, and the two are combined into a signature pair.

[0033] Step 108, the intelligent terminal sends the first public key, encryption function value, signature pair and message to be sent to the server; Step 109, the server receives the first public key, encryption function value, signature pair and message to be sent; After obtaining the above data, the data corresponding to the smart terminal, namely the first public key, encryption function value, signature pair and message to be sent, is sent to the server. The server receives the first public key, encryption function value, signature pair and message to be sent, and verifies the message.

[0034] Step 110: The server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0035] In an embodiment of the present invention, the server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature pair, including: if the signature pair is within a preset range, a specific elliptic curve point is obtained based on the first public key and the elliptic curve calculation; if the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point, then the message to be sent is verified to be true.

[0036] In actual application to the embodiments of the present invention, the server can verify the encryption function value, the first signature data and the second signature data in the signature pair according to the sent first public key and the generator of the elliptic curve, so as to verify the authenticity of the message to be sent; in one embodiment, the server can first verify the authenticity of the original encryption function value, that is, perform a hash function extraction operation on the message to be sent to obtain a new encryption function value. If the original encryption function value and the new encryption function value are consistent, it means that the message has not been tampered with, and then further verify the authenticity of the first signature data and the second signature data in the signature pair. The decryption method corresponds to the encryption method, which will not be described one by one here. The core concept of the embodiments of the present invention lies in.

[0037] The interactive control method between a smart terminal and a server in an embodiment of the present invention, wherein the smart terminal runs multiple applications; comprises: the smart terminal obtains the arrangement positions of the application icons of the multiple applications; the smart terminal converts the arrangement positions into a position sequence; the smart terminal generates a first coefficient and a second coefficient according to the position sequence; the smart terminal obtains an elliptic curve through the first coefficient and the second coefficient; the smart terminal generates a first public key and a first private key according to the elliptic curve; the smart terminal performs an encryption function calculation on a message to be sent to obtain an encryption function value of the message to be sent; the smart terminal generates a signature pair according to the elliptic curve and the encryption function value; the smart terminal converts the first public key, the encryption function value, and the signature pair into a and the message to be sent to the server; the server receives the first public key, the encryption function value, the signature pair and the message to be sent; the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value and the signature pair; generates two coefficients of a determining elliptic curve according to the sequence data, generates an elliptic curve according to the two coefficients, and then obtains corresponding data from the elliptic curve to obtain the private key and public key of the encryption algorithm, and generates the determining coefficient of the algorithm through the user's unique usage habits and personal habits to ensure the encryption of the algorithm. Furthermore, the random number in the embodiment of the present invention is also selected from the sequence data, and then the information interaction process between the smart terminal and the server is encrypted and decrypted according to the characteristics of the random number, the private key and the public key to ensure the data security of the interaction process.

[0038] 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.

[0039] Reference Figure 4 , shows a structural block diagram of an interactive control system embodiment of an intelligent terminal and a server according to an embodiment of the present invention, wherein the intelligent terminal includes a display area, and the intelligent terminal runs multiple applications; specifically, the following modules may be included: An arrangement position acquisition module 301 is used for the smart terminal to acquire arrangement positions of application icons of the multiple application programs; A conversion module 302, used for the intelligent terminal to convert the arrangement position into a position sequence; A coefficient generating module 303, used for the intelligent terminal to generate a first coefficient and a second coefficient according to the position sequence; An elliptic curve module 304, configured for the intelligent terminal to obtain an elliptic curve through the first coefficient and the second coefficient; A private key and public key generation module 305, used for the smart terminal to generate a first public key and a first private key according to the elliptic curve; The encryption function calculation module 306 is used for the smart terminal to perform encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; A signature pair generation module 307, used for the smart terminal to generate a signature pair according to the elliptic curve and the encryption function value; A sending module 308, configured for the smart terminal to send the first public key, encryption function value, signature pair and message to be sent to a server; Receiving module 309, used for the server to receive the first public key, encryption function value, signature pair and message to be sent; The verification module 310 is used for the server to verify the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0040] Preferably, the conversion module comprises: A division submodule, used for the smart terminal to divide the application program according to preset categories to obtain a plurality of application icons of different categories; An acquisition submodule, used for the smart terminal to acquire the horizontal coordinates and vertical coordinates of the arrangement positions of multiple different types of application icons; The composition submodule is used to combine the horizontal coordinate and the vertical coordinate into a position sequence according to a preset application icon type sequence.

[0041] Preferably, the coefficient generation module comprises: A first calculation submodule, used for calculating a hash value of the position sequence, and determining a first digit of the hash value as a first coefficient; The determination submodule is used to calculate the Euler distance value of the position sequence and determine the Euler distance value as the second coefficient.

[0042] Preferably, the elliptic curve module comprises: The adding submodule is used to add the first coefficient and the second coefficient to the preset elliptic relationship to generate an elliptic curve.

[0043] Preferably, the private key and public key generation module includes: A selection submodule, configured to select a first random number from the position sequence, and if the first random number is smaller than the order of the elliptic curve, determine the first random number as a first private key; A generating submodule is used to generate a first public key according to the first private key and an elliptic curve.

[0044] Preferably, the signature pair generation module comprises: A modulus operation submodule, used to obtain a second random number, calculate the modulus operation of the second random number and the elliptic curve, and obtain the first signature data; A second calculation submodule, used for calculating the second signature data according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; The signature pair forming submodule is used to form a signature pair according to the first signature data and the second signature data.

[0045] Preferably, the verification module comprises: A third calculation submodule, configured to obtain a specific elliptic curve point according to the first public key and the elliptic curve calculation if the signature pair is within a preset range; The verification submodule is used to verify that the message to be sent is true if the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point.

[0046] As for the system 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.

[0047] For the specific definition of the interactive control system between the smart terminal and the server, please refer to the definition of the interactive control method between the smart terminal and the server above, which will not be repeated here. Each module in the interactive control system between the smart terminal and the server can be implemented in whole or in part by software, hardware and a combination thereof. The above modules can be embedded in or independent of the processor in the smart terminal in the form of hardware, or stored in the memory in the smart terminal in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0048] The interactive control system of the smart terminal and the server provided above can be used to execute the interactive control method of the smart terminal and the server provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0049] In one embodiment, a smart terminal is provided, whose internal structure diagram can be as follows: Figure 5 As shown. The intelligent terminal includes a processor, a memory, a network interface, a display screen and an input system connected through a system bus. Among them, the processor of the intelligent terminal is used to provide computing and control capabilities. The memory of the intelligent terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the intelligent terminal is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for simulating daylighting is implemented. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the input system of the intelligent terminal can be a touch layer covering the display screen, or a button, trackball or touchpad set on the shell of the intelligent terminal, or an external keyboard, touchpad or mouse, etc.

[0050] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the smart terminal to which the scheme of the present application is applied. The specific smart terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0051] In one embodiment, a smart terminal is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented: The smart terminal obtains the arrangement positions of the application icons of the multiple application programs; The intelligent terminal converts the arrangement position into a position sequence; The intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; The intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient; The intelligent terminal generates a first public key and a first private key according to the elliptic curve; The intelligent terminal performs encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; The intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; The intelligent terminal sends the first public key, encryption function value, signature pair and message to be sent to the server; The server receives the first public key, the encryption function value, the signature pair and the message to be sent; The server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0052] Preferably, the intelligent terminal converts the arrangement position into a position sequence, including: The intelligent terminal divides the application program into preset categories to obtain a plurality of application icons of different categories; The smart terminal obtains the horizontal coordinates and vertical coordinates of the arrangement positions of multiple different types of application icons; The horizontal coordinate and the vertical coordinate are combined into a position sequence according to a preset order of application icon types.

[0053] Preferably, the intelligent terminal generates the first coefficient and the second coefficient according to the position sequence, including: Calculating a hash value of the position sequence, and determining a first digit of the hash value as a first coefficient; The Euler distance value of the position sequence is calculated, and the Euler distance value is determined as the second coefficient.

[0054] Preferably, the intelligent terminal obtains the elliptic curve through the first coefficient and the second coefficient, including: The first coefficient and the second coefficient are added to the preset elliptic relationship to generate an elliptic curve.

[0055] Preferably, the intelligent terminal generates a first public key and a first private key according to the elliptic curve, including: Selecting a first random number from the position sequence, and if the first random number is less than the order of the elliptic curve, determining the first random number as a first private key; A first public key is generated according to the first private key and the elliptic curve.

[0056] Preferably, the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value, including: Obtain a second random number, calculate a modulus operation of the second random number and an elliptic curve, and obtain first signature data; The second signature data is calculated according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; A signature pair is formed based on the first signature data and the second signature data.

[0057] Preferably, the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value, and the signature, including: If the signature pair is within a preset range, a specific elliptic curve point is obtained according to the first public key and the elliptic curve calculation; If the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point, the message to be sent is verified to be true.

[0058] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented; The smart terminal obtains the arrangement positions of the application icons of the multiple application programs; The intelligent terminal converts the arrangement position into a position sequence; The intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; The intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient; The intelligent terminal generates a first public key and a first private key according to the elliptic curve; The intelligent terminal performs encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; The intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; The intelligent terminal sends the first public key, encryption function value, signature pair and message to be sent to the server; The server receives the first public key, the encryption function value, the signature pair and the message to be sent; The server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

[0059] Preferably, the intelligent terminal converts the arrangement position into a position sequence, including: The intelligent terminal divides the application program into preset categories to obtain a plurality of application icons of different categories; The smart terminal obtains the horizontal coordinates and vertical coordinates of the arrangement positions of multiple different types of application icons; The horizontal coordinate and the vertical coordinate are combined into a position sequence according to a preset order of application icon types.

[0060] Preferably, the intelligent terminal generates the first coefficient and the second coefficient according to the position sequence, including: Calculating a hash value of the position sequence, and determining a first digit of the hash value as a first coefficient; The Euler distance value of the position sequence is calculated, and the Euler distance value is determined as the second coefficient.

[0061] Preferably, the intelligent terminal obtains the elliptic curve through the first coefficient and the second coefficient, including: The first coefficient and the second coefficient are added to the preset elliptic relationship to generate an elliptic curve.

[0062] Preferably, the intelligent terminal generates a first public key and a first private key according to the elliptic curve, including: Selecting a first random number from the position sequence, and if the first random number is less than the order of the elliptic curve, determining the first random number as a first private key; A first public key is generated according to the first private key and the elliptic curve.

[0063] Preferably, the intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value, including: Obtain a second random number, calculate a modulus operation of the second random number and an elliptic curve, and obtain first signature data; The second signature data is calculated according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; A signature pair is formed based on the first signature data and the second signature data.

[0064] Preferably, the server verifies the authenticity of the message to be sent according to the first public key, the encryption function value, and the signature, including: If the signature pair is within a preset range, a specific elliptic curve point is obtained according to the first public key and the elliptic curve calculation; If the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point, the message to be sent is verified to be true.

[0065] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0066] 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.

[0067] Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the embodiments of the present invention may take the form of complete hardware embodiments, complete software embodiments, or embodiments 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.

[0068] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the systems, 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 system that specifies the functions of a box or multiple boxes.

[0069] 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 method, which is implemented in the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0070] 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 implementing the process in the computer or other programmable terminal device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0071] 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.

[0072] 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", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, system, 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, system, 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, system, article or terminal device including the elements.

[0073] The above is a detailed introduction to an interactive control method between an intelligent terminal and a server, an interactive control system between an intelligent terminal and a server, an intelligent terminal and a storage medium provided by the present invention. Specific examples are used in this article 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. An interactive control method between an intelligent terminal and a server, characterized in that: The smart terminal runs multiple applications; including: The smart terminal obtains the arrangement positions of the application icons of the multiple application programs; The intelligent terminal converts the arrangement position into a position sequence; The intelligent terminal generates a first coefficient and a second coefficient according to the position sequence; The intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient; The intelligent terminal generates a first public key and a first private key according to the elliptic curve; The intelligent terminal performs encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; The intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value; The intelligent terminal sends the first public key, encryption function value, signature pair and message to be sent to the server; The server receives the first public key, the encryption function value, the signature pair and the message to be sent; The server verifies the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

2. The method according to claim 1, characterized in that The intelligent terminal converts the arrangement position into a position sequence, including: The intelligent terminal divides the application program into preset categories to obtain a plurality of application icons of different categories; The smart terminal obtains the horizontal coordinates and vertical coordinates of the arrangement positions of multiple different types of application icons; The horizontal coordinate and the vertical coordinate are combined into a position sequence according to a preset order of application icon types.

3. The method according to claim 1, characterized in that The intelligent terminal generates a first coefficient and a second coefficient according to the position sequence, including: Calculating a hash value of the position sequence, and determining a first digit of the hash value as a first coefficient; The Euler distance value of the position sequence is calculated, and the Euler distance value is determined as the second coefficient.

4. The method according to claim 1, characterized in that The intelligent terminal obtains an elliptic curve through the first coefficient and the second coefficient, including: The first coefficient and the second coefficient are added to the preset elliptic relationship to generate an elliptic curve.

5. The method according to claim 1, characterized in that The intelligent terminal generates a first public key and a first private key according to the elliptic curve, including: Selecting a first random number from the position sequence, and if the first random number is less than the order of the elliptic curve, determining the first random number as a first private key; A first public key is generated according to the first private key and the elliptic curve.

6. The method according to claim 1, characterized in that The intelligent terminal generates a signature pair according to the elliptic curve and the encryption function value, including: Obtain a second random number, calculate a modulus operation of the second random number and an elliptic curve, and obtain first signature data; The second signature data is calculated according to the second random number, the encryption function value, the first private key, the encryption coefficient and the first signature data; A signature pair is formed based on the first signature data and the second signature data.

7. The method according to claim 1, characterized in that The server verifies the authenticity of the message to be sent according to the first public key, the encryption function value, and the signature, including: If the signature pair is within a preset range, a specific elliptic curve point is obtained according to the first public key and the elliptic curve calculation; If the first signature data in the signature pair is the same as the coordinate point of the specific elliptic curve point, the message to be sent is verified to be true.

8. An interactive control system of an intelligent terminal and a server, characterized in that: The smart terminal runs multiple applications; including: An arrangement position acquisition module, used for the smart terminal to acquire the arrangement positions of the application icons of the multiple application programs; A conversion module, used by the intelligent terminal to convert the arrangement position into a position sequence; A coefficient generation module, used for the intelligent terminal to generate a first coefficient and a second coefficient according to the position sequence; An elliptic curve module, used for the intelligent terminal to obtain an elliptic curve through the first coefficient and the second coefficient; A private key and public key generation module, used for the intelligent terminal to generate a first public key and a first private key according to the elliptic curve; An encryption function calculation module, used for the intelligent terminal to perform encryption function calculation on the message to be sent to obtain the encryption function value of the message to be sent; A signature pair generation module, used for the smart terminal to generate a signature pair according to the elliptic curve and the encryption function value; A sending module, used for the smart terminal to send the first public key, encryption function value, signature pair and message to be sent to the server; A receiving module, used for the server to receive the first public key, the encryption function value, the signature pair and the message to be sent; The verification module is used for the server to verify the authenticity of the message to be sent based on the first public key, the encryption function value, and the signature.

9. An intelligent terminal, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the interactive control method between the smart terminal and the server according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the interactive control method of the intelligent terminal and the server according to any one of claims 1 to 6 are implemented.