Encryption communication method, related device, equipment, system and medium

By receiving and comparing the password set in encrypted communication and generating passwords using time factors, the problems of high cost of encrypted communication, high resource consumption and low security in the prior art are solved, and secure and efficient encrypted communication is achieved.

CN119155021AActive Publication Date: 2024-12-17HANGZHOU HUACHENG SOFTWARE TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410985106.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-22
Publication Date
2024-12-17
Estimated Expiration
2044-07-22

AI Technical Summary

Technical Problem

Existing encrypted communication methods require exchange of keys before formally encrypting communication, resulting in security issues, and the introduction of third-party verification increases cost and resource consumption, and increases complexity.

Method used

By receiving the password of the communication terminal and generating a password set with the requested content and parameters as parameters, the comparison is performed to determine the request result, key exchange and third-party verification are avoided, and passwords are generated using time factors to ensure that different contents are at the same time Passwords under factors are different, and passwords under different time factors are also different.

Benefits of technology

Reduces the cost, resource consumption and complexity of encrypted communications, and improves security, and accurately determines the request result through simple password comparisons, reducing the risk of replay attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119155021A_ABST
    Figure CN119155021A_ABST
Patent Text Reader

Abstract

The invention discloses an encryption communication method, a related device, equipment, a system and a medium. The encryption communication method comprises the following steps: receiving a first password of a first communication end; wherein the first password is generated by taking the request content and a first parameter as input parameters of a target encryption mode, the first parameter represents a time period when the request content is triggered, and the request content is included in a plurality of preset contents; comparing the first password with a password set generated by the communication terminal to obtain a comparison result; wherein the password set comprises a plurality of second passwords with preset contents, the second passwords are generated by taking the preset contents and second parameters as input parameters of a target encryption mode, and the second parameters adopted by different password sets respectively represent different time periods; and determining a request result of the first communication end based on the comparison result. According to the scheme, the cost, resource consumption and complexity of encrypted communication can be reduced, and the security of encrypted communication is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to an encrypted communication method and related devices, equipment, systems and media. Background Art

[0002] Currently, encrypted communications generally use algorithms such as symmetric encryption AES, asymmetric encryption RSA, Base64 encoding, Md5, etc.

[0003] However, in actual application, the above method still has security issues due to reasons such as the need to exchange keys before formal encrypted communication. If a third party is introduced to verify the communication, it will not only increase the cost and resource consumption, but also bring about the security issues of the third party and increase the complexity of encrypted communication. In view of this, how to reduce the cost, resource consumption and complexity of encrypted communication and improve the security of encrypted communication has become an urgent problem to be solved. Summary of the invention

[0004] The main technical problem solved by this application is to provide an encrypted communication method and related devices, equipment, systems and media, which can reduce the cost, resource consumption and complexity of encrypted communication and improve the security of encrypted communication.

[0005] In order to solve the above problems, the first aspect of the present application provides an encrypted communication method, including: receiving a first password from a first communication terminal; wherein the first password is generated with a request content and a first parameter as input parameters of a target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents; comparing the first password with a password set generated by the present communication terminal to obtain a comparison result; wherein the password set includes a second password with a number of preset contents, the second password is generated with the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods; based on the comparison result, determining the request result of the first communication terminal.

[0006] In order to solve the above problems, the second aspect of the present application provides an encrypted communication method, including: obtaining a first parameter based on the time period when the request content is triggered; wherein the request content is included in a number of preset contents; using the request content and the first parameter as input parameters of the target encryption method, generating a first password for the request content in the time period represented by the first parameter; sending the first password to the second communication end; wherein the second communication end compares the first password with the password set generated by the communication end to obtain a comparison result, and based on the comparison result, determines the request result of the first communication end, and the password set includes a second password of a number of preset contents, the second password is generated using the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods.

[0007] In order to solve the above problems, the third aspect of the present application provides an encrypted communication method, including: a first communication end obtains a first parameter based on the time period when the request content is triggered, and uses the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter; wherein the request content is included in a number of preset contents; the first communication end sends the first password to the second communication end; the second communication end compares the first password with the password set generated by the communication end to obtain a comparison result, and determines the request result of the first communication end based on the comparison result; wherein the password set includes a second password of a number of preset contents, and the second password is generated using the preset content and the second parameter as the input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods.

[0008] In order to solve the above problems, the fourth aspect of the present application provides an encryption communication device, including: a password receiving module, a password comparison module and a request determination module, the password receiving module is used to receive a first password of a first communication terminal; wherein the first password is generated with a request content and a first parameter as input parameters of a target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents; the password comparison module is used to compare the first password with a password set generated by this communication terminal to obtain a comparison result; wherein the password set includes a second password of a number of preset contents, the second password is generated with the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods; the request determination module is used to determine the request result of the first communication terminal based on the comparison result.

[0009] In order to solve the above problems, the fifth aspect of the present application provides an encryption communication device, including: a parameter acquisition module, a password generation module and a password sending module, the parameter acquisition module is used to obtain a first parameter based on the time period when the request content is triggered; wherein the request content is included in a number of preset contents; the password generation module is used to use the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter; the password sending module is used to send the first password to the second communication end; wherein the second communication end compares the first password with the password set generated by the communication end to obtain a comparison result, and determines the request result of the first communication based on the comparison result, and the password set includes a second password of a number of preset contents, the second password is generated using the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods.

[0010] In order to solve the above problems, the sixth aspect of the present application provides an electronic device, including a communication circuit, a memory and a processor, the communication circuit is coupled to the memory and the processor respectively, the memory stores program instructions, and the processor is used to execute the program instructions to implement the encryption communication method in the above first aspect or second aspect.

[0011] In order to solve the above-mentioned problem, the seventh aspect of the present application provides an encrypted communication system, including a first communication end and a second communication end connected in communication, the second communication end is used to implement the encrypted communication method in the above-mentioned first aspect, and the first communication end is used to implement the encrypted communication method in the above-mentioned second aspect.

[0012] In order to solve the above-mentioned problem, the eighth aspect of the present application provides a computer-readable storage medium, which stores program instructions that can be executed by a processor, and the program instructions are used to implement the encryption communication method in the above-mentioned first aspect or second aspect.

[0013] The above scheme receives a first password of the first communication terminal, and the first password is generated with the request content and the first parameter as input parameters of the target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents, and then the first password is compared with the password set generated by the communication terminal to obtain a comparison result, and the password set includes a second password of a number of preset contents, the second password is generated with the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods, so as to determine the request result of the first communication terminal based on the comparison result, so on the one hand, there is no need for the communicating parties to exchange keys before formal communication, and there is no need to add an additional third party Verification helps reduce the cost and resource consumption of encrypted communications and improve the security of encrypted communications. Since there is no third party involved, it also helps to reduce the complexity of encrypted communications to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communications and, to a certain extent, also helps to improve the security of encrypted communications. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communications and improve the security of encrypted communications. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 This is a flow chart of an embodiment of the encryption communication method of the present application;

[0015] Figure 2 It is a flowchart of another embodiment of the encryption communication method of the present application;

[0016] Figure 3 It is a flowchart of another embodiment of the encryption communication method of the present application;

[0017] Figure 4 It is a schematic diagram of the framework of an embodiment of the encryption communication device of the present application;

[0018] Figure 5 It is a schematic diagram of the framework of another embodiment of the encryption communication device of the present application;

[0019] Figure 6 It is a schematic diagram of the framework of an embodiment of the electronic device of the present application;

[0020] Figure 7 It is a schematic diagram of the framework of an embodiment of the encrypted communication system of the present application;

[0021] Figure 8It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0022] The scheme of the embodiment of the present application is described in detail below in conjunction with the drawings of the specification.

[0023] In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures, interfaces, and technologies are provided to facilitate a thorough understanding of the present application.

[0024] The terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship. In addition, "many" in this article means two or more than two.

[0025] See also Figure 1 , Figure 1 1 is a flowchart of an embodiment of the encrypted communication method of the present application. It should be noted that the disclosed embodiment can be executed by the second communication terminal in the encrypted communication system. Exemplarily, the second communication terminal can specifically include but is not limited to the server. For details, please refer to the embodiment of the encrypted communication system of the present application, which will not be repeated here. Specifically, the disclosed embodiment may include the following steps:

[0026] Step S11: receiving a first password from a first communication terminal.

[0027] In the disclosed embodiment, the first password is generated with the request content and the first parameter as input parameters of the target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in several preset contents. As a possible example, the first communication terminal can respond to the request instruction for the preset content, can select the requested preset content as the request content, and obtain the first parameter based on the time period when the request content is triggered, and then use the request content and the first parameter as input parameters of the target encryption method to generate the first password, and send the first password to the communication terminal to realize encrypted communication through password transmission, which can avoid attacks by malicious code / requests as much as possible due to directly passing parameters to the backend and directly inserting the request into the code or database for execution, and the first communication terminal and the communication terminal transmit the password in plain text without decryption processing, which can effectively reduce the resource consumption of the communication terminal and help improve efficiency.

[0028] In an implementation scenario, as described above, the request content is included in several preset contents. Exemplarily, a selection can be made from several preset contents to use the selected preset content as the request content. It should be noted that several preset contents can represent different transaction commodities, that is, through the embodiment of the present disclosure, the first communication terminal can realize commodity trading with the communication terminal through encrypted communication. Exemplarily, the transaction commodity can be a physical commodity, such as clothing, accessories, fresh food, beverages, etc.; or, the transaction commodity can also be a virtual commodity, such as stocks, futures, bonds, funds, etc., and the properties of the transaction commodity are not limited here. In addition, the commodity name of the transaction commodity can be used as the preset content, such as "XX brand milk XX liter", "XX brand XX men's XX size sweater", "XX securities XX fund", etc.; or, the unique code of the transaction commodity can be used as the preset content, such as stock code, fund code, etc. There is no limitation on the representation of the preset content by the commodity name, unique code or other attributes of the transaction commodity, and it can be preferably uniquely identified with different transaction commodities.

[0029] In an implementation scenario, several time periods can be obtained based on the interval duration, and the interval duration can be set according to actual application needs, such as seconds, milliseconds, etc. For example, if the interval duration is set to 1 second, 0 seconds to 1 second is a time period, 1 second to 2 seconds is a time period, 2 seconds to 3 seconds is a time period, and so on. When the interval duration is set to other values, it can be deduced by analogy, and no examples are given here one by one.

[0030] In an implementation scenario, a fixed time of each day can be used as the starting time, and each day can be divided according to the interval length to obtain the time period of each day. For example, 0:0:00 every day can be used as the starting time, and each day can be divided according to 1 second to obtain the time periods of each day: 0:0:0 to 0:0:1, 0:0:1 to 0:0:2, 0:0:2 to 0:0:3..., 23:59:59 to 0:0:0; or, a variable time of each day (such as any time can be randomly selected as the starting time) can be used as the starting time, and then the aforementioned method can be used to divide each day according to the interval length to obtain the time period of each day. In addition, time periods can also be divided into units of weeks, months, quarters, years, etc. For example, a certain moment of each month (such as a fixed moment such as 0:0:00 on the 1st of each month, or a randomly selected moment as the starting moment) can be used as the starting moment, and each month can be divided according to the interval length to obtain the monthly time period. Alternatively, a certain moment of each year (such as a fixed moment such as 0:0:00 on January 1st, or a randomly selected moment as the starting moment) can be used as the starting moment, and each year can be divided according to the interval length to obtain the annual time period.

[0031] In an implementation scenario, the earliest time in the system (e.g., January 1, 1970, 00:00) can also be selected as the starting time, and divided according to the interval length to obtain time periods, such as January 1, 1970, 00:00 to January 1, 1970, 00:01 is a time period, January 1, 1970, 00:01 to January 1, 1970, 00:02 is a time period, January 1, 1970, 00:02 to January 1, 1970, 00:03 is a time period, and so on, until the current time, and examples are not given one by one here.

[0032] In an implementation scenario, the first parameter can be specifically represented by the sequence number of the time period. Taking the division of each day from a fixed time (such as 0 hours, 0 minutes, and 0 seconds) according to the interval duration as an example, the time period from 0 hours, 0 minutes, and 0 seconds to 0 hours, 0 minutes, and 1 second can be represented by the first parameter "1", and the time period from 0 hours, 0 minutes, and 1 second to 0 hours, 0 minutes, and 2 seconds can be represented by the first parameter "2", and so on, and no examples are given here one by one. Or, taking the earliest time in the system (such as 0 hours, 0 minutes, and 0 seconds on January 1, 1970) as the starting time and starting to divide according to the interval duration as an example, the time period from 0 hours, 0 minutes, and 0 seconds on January 1, 1970 to 0 hours, 0 minutes, and 1 second on January 1, 1970 can be represented by the first parameter "1", and the time period from 0 hours, 0 minutes, and 1 second on January 1, 1970 to 0 hours, 0 minutes, and 2 seconds on January 1, 1970 can be represented by the first parameter "2", and so on, until the current time, and no examples are given here one by one.

[0033] In one implementation scenario, the interval duration can be set based on the communication delay between the current communication terminal and the first communication terminal (e.g., the delay can be microsecond delay, millisecond delay, second delay, etc. from small to large), such as the interval duration can be positively correlated with the communication delay, that is, the greater the communication delay, the greater the interval duration, and conversely, the smaller the communication delay, the smaller the interval duration; or, the interval duration can also be set based on the importance level of the encrypted communication between the current communication terminal and the first communication terminal (the importance level of financial commodity transactions is higher than that of ordinary commodity transactions), such as the interval duration can be negatively correlated with the importance level, that is, the higher the importance level, the shorter the interval duration, and conversely, the lower the importance level, the longer the interval duration; or, the interval duration can also be set based on the aforementioned communication delay and importance level, such as the interval duration is positively correlated with the communication delay, and the interval duration is negatively correlated with the importance level.

[0034] In an implementation scenario, the target encryption method can be any encryption algorithm, or it can also be a custom encryption algorithm, and the specific type of the encryption algorithm is not limited here. For example, taking OTP (One Time Password) as the target encryption method, several preset contents can include basketball, football and tennis, and the request content can be football. The first communication end uses the request content "football" and the first parameter representing the time period when the request content "football" is triggered to generate a first password, such as "585446". It should be noted that other encryption methods can also be selected in actual application, which will not be repeated here.

[0035] Step S12: Compare the first password with the password set generated by the communication terminal to obtain a comparison result.

[0036] In the disclosed embodiment, the password set includes a number of second passwords with preset contents. The second password is generated with the preset contents and the second parameter as input parameters of the target encryption method. The second parameters used in different password sets represent different time periods.

[0037] In an implementation scenario, the communication terminal can obtain the second parameter representing the time period in the order of the time periods from earliest to latest, and then use the second parameter and the preset content as the input parameters of the target encryption method to generate the second password of the preset content in the time period represented by the second parameter, so that the password set can be obtained based on the second passwords of several preset contents in the same time period. In the above method, the communication terminal and the first communication terminal use the same encryption method and the same input parameters, which can ensure the accuracy of the request result determined by password comparison later.

[0038] In a specific implementation scenario, in order to improve efficiency, the communication terminal may generate the corresponding second password from the earliest time period within a preset time period (such as half a minute, one minute, etc.) before the current moment. It should be noted that the preset time period may be positively correlated with the communication delay, and the preset time period may be negatively correlated with the importance level. For details, please refer to the setting method of the aforementioned interval time period, which will not be repeated here.

[0039] In a specific implementation scenario, as a possible example, still taking OTP (One Time Password) as the target encryption method as an example, when several preset contents include basketball, football and tennis, according to the time period of the current moment of the communication terminal, a corresponding second password can be generated, such as: the second password "355415" of the preset content "basketball", the second password "156456" of the preset content "tennis", and the second password "585446" of the preset content "football", so as to obtain the password set of the time period of the current moment. Of course, the above example is only a possible example in the actual application process, and does not limit the specific content of the password set, so it is not given one by one here.

[0040] In an implementation scenario, the first communication terminal and the present communication terminal contain the same password generator, and the password generators of the first communication terminal and the present communication terminal both adopt a target encryption method. Exemplarily, the same password generator can be pre-deployed on the first communication terminal and the present communication terminal. In addition, in order to further ensure the accuracy of encrypted communication, the first communication terminal and the present communication terminal can be pre-configured with the same interval duration. Exemplarily, the same interval duration can be configured in the password generators respectively deployed on the first communication terminal and the present communication terminal. In addition, the same starting time can also be configured in the password generators respectively deployed on the first communication terminal and the present communication terminal. It should be noted that the relevant meanings of the interval duration and the starting time, as well as the specific process of dividing the time period according to the starting time and the interval duration, can all be referred to the aforementioned related descriptions, which will not be repeated here.

[0041] In an implementation scenario, the communication terminal can continuously generate password sets corresponding to each time period locally through the above-mentioned method. In this case, it can detect whether the time period represented by the second parameter used in the password set is outside the preset time length before the current moment. If so, the password set can be deleted on the communication terminal. Otherwise, the password set can be retained on the communication terminal. The above-mentioned method determines whether to delete the password set locally by detecting whether the time period represented by the second parameter used in the password set is outside the preset time length before the current moment. On the one hand, it can save the local cache of the communication terminal, and on the other hand, it can also reduce the number of second passwords to be compared with the first password, which helps to improve the comparison efficiency. On the other hand, by appropriately retaining the password set within the preset time length, it can also retain as many second passwords as possible for comparison.

[0042] In a specific implementation scenario, before detecting whether the time period represented by the second parameter used in the password set is outside the preset time length before the current moment, the communication delay between the current communication terminal and the first communication terminal can also be obtained, and the importance level of the encrypted communication between the current communication terminal and the first communication terminal can be obtained, and then the preset time length can be determined at least based on the communication delay and the importance level. As a possible example, the preset time length is positively correlated with the communication delay, and the preset time length is negatively correlated with the importance level. It should be noted that the specific meanings of the communication delay and the importance level can be referred to the above-mentioned related descriptions, and will not be repeated here. The above method first obtains the communication delay between the first communication terminal and the current communication terminal and the importance level of the encrypted communication, and then determines the preset time length based on at least the two, which can help to improve the setting accuracy of the preset time length as much as possible, that is, it can retain as much as possible the second password that is sufficient for comparison, and can delete as much as possible the second password that is not used for comparison because it is too long ahead of the current moment.

[0043] In a specific implementation scenario, taking the preset duration as 3 seconds as an example, if the current time is 0:0:08, the following password sets corresponding to the time period from 0:0:00 to 0:0:1, the password set corresponding to the time period from 0:0:1 to 0:0:2, the password set corresponding to the time period from 0:0:2 to 0:0:3, the password set corresponding to the time period from 0:0:3 to 0:0:4, and the password set from 0:0:4 to 0:0:5 can be deleted, while the following password sets from 0:0:5 to 0:0:6, the password set from 0:0:6 to 0:0:7, and the password set from 0:0:7 to 0:0:8 are retained. Other situations can be deduced by analogy, and no further examples are given here.

[0044] Step S13: Based on the comparison result, determine the request result of the first communication end.

[0045] Specifically, the request result may at least include whether the first communication end successfully requests or fails the request content, and when the request result includes a successful request, the request result also includes the request content, that is, when the communication end determines that the request is successful, it can also determine the request content of the first communication end through password comparison.

[0046] In one implementation scenario, in response to the comparison result including the existence of a second password identical to the first password, it is determined that the request of the first communication terminal is successful, and the preset content corresponding to the second password identical to the first password is determined to be the request content. For example, if the aforementioned request content is "football" as an example, the first password received by this communication terminal is "585446", and the password set generated by this communication terminal includes: the second password "355415" of the preset content "basketball", the second password "156456" of the preset content "tennis", and the second password "585446" of the preset content "football". Since the second password identical to the first password, i.e., the second password "585446" of the preset content "football" is detected through the password comparison, it can be determined that the request of the first communication terminal is successful, and the preset content "football" corresponding to the second password identical to the first password is determined to be the request content of the first communication terminal. Of course, the above example is only a possible example in the actual application process, and does not limit other possible situations, and no examples are given here one by one. In the above method, in response to the comparison result including the existence of a second password identical to the first password, determining that the request of the first communication terminal is successful, and determining the preset content corresponding to the second password identical to the first password as the request content can improve the accuracy of the encryption request.

[0047] In one implementation scenario, as another possible scenario, in response to the comparison result including the absence of a second password identical to the first password, it is determined that the request of the first communication terminal has failed. In the above manner, the attacker cannot generate a valid password when the target encryption method, interval time and preset content are unknown, so when the communication terminal receives the password sent by the attacker, the comparison will not be successful, and the attacker will not be able to request successfully.

[0048] In one implementation scenario, after the first password is compared with the password set generated by the communication terminal and the comparison result is obtained, in response to the comparison result including the existence of a second password identical to the first password, the second password identical to the first password is deleted from the password set generated by the communication terminal. In the above manner, even if the first password of the first communication terminal is intercepted by an attacker and sent to the communication terminal again by the attacker, the communication terminal has deleted the second password identical to the first password, so the comparison cannot be successful again, and the attacker cannot request successfully, thereby preventing replay attacks.

[0049] In one implementation scenario, after determining the request result of the first communication terminal based on the comparison result, the present communication terminal can also feedback the request result to the first communication terminal, such as request success, or request failure, etc., which helps the first communication terminal to promptly understand the confirmation of the request content by the present communication terminal.

[0050] The above scheme receives a first password of the first communication terminal, and the first password is generated with the request content and the first parameter as input parameters of the target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents, and then the first password is compared with the password set generated by the communication terminal to obtain a comparison result, and the password set includes a second password of a number of preset contents, the second password is generated with the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods, so as to determine the request result of the first communication terminal based on the comparison result, so on the one hand, there is no need for the communicating parties to exchange keys before formal communication, and there is no need to add an additional third party Verification helps reduce the cost and resource consumption of encrypted communications and improve the security of encrypted communications. Since there is no third party involved, it also helps to reduce the complexity of encrypted communications to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communications and, to a certain extent, also helps to improve the security of encrypted communications. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communications and improve the security of encrypted communications.

[0051] See also Figure 2 , Figure 2 : is a flowchart of another embodiment of the encrypted communication method of the present application. It should be noted that the embodiment of the present disclosure can be executed by the first communication terminal in the encrypted communication system. Exemplarily, the first communication terminal can specifically include but is not limited to the client. For details, please refer to the embodiment of the encrypted communication system of the present application, which will not be repeated here. Specifically, the embodiment of the present disclosure may include the following steps:

[0052] Step S21: Obtain a first parameter based on the time period when the requested content is triggered.

[0053] In the embodiment of the present disclosure, the request content is included in a number of preset contents, and the details can be referred to the relevant description in the aforementioned disclosed embodiment, which will not be repeated here.

[0054] Step S22: using the request content and the first parameter as input parameters of the target encryption method, generating a first password for the request content in the time period represented by the first parameter.

[0055] For details, please refer to the relevant description in the aforementioned disclosed embodiments, which will not be repeated here.

[0056] Step S23: Send the first password to the second communication terminal.

[0057] In the disclosed embodiment, the second communication terminal compares the first password with the password set generated by the communication terminal to obtain a comparison result, and based on the comparison result, determines the request result of the first communication terminal, and the password set includes a second password with several preset contents, and the second password is generated with the preset contents and the second parameter as the input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods. For details, please refer to the relevant description in the aforementioned disclosed embodiment, which will not be repeated here.

[0058] The above scheme obtains the first parameter based on the time period when the request content is triggered, and the request content is included in several preset contents, and the request content and the first parameter are used as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter, and then send the first password to the second communication end, and the second communication end compares the first password with the password set generated by the communication end to obtain the comparison result, and determines the request result of the first communication end based on the comparison result, the password set includes the second password of several preset contents, and the second password is generated with the preset content and the second parameter as the input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods, so on the one hand, there is no need for the communicating parties to exchange passwords before formal communication, and on the other hand, the communication process is carried out according to the first parameter. The key does not need to be verified by an additional third party, which helps to reduce the cost and resource consumption of encrypted communication and improve the security of encrypted communication. Since there is no third party involved, it also helps to reduce the complexity of encrypted communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communication and, to a certain extent, helps to improve the security of encrypted communication. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communication and improve the security of encrypted communication.

[0059] See also Figure 3 , Figure 3 It is a flowchart of another embodiment of the encryption communication method of the present application.

[0060] Specifically, the following steps may be included:

[0061] Step S31: The first communication end obtains a first parameter based on the time period when the request content is triggered.

[0062] In the disclosed embodiment, the request content is included in several preset contents, which can be specifically referred to in the aforementioned disclosed embodiment, and will not be described in detail here. In addition, as an example, the first communication end can be a client, such as a mobile phone, a tablet computer, etc., and the client can trigger a selection instruction for several preset contents (such as selecting to trade a certain stock, etc.), and use the selected preset content as the request content.

[0063] Step S32: The first communication end uses the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter.

[0064] For details, please refer to the relevant description in the aforementioned disclosed embodiments, which will not be repeated here.

[0065] Step S33: The first communication terminal sends the first password to the second communication terminal.

[0066] For details, please refer to the relevant description in the aforementioned public embodiment, which will not be repeated here. In addition, as a possible example, the second communication end can be a service end, such as a server, etc., and a password comparison can be implemented on the service end to confirm whether the client's request for the requested content (such as a certain stock) is successful.

[0067] Step S34: The second communication end compares the first password with the password set generated by the communication end to obtain a comparison result.

[0068] In the embodiment of the present disclosure, the password set includes a plurality of second passwords with preset contents, and the second password is generated with the preset contents and the second parameter as the input parameters of the target encryption method, and the second parameters used in different password sets respectively represent different time periods. For details, please refer to the relevant description in the aforementioned disclosed embodiment, which will not be repeated here.

[0069] Step S35: The second communication end determines the request result of the first communication end based on the comparison result.

[0070] For details, please refer to the relevant description in the aforementioned public embodiment, which will not be repeated here. In addition, as a possible example, after the second communication terminal determines the request result of the first communication terminal based on the comparison result, the request result can be returned to the first communication terminal. Exemplarily, the server can determine whether the client's transaction request for a certain stock is successful through the aforementioned password comparison, and return the request result for a certain stock to the client. Of course, the above example is only a possible example in the actual application process, and does not limit other possible scenarios. Examples are not given one by one here.

[0071] The above scheme, on the one hand, does not require the communicating parties to exchange keys before formal communication, and does not require an additional third party to perform verification, which helps to reduce the cost and resource consumption of encrypted communication, and improve the security of encrypted communication. In addition, since there is no third party involved, it also helps to reduce the complexity of encrypted communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communication, and to a certain extent, it also helps to improve the security of encrypted communication. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communication, and improve the security of encrypted communication.

[0072] See also Figure 4 , Figure 4 It is a schematic diagram of a framework of an embodiment of an encryption communication device 40 of the present application. The encryption communication device 40 includes: a password receiving module 41, a password comparison module 42 and a request determination module 43, the password receiving module 41 is used to receive a first password of a first communication terminal; wherein the first password is generated with a request content and a first parameter as input parameters of a target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents; the password comparison module 42 is used to compare the first password with a password set generated by the communication terminal to obtain a comparison result; wherein the password set includes a second password of a number of preset contents, the second password is generated with a preset content and a second parameter as input parameters of a target encryption method, and the second parameters used by different password sets represent different time periods; the request determination module 43 is used to determine the request result of the first communication terminal based on the comparison result.

[0073] In the above scheme, the encryption communication device 40 receives the first password of the first communication terminal, and the first password is generated with the request content and the first parameter as the input parameters of the target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents, and then the first password is compared with the password set generated by the communication terminal to obtain a comparison result, and the password set includes a second password of a number of preset contents, the second password is generated with the preset content and the second parameter as the input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods, so as to determine the request result of the first communication terminal based on the comparison result, so on the one hand, there is no need for the communicating parties to exchange keys before formal communication, and no additional encryption is required. Adding a third party to perform verification can help reduce the cost and resource consumption of encrypted communications, and improve the security of encrypted communications. Since there is no third party involved, it can also help reduce the complexity of encrypted communications to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communications and, to a certain extent, also helps to improve the security of encrypted communications. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communications, and improve the security of encrypted communications.

[0074] In some disclosed embodiments, the request result includes at least whether the first communication terminal successfully requests or fails to request the requested content, and when the request result includes a successful request, the request result also includes the requested content.

[0075] In some disclosed embodiments, the request determination module 43 is specifically used to determine that the request of the first communication terminal is successful in response to the comparison result including the existence of a second password that is identical to the first password, and determine that the preset content corresponding to the second password that is identical to the first password is the request content.

[0076] In some disclosed embodiments, the request determination module 43 is specifically configured to determine that the request of the first communication terminal fails in response to the comparison result including that there is no second password that is identical to the first password.

[0077] In some disclosed embodiments, the encryption communication device 40 further includes a first deletion module for deleting the second password identical to the first password from the password set generated by the communication terminal in response to the comparison result including the existence of the second password identical to the first password.

[0078] In some public embodiments, the encryption communication device 40 also includes a set detection module for detecting whether the time period represented by the second parameter used in the password set is outside the preset time length before the current moment; the encryption communication device 40 also includes a second deletion module for deleting the password set at the current communication end when the time period represented by the second parameter used in the password set is outside the preset time length before the current moment; the encryption communication device 40 also includes a set retention module for retaining the password set at the current communication end when the time period represented by the second parameter used in the password set is not outside the preset time length before the current moment.

[0079] In some disclosed embodiments, the encryption communication device 40 also includes a delay acquisition module for acquiring the communication delay between the current communication terminal and the first communication terminal. The encryption communication device 40 also includes a level acquisition module for acquiring the importance level of the encrypted communication between the current communication terminal and the first communication terminal. The encryption communication device 40 also includes a duration determination module for determining a preset duration based at least on the communication delay and the importance level.

[0080] In some disclosed embodiments, the preset duration is positively correlated with the communication delay, and the preset duration is negatively correlated with the importance level.

[0081] In some disclosed embodiments, the encryption communication device 40 also includes a time period acquisition module, which is used to obtain a second parameter representing a time period in order from the earliest to the latest time period; the encryption communication device 40 also includes a local generation module, which is used to use the second parameter and preset content as input parameters of the target encryption method to generate a second password for the preset content in the time period represented by the second parameter; the encryption communication device 40 also includes a set acquisition module, which is used to obtain a password set based on the second passwords of several preset contents in the same time period.

[0082] In some disclosed embodiments, the encryption communication device 40 further includes a result feedback module for feeding back the request result to the first communication end.

[0083] In some disclosed embodiments, several preset contents represent different transaction commodities; and / or, the first communication terminal and the current communication terminal contain the same password generator, and the password generators of the first communication terminal and the current communication terminal adopt a target encryption method; and / or, the time period is obtained based on the interval duration, and the first communication terminal and the current communication terminal are configured with the same interval duration; and / or, the time period is obtained based on the interval duration, and the interval duration is determined based on at least one of the following: the communication delay between the current communication terminal and the first communication terminal, and the importance level of the encrypted communication between the current communication terminal and the first communication terminal.

[0084] See also Figure 5 , Figure 5It is a schematic diagram of a framework of an embodiment of an encryption communication device 50 of the present application. The encryption communication device 50 includes: a parameter acquisition module 51, a password generation module 52 and a password sending module 53. The parameter acquisition module 51 is used to obtain a first parameter based on the time period when the request content is triggered; wherein the request content is included in a plurality of preset contents; the password generation module 52 is used to use the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter; the password sending module 53 is used to send the first password to the second communication terminal; wherein the second communication terminal compares the first password with the password set generated by the communication terminal to obtain a comparison result, and determines the request result of the first communication based on the comparison result, and the password set includes a plurality of second passwords of preset contents, and the second password is generated using the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used by different password sets represent different time periods.

[0085] In the above scheme, the encryption communication device 50 obtains the first parameter based on the time period when the request content is triggered, and the request content is included in a number of preset contents, and uses the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter, and then sends the first password to the second communication end, and the second communication end compares the first password with the password set generated by the communication end to obtain a comparison result, and determines the request result of the first communication end based on the comparison result, the password set includes a second password of a number of preset contents, and the second password is generated using the preset content and the second parameter as input parameters of the target encryption method, and the second parameters used in different password sets represent different time periods, so on the one hand, there is no need for the communicating parties to communicate before the formal communication, and on the other hand, the communication between the two parties is not required to be completed. The key can be exchanged before the encryption is completed, and there is no need to add an additional third party for verification, which helps to reduce the cost and resource consumption of encrypted communication and improve the security of encrypted communication. Since there is no third party involved, it also helps to reduce the complexity of encrypted communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communication and, to a certain extent, also helps to improve the security of encrypted communication. Therefore, it can reduce the cost, resource consumption and complexity of encrypted communication and improve the security of encrypted communication.

[0086] See also Figure 6 , Figure 66 is a schematic diagram of a framework of an embodiment of an electronic device 60 of the present application. The electronic device 60 includes a communication circuit 61, a memory 62 and a processor 63. The communication circuit 61 is coupled to the memory 62 and the processor 63 respectively. The memory 62 stores program instructions. The processor 63 is used to execute the program instructions to implement the steps in the above-mentioned encryption communication method embodiment. It should be noted that the electronic device 60 may include but is not limited to: a client such as a mobile phone and a tablet computer, and may also include a server such as a server.

[0087] Specifically, the processor 63 may also be referred to as a CPU (Central Processing Unit). The processor 63 may be an integrated circuit chip having the ability to process signals. The processor 63 may also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. In addition, the processor 63 may be implemented by a plurality of integrated circuit chips.

[0088] In the above scheme, the electronic device 60 implements the above encryption communication method embodiment. On the one hand, it is not necessary for the communicating parties to exchange keys before formal communication, and there is no need to add an additional third party for verification, which helps to reduce the cost and resource consumption of encryption communication, and improve the security of encryption communication. In addition, since there is no third party involved, it also helps to reduce the complexity of encryption communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same. Therefore, the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encryption communication, and to a certain extent, it also helps to improve the security of encryption communication. Therefore, it can reduce the cost, resource consumption and complexity of encryption communication, and improve the security of encryption communication.

[0089] See also Figure 7 , Figure 7 1 is a schematic diagram of a framework of an embodiment of an encrypted communication system 70 of the present application. The encrypted communication system 70 includes a first communication terminal 71 and a second communication terminal 72 in communication connection, the second communication terminal 72 is used to implement the steps in the first encrypted communication method embodiment, and the first communication terminal is used to implement the steps in the second encrypted communication method embodiment.

[0090] In an implementation scenario, the first communication terminal 71 may be a client, such as including but not limited to a mobile phone, a tablet computer, etc., and the second communication terminal 72 may be a server, such as including but not limited to a server, etc., and the device types of the first communication terminal 71 and the second communication terminal 72 are not limited. Taking the first communication terminal 71 as a client and the second communication terminal 72 as a server as an example, it can be specifically applied to trading scenarios of financial products such as stock trading and futures trading, or it can also be applied to trading scenarios of ordinary products such as clothing, accessories, and fresh food, and the application scenarios are not limited here. Exemplarily, the first communication terminal 71 as a client can use the request content (such as stock X) and the first parameter (such as the time period when the stock X is requested) as the input parameters of the target encryption method, generate a first password, and send the first password to the second communication terminal 72 as the server. The second communication terminal 72 also uses the target encryption method to continuously generate corresponding second passwords for a number of preset contents (such as all stocks) according to the same interval as the first communication terminal 71 locally, so as to combine and obtain a password set for each time period, and compare the first password with the local second password to obtain a comparison result. If it is found that the first password is the same as a local second password, it can be determined that the request of the first communication terminal 71 as a client is successful (such as the request to trade stock X is successful), and it can be determined that the preset content (such as stock X) corresponding to the second password that is the same as the first password is the request content of the first communication terminal 71 as the client, or if it is found that there is no second password that is the same as the first password, it can be determined that the request of the first communication terminal 71 as the client fails (such as the request to trade stock X fails).

[0091] In another implementation scenario, the first communication terminal 71 and the second communication terminal 72 may not be limited to the communication scenario of the client and the server. For example, the first communication terminal 71 and the second communication terminal 72 may both be clients, or the first communication terminal 71 and the second communication terminal 72 may both be servers, which is not limited here.

[0092] In the above scheme, the encrypted communication system 70 includes a first communication terminal 71 and a second communication terminal 72 connected in communication, the second communication terminal 72 is used to implement the steps in the first encrypted communication method embodiment, and the first communication terminal 71 is used to implement the steps in the second encrypted communication method embodiment. On the one hand, there is no need for the communicating parties to exchange keys before formal communication, and there is no need to add an additional third party for verification, which helps to reduce the cost and resource consumption of encrypted communication and improve the security of encrypted communication. In addition, since there is no third party involved, it also helps to reduce the complexity of encrypted communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure that the encryption passwords of different contents under the same time factor are different as much as possible, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same, so the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communication and to a certain extent also helps to improve the security of encrypted communication. Therefore, the cost, resource consumption and complexity of encrypted communication can be reduced, and the security of encrypted communication can be improved.

[0093] See also Figure 8 , Figure 8 1 is a schematic diagram of a framework of an embodiment of a computer-readable storage medium 80 of the present application. The computer-readable storage medium 80 stores program instructions 81 executable by a processor, and the program instructions 81 can be executed to implement the steps in any of the above encryption communication method embodiments.

[0094] In the above scheme, the computer-readable storage medium 80 implements the steps in any of the above encryption communication method embodiments. On the one hand, there is no need for the communicating parties to exchange keys before formal communication, and there is no need to add an additional third party for verification, which helps to reduce the cost and resource consumption of encrypted communication and improve the security of encrypted communication. In addition, since there is no third party involved, it also helps to reduce the complexity of encrypted communication to a certain extent. On the other hand, since the encryption password for the relevant content is generated by the time factor and the corresponding content as the input parameter of the target encryption method, it can ensure as much as possible that the encryption passwords of different contents under the same time factor are different, and the encryption passwords of the same content under different time factors are also different, that is, only the encryption passwords of the same content under the same time factor are the same, so the request result can be accurately determined by a simple password comparison, which helps to reduce the complexity of encrypted communication and to a certain extent also helps to improve the security of encrypted communication. Therefore, the cost, resource consumption and complexity of encrypted communication can be reduced, and the security of encrypted communication can be improved.

[0095] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0097] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0098] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.

[0099] If the technical solution of this application involves personal information, the product using the technical solution of this application has clearly informed the personal information processing rules and obtained the individual's voluntary consent before processing the personal information. If the technical solution of this application involves sensitive personal information, the product using the technical solution of this application has obtained the individual's separate consent before processing the sensitive personal information, and at the same time meets the "explicit consent" requirement. For example, on personal information collection devices such as cameras, clear and prominent signs are set to inform that the personal information collection scope has been entered and personal information will be collected. If the individual voluntarily enters the collection scope, it is deemed that he or she agrees to the collection of his or her personal information; or on the device that processes personal information, the personal information processing rules are notified by obvious signs / information, and the individual's authorization is obtained through pop-up information or by asking the individual to upload his or her personal information; among them, the personal information processing rules may include information such as the personal information processor, the purpose of personal information processing, the processing method, and the type of personal information processed.

Claims

1. An encrypted communication method, characterized in that: include: Receive a first password of the first communication terminal; wherein the first password is generated using the request content and a first parameter as input parameters of the target encryption method, the first parameter represents the time period when the request content is triggered, and the request content is included in a number of preset contents; Compare the first password with the password set generated by the communication terminal to obtain a comparison result; wherein the password set includes the second passwords of the plurality of preset contents, the second passwords are generated with the preset contents and the second parameters as input parameters of the target encryption method, and the second parameters respectively used by different password sets represent different time periods; Based on the comparison result, a request result of the first communication end is determined.

2. The method according to claim 1, characterized in that: The request result at least includes whether the first communication end successfully requests or fails to request the request content, and when the request result includes the success of the request, the request result also includes the request content.

3. The method according to claim 1, characterized in that The determining, based on the comparison result, a request result of the first communication terminal includes: In response to the comparison result including the existence of a second password identical to the first password, it is determined that the request of the first communication terminal is successful, and the preset content corresponding to the second password identical to the first password is determined to be the request content.

4. The method according to claim 1, characterized in that The determining, based on the comparison result, a request result of the first communication terminal includes: In response to the comparison result including that there is no second password identical to the first password, it is determined that the first communication end request fails.

5. The method according to claim 1, characterized in that After comparing the first password with the password set generated by the communication terminal to obtain a comparison result, the method further includes: In response to the comparison result including the existence of a second password identical to the first password, the second password identical to the first password is deleted from the password set generated by the local communication terminal.

6. The method according to claim 1, characterized in that The method further comprises: Detecting whether the time period represented by the second parameter used in the password set is outside a preset time period before the current time; If yes, deleting the password set at the communication end; If not, the password set is retained at the communication end.

7. The method according to claim 6, characterized in that In the step of detecting whether the time period represented by the second parameter used in the password set is outside a preset time period before the current moment, the method further includes: Obtaining a communication delay between the current communication terminal and the first communication terminal, and obtaining an importance level of encrypted communication between the current communication terminal and the first communication terminal; The preset duration is determined based at least on the communication delay and the importance level.

8. The method according to claim 7, characterized in that The preset time length is positively correlated with the communication delay, and the preset time length is negatively correlated with the importance level.

9. The method according to claim 1, characterized in that: The method further comprises: Obtaining a second parameter representing the time period according to the order of the time periods from earliest to latest; Using the second parameter and the preset content as input parameters of the target encryption method, generating a second password for the preset content in the time period represented by the second parameter; The password set is obtained based on the second passwords of the plurality of preset contents in the same time period.

10. The method according to claim 1, characterized in that After determining the request result of the first communication terminal based on the comparison result, the method further includes: Feedback the request result to the first communication end.

11. The method according to claim 1, characterized in that: The plurality of preset contents represent different transaction commodities; And / or, the first communication terminal and the current communication terminal have the same password generator, and the password generators of the first communication terminal and the current communication terminal adopt the target encryption method; And / or, the time period is obtained by dividing based on an interval duration, and the first communication end and the current communication end are configured with the same interval duration; And / or, the time period is divided based on an interval duration, and the interval duration is determined based on at least one of the following: a communication delay between the current communication terminal and the first communication terminal, and an importance level of encrypted communication between the current communication terminal and the first communication terminal.

12. An encrypted communication method, characterized in that: include: Based on the time period when the request content is triggered, a first parameter is obtained; wherein the request content is included in a plurality of preset contents; Using the request content and the first parameter as input parameters of the target encryption method, generating a first password for the request content in the time period represented by the first parameter; Send the first password to the second communication terminal; wherein the second communication terminal compares the first password with the password set generated by the present communication terminal to obtain a comparison result, and based on the comparison result, determines the request result of the first communication terminal, and the password set includes a second password of the plurality of preset contents, and the second password is generated with the preset contents and a second parameter as input parameters of the target encryption method, and the second parameters respectively adopted by different password sets represent different time periods.

13. A communication encryption method, characterized in that: include: The first communication end obtains a first parameter based on the time period when the request content is triggered, and uses the request content and the first parameter as input parameters of the target encryption method to generate a first password for the request content in the time period represented by the first parameter; wherein the request content is included in a plurality of preset contents; The first communication terminal sends the first password to the second communication terminal; The second communication end compares the first password with the password set generated by the present communication end to obtain a comparison result, and determines the request result of the first communication end based on the comparison result; wherein the password set includes a second password of the plurality of preset contents, the second password is generated with the preset contents and a second parameter as input parameters of the target encryption method, and the second parameters used in different password sets represent different time periods.

14. An encrypted communication device, characterized in that: include: A password receiving module, used to receive a first password of a first communication terminal; wherein the first password is generated using a request content and a first parameter as input parameters of a target encryption method, the first parameter represents a time period when the request content is triggered, and the request content is included in a number of preset contents; A password comparison module, used to compare the first password with a password set generated by the communication terminal to obtain a comparison result; wherein the password set includes second passwords of the plurality of preset contents, the second passwords are generated using the preset contents and a second parameter as input parameters of the target encryption method, and the second parameters respectively used by different password sets represent different time periods; A request determination module is used to determine the request result of the first communication end based on the comparison result.

15. An encrypted communication device, characterized in that: include: A parameter acquisition module, used to obtain a first parameter based on a time period when the request content is triggered; wherein the request content is included in a plurality of preset contents; A password generation module, configured to use the request content and the first parameter as input parameters of a target encryption method to generate a first password for the request content in the time period represented by the first parameter; A password sending module is used to send the first password to a second communication terminal; wherein the second communication terminal compares the first password with a password set generated by the present communication terminal to obtain a comparison result, and based on the comparison result, determines the request result of the first communication, and the password set includes a second password of the plurality of preset contents, the second password is generated with the preset contents and a second parameter as input parameters of the target encryption method, and the second parameters respectively adopted by different password sets represent different time periods.

16. An electronic device, characterized in that: It comprises a communication circuit, a memory and a processor, wherein the communication circuit is coupled to the memory and the processor respectively, the memory stores program instructions, and the processor is used to execute the program instructions to implement the encryption communication method according to any one of claims 1 to 12.

17. An encrypted communication system, characterized in that: It comprises a first communication end and a second communication end connected in communication, wherein the second communication end is used to implement the encryption communication method described in any one of claims 1 to 11, and the first communication end is used to implement the encryption communication method described in claim 12.

18. A computer-readable storage medium, characterized in that: Program instructions that can be executed by a processor are stored, and the program instructions are used to implement the encryption communication method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and system for encrypting transmission information

    CN112788046A

  • Wireless communication instruction encryption method and related equipment

    CN114339737A

  • Display control method and display control device for robot parameter interface

    CN116340922A

  • Methods and apparatus to enhance security of authentication

    US20170163620A1