Privacy communication method and device based on industry short message
By generating public-private key pairs and encrypting the called number using the operator's public key, the problem of insufficient security and transparency in industry SMS transmission is solved, and the secure transmission of called numbers and encryption protection of communication links is realized.
Patent Information
- Application Number
- CN202510535589.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-18
AI Technical Summary
During the transmission of SMS in the existing industry, there is a problem that the called number and communication link are low security, and the transmission process is insufficient transparency.
By obtaining user registration information and reviewing, a public-private key pair is generated. The operator obtains the public key based on the key name and encrypts the called number. He sends an encrypted message to the operator for decryption through the SMS agent, and finally encapsulates the decrypted message and sends it to the gateway.
Ensure that the called number is not leaked during transmission, improving the security of the communication link and transparency of the transmission process, operators can generate and retain private keys, and users can use public keys to encrypt, simplifying the management process.
Smart Images

Figure CN120343543A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of industrial SMS and communication technologies, and particularly to a privacy communication method and device based on industrial SMS. Background Art
[0002] Industrial SMS is a SMS service provided for specific industries or enterprise needs, and is widely used in scenarios such as verification codes, notifications, marketing, etc. In recent years, with the development of 5G and the Internet of Things, the market scale of industrial SMS has continued to grow, becoming an important tool for enterprise operation and customer service. In the industrial SMS scenario, there are two ways for government and enterprise customers to access the operator's SMS gateway: the customer directly docks with the operator's SMS gateway; the customer first docks with a SMS agent, and the SMS data is forwarded through an N-layer (N>=1) agent network in the middle and finally accesses the operator's SMS gateway. Since the SMS content may involve sensitive information, such as bank accounts, balances, verification codes, etc., once leaked, it will bring security risks to users. The current transmission mode of industrial SMS accessing the operator through SMS agents has security hazards.
[0003] Currently, in the prior art, government and enterprise customers usually access the operator's SMS gateway through SMS agents. The SMS agent can access the complete SMS content and the called party's mobile phone number during the transmission process, which makes it easy to leak user privacy. In addition, in the prior art, even if encryption technology is used, most of it is symmetric encryption, which has problems in key distribution and management, and once the key is leaked, the security of the entire communication link will be threatened. Finally, in the prior art, the SMS agent splits the SMS message and forwards it to the corresponding operator according to the number, which causes the customer to not fully trust the agent and increases the risk of information leakage.
[0004] In summary, in the prior art, it is difficult to guarantee the security of the called number and the communication link during the SMS privacy communication process, and the transparency of the SMS transmission process is relatively low. Summary of the Invention
[0005] Based on this, it is necessary to provide a privacy communication method and device based on industrial SMS that can guarantee the security of the called number and the communication link and has a relatively high transparency in the SMS transmission process for the above technical problems.
[0006] The present invention provides a privacy communication method based on industrial SMS, and the method includes: Obtain user registration information, and review the user registration information, so as to generate a corresponding public-private key pair through the HTTP gateway after the user registration information is reviewed and passed; Query through the operator according to the key name in the public-private key pair to obtain the public key, and screen out the called numbers of the SMS to be sent; Encrypt the called number using the public key, encapsulate the encrypted message, and send the protocol packet corresponding to the encrypted message to the operator through a short message agent to invoke the operator to decrypt the protocol packet based on the key name and private key; Encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
[0007] In one embodiment, the obtaining user registration information and auditing the user registration information to generate a corresponding public-private key pair through an HTTP gateway after the user registration information is audited includes: Audit the user registration information through a management platform, and end the current registration process when the user registration information fails the audit; When the user registration information passes the audit, generate the public-private key pair in the HTTP gateway, and the public-private key pair has the unique key name; Store the key name and the public-private key pair in a database, and feedback the key name to the management platform to send the key name to the user terminal through the management platform.
[0008] In one embodiment, the querying by the operator according to the key name in the public-private key pair to obtain the public key and screening out the called numbers of the short messages to be sent includes: Log in to the management platform provided by the operator, query and obtain the public key in the management platform based on the key name, and the public key is the key used for encrypting the communication process; Select a set of called numbers of the short messages to be sent, encrypt the set of called numbers using the public key, and add the sending identifier of the operator at the same time.
[0009] In one embodiment, the encrypting the called number using the public key, encapsulating the encrypted message, and sending the protocol packet corresponding to the encrypted message to the operator through a short message agent to invoke the operator to decrypt the protocol packet based on the key name and private key includes: Encapsulate the encrypted called number with a preset message body to obtain the protocol packet, and forward the protocol packet to the operator through a short message agent; The operator queries the corresponding private key in the database using the key name to decrypt the encrypted message in the protocol packet using the key name and private key to obtain the decrypted message for sending to the gateway.
[0010] In one embodiment, the method further includes: Obtain the first key name corresponding to the registration information of the first user after the review is passed, and query the corresponding first public key in the management platform through the first key name; Encrypt the called number set corresponding to the registration information of the first user through the first public key, and send the encrypted called number set to the terminal corresponding to the second user; Assemble the encrypted called number set through the terminal corresponding to the second user to obtain an assembled message body, and send the assembled message body to the operator through the HTTP gateway to call the operator to send text messages.
[0011] In one embodiment, after the assembled message body is sent to the operator through the HTTP gateway to call the operator to send text messages by assembling the encrypted called number set through the terminal corresponding to the second user, it includes: The operator decrypts the assembled message using the corresponding first key name and first private key in the database to reassemble the decrypted assembled message to obtain a reassembled message; The operator issues a first request and reassembles the encrypted format of the called number in the status report of whether the first request is successfully issued to obtain an encrypted status report; Feed back the encrypted status report to the terminal corresponding to the second user.
[0012] In one embodiment, the method further includes: Trigger a timing task according to the set time and policy, and after the timing task is triggered, read the expired key pair from the database through the HTTP gateway; Generate a new key pair based on the expired key pair, replace the expired key pair with the new key pair, and store the new key pair in the database.
[0013] The present invention also provides a privacy communication device based on industry text messages, and the device includes: A key pair generation module, configured to obtain user registration information, review the user registration information, and generate corresponding public and private key pairs through the HTTP gateway after the user registration information is reviewed and passed; A number screening module, configured to query through the operator according to the key name in the public and private key pairs to obtain a public key and screen out the called numbers of text messages to be sent; An encryption and encapsulation module, configured to encrypt the called number through the public key, encapsulate the encrypted message, and send the protocol packet corresponding to the encrypted message to the operator through a text message agent to call the operator to decrypt the protocol packet based on the key name and private key; A message sending module, which is used to encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
[0014] The present invention also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, the privacy communication method based on industry short messages as described in any one of the above is implemented.
[0015] The present invention also provides a computer storage medium, storing a computer program, and when the computer program is executed by a processor, the privacy communication method based on industry short messages as described in any one of the above is implemented.
[0016] In the above privacy communication method and device based on industry short messages, by obtaining user registration information and auditing the user registration information, after the user registration information is audited and passed, a corresponding public-private key pair is generated through an HTTP gateway. Then, the operator queries according to the key name in the public-private key pair to obtain the public key, and filters out the called numbers of the short messages to be sent. After that, the called numbers filtered out are encrypted with the public key, and the protocol packet corresponding to the encrypted message is sent to the operator through a short message agent to call the operator to decrypt the protocol packet based on the key name and the private key. Finally, the decrypted protocol packet is encapsulated to obtain an encapsulated message, and the encapsulated message is sent to the gateway. This method can ensure that the called party's mobile phone number is not leaked during the transmission process through the public-private key encryption mechanism. When using the public-private key pair, the operator can generate and retain the private key, and the user can use the public key for encryption, which can ensure the security of the communication link and the convenience of management. In addition, this method encrypts the called numbers, and the header identification characters help the agent to direct to the corresponding operator. The short message agent is only responsible for transparently transmitting the encrypted protocol packet, which improves the transparency of the short message transmission process. Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0018] Figure 1 One of the flow diagrams of the privacy communication method based on industry short messages provided by the present invention; Figure 2 Schematic diagram of the key generation process of the privacy communication method based on industry short messages in a specific embodiment provided by the present invention; Figure 3One of the schematic diagrams of the privacy communication process of the privacy communication method based on industry SMS provided by the present invention; Figure 4 One of the schematic diagrams of the privacy communication process of the privacy communication method based on industry SMS provided by the present invention; Figure 5 Schematic diagram of the key pair update process of the privacy communication method based on industry SMS provided by the present invention; Figure 6 The second schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 7 The third schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 8 The fourth schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 9 The fifth schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 10 The sixth schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 11 The seventh schematic diagram of the process of the privacy communication method based on industry SMS provided by the present invention; Figure 12 Schematic diagram of the structure of the privacy communication device based on industry SMS provided by the present invention; Figure 13 Internal structure diagram of the electronic device provided by the present invention. Detailed implementation manners
[0019] To make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0020] The following combines Figures 1 to 13 to describe the privacy communication method and device based on industry SMS of the present invention.
[0021] As Figure 1 shown, in one embodiment, a privacy communication method based on industry SMS includes the following steps: Step S110: Obtain the user registration information and conduct an audit on the user registration information. After the user registration information passes the audit, generate a corresponding public-private key pair through the HTTP gateway.
[0022] Specifically, the client obtains the user registration information based on the user input and sends the obtained user registration information to the management platform. The user registration information is audited on the management platform. After passing the audit, it is sent to the HTTP gateway, and the HTTP gateway generates a corresponding public-private key pair based on the user registration information.
[0023] Combined with Figure 2 As shown, in a specific embodiment, for the privacy communication method based on industry SMS provided by the present invention, during the key pair generation process, first, the customer privately communicates with the operator to determine the use of this technology, and then can register on the online platform and fill in the basic information of the customer company, that is, the registration information. The registration information is submitted to the management platform, and the background personnel audit the user registration information. If the audit fails, the process ends, that is, the customer cannot continue with subsequent operations. If the audit passes, the key pair generation process is entered.
[0024] After the audit passes, a pair of public and private keys are generated in the HTTP gateway. After generating the key pair, a unique key ID (key name) will be generated. The generated key ID and public-private key are stored in the database for subsequent management and use. Then, the system returns the generated key ID to the management platform. After receiving the key ID, the management platform displays it to the customer, and the customer can obtain the key ID. This process ensures that only audited customers can obtain the key pair, and the generation, storage, and distribution of the key pair have clear processes.
[0025] Step S120: Query through the operator according to the key name in the public-private key pair to obtain the public key and screen out the called numbers of the SMS to be sent.
[0026] Specifically, after the user logs in to the management platform, the operator queries and obtains the corresponding public key according to the key name corresponding to the public-private key pair, and then sends the queried public key to the client to screen out the called numbers of the SMS to be sent.
[0027] Combined with Figure 3 As shown, in a specific embodiment, for the privacy communication method based on industry SMS provided by the present invention, the customer first logs in to the management platform provided by the operator and queries and obtains the public key on the platform using the known key ID. This public key is the key used to encrypt the communication content during the encryption process.
[0028] Step S130: Encrypt the called number with the public key, encapsulate the encrypted message, and send the protocol packet corresponding to the encrypted message to the operator through the SMS agent, so as to call the operator to decrypt the protocol packet based on the key name and the private key.
[0029] Specifically, the client encrypts the called number with the public key, encapsulates the encrypted message after encryption, and sends the protocol packet corresponding to the encapsulated encrypted message to the operator through the SMS agent, and then calls the operator to decrypt the protocol packet based on the corresponding key name and the private key.
[0030] Combined with Figure 3 As shown, in a specific embodiment, for the privacy communication method based on industry SMS provided by the present invention, the customer selects the corresponding operator number to which the SMS is to be sent according to needs, which refers to the target number (the calling number and also the operator number) to which the customer hopes to send the encrypted message, uses the obtained public key to encrypt the called number, and adds the operator's identifier to ensure that it is sent to the correct operator. The encrypted called number and the message body are encapsulated into a complete message for preparation for sending. The SMS agent receives the encapsulated protocol packet. However, since the agent does not have the private key, it cannot decrypt the message content, and thus directly forwards the received protocol packet to the operator. The operator uses the key ID to find the private key corresponding to the protocol packet in the database, and uses the key ID and the private key to decrypt the encrypted message in the received protocol packet. After decryption, the operator repackages the message and sends it to the gateway, thus completing the privacy communication process.
[0031] Step S140: Encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
[0032] Specifically, the operator encapsulates the decrypted protocol packet to obtain the corresponding encapsulated message, and sends the encapsulated message to the gateway to complete the privacy communication.
[0033] Combined with Figure 4As shown, in a specific embodiment, the privacy communication method based on industry SMS provided by the present invention, during the privacy communication process, customer A registers an account on the management platform. After passing the review, customer A obtains a key ID. Customer A uses the obtained key ID to query the corresponding public key on the management platform. Customer A encrypts the set of mobile phone numbers required by customer B using the public key, so that customer A can provide the target users to customer B without disclosing the plaintext mobile phone numbers of the users to customer B. Customer A trades the encrypted set of mobile phone numbers to customer B. Customer B cannot obtain the private key and key ID, and thus cannot decrypt the mobile phone numbers. Customer B assembles the message body using the traded encrypted mobile phone numbers and sends the assembled message body to the operator through the HTTP gateway for SMS sending. After receiving the encrypted mobile phone numbers, the operator decrypts the mobile phone numbers using the key ID and private key in the database, and then reassembles the message. After successfully sending the request, the operator returns the status report to customer B, but repackages the mobile phone numbers in the status report into an encrypted format. Customer B still cannot decrypt the mobile phone numbers. During this process, the set of mobile phone numbers provided by customer A remains encrypted when passing through customer B, and only the plaintext mobile phone numbers can be seen when the operator decrypts them, ensuring the security of privacy communication.
[0034] Combined with Figure 5 As shown, in a specific embodiment, the privacy communication method based on industry SMS provided by the present invention further includes a scheduled task (XXL-JOB) executed according to the set time and strategy. After the scheduled task is triggered, the SMS gateway starts to read a batch of expired key pairs from the database, generates new key pairs for the read expired key pairs to replace the old key pairs, and at the same time stores the new key pairs in the database. After updating a batch of key pairs, the system checks whether there are more expired key pairs in the database that need to be updated. If there is a next batch (yes), the process returns to the previous step to continue processing the remaining expired key pairs; if there is no next batch (no), the process ends. This key update process ensures that the key pairs used in the system are all the latest, guaranteeing the security of communication, that is, the customer should log in to the key management platform to obtain the latest public key using the key ID before sending each SMS.
[0035] The above privacy communication method based on industry text messages obtains the user registration information and audits the user registration information. After the user registration information is audited and passed, a corresponding public-private key pair is generated through the HTTP gateway. Then, the operator queries based on the key name in the public-private key pair to obtain the public key and filters out the called numbers of the text messages to be sent. After that, the called numbers filtered out are encrypted with the public key, and the protocol packet corresponding to the encrypted message is sent to the operator through the text message agent to call the operator to decrypt the protocol packet based on the key name and the private key. Finally, the decrypted protocol packet is encapsulated to obtain an encapsulated message, and the encapsulated message is sent to the gateway. Through the public-private key encryption mechanism, this method can ensure that the called party's mobile phone number is not leaked during the transmission process. When using the public-private key pair, the operator can generate and retain the private key, and the user can use the public key for encryption, which can ensure the security of the communication link and the convenience of management. In addition, by encrypting the called numbers and using the header identification characters to help the agent direct to the corresponding operator, the text message agent is only responsible for transparently transmitting the encrypted protocol packet, which improves the transparency of the text message transmission process.
[0036] As Figure 6 shown, in one embodiment, the privacy communication method based on industry text messages provided by the present invention, step S110 specifically includes the following steps: Step S111, audit the user registration information through the management platform, and end the current registration process when the user registration information fails the audit.
[0037] Step S112, when the user registration information passes the audit, generate a public-private key pair in the HTTP gateway, and the public-private key pair has a unique key name.
[0038] Step S113, store the key name and the public-private key pair in the database, and feedback the key name to the management platform to send the key name to the user terminal through the management platform.
[0039] As Figure 7 shown, in one embodiment, the privacy communication method based on industry text messages provided by the present invention, step S120 specifically includes the following steps: Step S121, log in to the management platform provided by the operator, query and obtain the public key in the management platform based on the key name, and the public key is the key used to encrypt the communication process.
[0040] Step S122, select the set of called numbers of the text messages to be sent, encrypt the set of called numbers with the public key, and add the sending identifier of the operator at the same time.
[0041] As Figure 8As shown, in one embodiment, the privacy communication method based on industrial short messages provided by the present invention, step S130 specifically includes the following steps: Step S131: Package the encrypted called number and a preset message body to obtain a protocol packet, and forward the protocol packet to the operator through a short message agent.
[0042] Step S132: The operator queries the corresponding private key in the database using the key name, and uses the key name and the private key to decrypt the encrypted message in the protocol packet to obtain the decrypted message for sending to the gateway.
[0043] As Figure 9 shown, in one embodiment, the privacy communication method based on industrial short messages provided by the present invention further includes the following steps: Step S910: Obtain the first key name corresponding to the registration information of the first user after passing the review, and query the corresponding first public key in the management platform using the first key name.
[0044] Step S920: Encrypt the called number set corresponding to the registration information of the first user using the first public key, and send the encrypted called number set to the terminal corresponding to the second user.
[0045] Step S930: Assemble the encrypted called number set through the terminal corresponding to the second user to obtain an assembled message body, and send the assembled message body to the operator through the HTTP gateway to call the operator to send the short message.
[0046] As Figure 10 shown, in one embodiment, after step S930 of the privacy communication method based on industrial short messages provided by the present invention, the following steps are further included: Step S1010: The operator decrypts the assembled message using the corresponding first key name and first private key in the database, and reassembles the decrypted assembled message to obtain a recombined message.
[0047] Step S1020: The operator issues a first request, and reassembles the encrypted format of the called number in the status report of whether the first request is successfully issued to obtain an encrypted status report.
[0048] Step S1030: Feed back the encrypted status report to the terminal corresponding to the second user.
[0049] As Figure 11 shown, in one embodiment, the privacy communication method based on industrial short messages provided by the present invention further includes the following steps: Step S1110, trigger a scheduled task according to the set time and strategy, and after the scheduled task is triggered, read the expired key pairs from the database through the HTTP gateway.
[0050] Step S1120, generate new key pairs based on the expired key pairs, replace the expired key pairs with the new key pairs, and store the new key pairs in the database at the same time.
[0051] The privacy communication device based on industry SMS provided by the present invention will be described below. The privacy communication device based on industry SMS described below can be correspondingly referred to the privacy communication method based on industry SMS described above.
[0052] As Figure 12 shown, in one embodiment, a privacy communication device based on industry SMS includes a key pair generation module 1210, a number screening module 1220, an encryption and encapsulation module 1230, and a message sending module 1240.
[0053] The key pair generation module 1210 is used to obtain user registration information, and review the user registration information, so as to generate corresponding public and private key pairs through the HTTP gateway after the user registration information is reviewed and passed.
[0054] The number screening module 1220 is used to query through the operator according to the key name in the public and private key pairs to obtain the public key, and screen out the called numbers of the SMS to be sent.
[0055] The encryption and encapsulation module 1230 is used to encrypt the called number with the public key, and encapsulate the encrypted message to send the protocol packet corresponding to the encrypted message to the operator through the SMS agent, so as to call the operator to decrypt the protocol packet based on the key name and the private key.
[0056] The message sending module 1240 is used to encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
[0057] In this embodiment, for the privacy communication device based on industry SMS provided by the present invention, the key pair generation module 1210 is specifically used for: Review the user registration information through the management platform, and end the current registration process when the user registration information fails the review.
[0058] When the user registration information is reviewed and passed, generate public and private key pairs in the HTTP gateway, and the public and private key pairs have a unique key name.
[0059] Store the key name and the public and private key pairs in the database, and feedback the key name to the management platform, so as to send the key name to the user terminal through the management platform.
[0060] In this embodiment, for the privacy communication device based on industrial SMS provided by the present invention, the number screening module 1220 is specifically configured to: Log in to the management platform provided by the operator, query and obtain the public key in the management platform based on the key name, where the public key is the key used to encrypt the communication process.
[0061] Select the set of called numbers for the SMS to be sent, encrypt the set of called numbers with the public key, and add the sending identifier of the operator at the same time.
[0062] In this embodiment, for the privacy communication device based on industrial SMS provided by the present invention, the encryption encapsulation module 1230 is specifically configured to: Encapsulate the encrypted called number and the preset message body to obtain a protocol packet, and forward the protocol packet to the operator through the SMS agent.
[0063] The operator queries the corresponding private key in the database using the key name, and decrypts the encrypted message in the protocol packet using the key name and the private key to obtain the decrypted message for sending to the gateway.
[0064] In this embodiment, the privacy communication device based on industrial SMS provided by the present invention further includes a privacy communication module, which is used for: Obtain the first key name corresponding to the registration information of the first user after the review is passed, and query the corresponding first public key in the management platform through the first key name.
[0065] Encrypt the set of called numbers corresponding to the registration information of the first user with the first public key, and send the encrypted set of called numbers to the terminal corresponding to the second user.
[0066] The terminal corresponding to the second user assembles the encrypted set of called numbers to obtain an assembled message body, and sends the assembled message body to the operator through the HTTP gateway to call the operator to send the SMS.
[0067] In this embodiment, the privacy communication device based on industrial SMS provided by the present invention further includes a privacy communication sub-module, which is used for: The operator decrypts the assembled message using the corresponding first key name and first private key in the database, and reassembles the decrypted assembled message to obtain a reorganized message.
[0068] The operator issues a first request, and reorganizes the encrypted format of the called numbers in the status report of whether the first request is successfully issued to obtain an encrypted status report.
[0069] Feed back the encrypted status report to the terminal corresponding to the second user.
[0070] In this embodiment, the privacy communication device based on industrial short messages provided by the present invention further includes a key update module for: Trigger a scheduled task according to the set time and policy, and after the scheduled task is triggered, read the expired key pair from the database through the HTTP gateway.
[0071] Generate a new key pair based on the expired key pair, replace the expired key pair with the new key pair, and store the new key pair in the database at the same time.
[0072] Figure 13 An entity structure diagram of an electronic device is exemplified. The electronic device may be a smart terminal, and its internal structure diagram may be as Figure 13 shown. The electronic device includes a processor, an internal memory, and a network interface connected through a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device 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 electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it realizes a privacy communication method based on industrial short messages. The method includes: Obtain user registration information, and review the user registration information to generate a corresponding public-private key pair through the HTTP gateway after the user registration information is reviewed and passed; Query through the operator according to the key name in the public-private key pair to obtain the public key, and screen out the called numbers of the short messages to be sent; Encrypt the called number with the public key, and encapsulate the encrypted message and send the protocol packet corresponding to the encrypted message to the operator through the short message agent to call the operator to decrypt the protocol packet based on the key name and the private key; Encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
[0073] Those skilled in the art can understand that Figure 13 the structure shown in
[0074] is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the electronic device to which the solution of the present invention is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine some components, or have a different component layout. Obtain the user registration information and review the user registration information to generate corresponding public and private key pairs through the HTTP gateway after the user registration information is reviewed and approved; Query through the operator according to the key name in the public and private key pairs to obtain the public key and filter out the called numbers of the text messages to be sent; Encrypt the called numbers with the public key, encapsulate the encrypted message, and send the protocol packet corresponding to the encrypted message to the operator through the SMS agent to call the operator to decrypt the protocol packet based on the key name and the private key; Encapsulate the decrypted protocol packet to obtain an encapsulated message and send the encapsulated message to the gateway.
[0075] In another aspect, a computer program product or a computer program is provided. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, a privacy communication method based on industry SMS is implemented. The method includes: Obtain the user registration information and review the user registration information to generate corresponding public and private key pairs through the HTTP gateway after the user registration information is reviewed and approved; Query through the operator according to the key name in the public and private key pairs to obtain the public key and filter out the called numbers of the text messages to be sent; Encrypt the called numbers with the public key, encapsulate the encrypted message, and send the protocol packet corresponding to the encrypted message to the operator through the SMS agent to call the operator to decrypt the protocol packet based on the key name and the private key; Encapsulate the decrypted protocol packet to obtain an encapsulated message and send the encapsulated message to the gateway.
[0076] Those of ordinary skill in the art can understand that all or part of the processes of implementing the methods in the above embodiments can be completed by instructing relevant hardware through a computer program. 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 methods. Among them, any reference to the memory, storage, database or other media used in the various embodiments provided by the present invention can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memories can include random access memory (RAM) or external cache memory.
[0077] By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct rambus dynamic RAM (DRDRAM), and rambus dynamic RAM (RDRAM), among others.
[0078] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope described in this specification.
[0079] The above-described embodiments merely represent several implementation manners of the present invention. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of the patent for the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention shall be subject to the appended claims.
Claims
1. A privacy communication method based on industry text messages, characterized in that, The method includes: Obtaining user registration information and auditing the user registration information, so as to generate a corresponding public-private key pair through an HTTP gateway after the user registration information is audited and approved; Querying by an operator according to the key name in the public-private key pair to obtain the public key and screening out the called numbers of the text messages to be sent; Encrypting the called numbers with the public key, encapsulating the encrypted message, and sending the protocol packet corresponding to the encrypted message to the operator through a short message agent, so as to call the operator to decrypt the protocol packet based on the key name and the private key; Encapsulating the decrypted protocol packet to obtain an encapsulated message, and sending the encapsulated message to the gateway.
2. The privacy communication method based on industry text messages according to claim 1, wherein The obtaining user registration information and auditing the user registration information, so as to generate a corresponding public-private key pair through an HTTP gateway after the user registration information is audited and approved, includes: Auditing the user registration information through a management platform, and ending the current registration process when the user registration information is not audited and approved; When the user registration information is audited and approved, generating the public-private key pair in the HTTP gateway, and the public-private key pair has the unique key name; Storing the key name and the public-private key pair in a database, and feeding back the key name to the management platform, so as to send the key name to the user terminal through the management platform.
3. The privacy communication method based on industry text messages according to claim 2, wherein The querying by an operator according to the key name in the public-private key pair to obtain the public key and screening out the called numbers of the text messages to be sent, includes: Logging in to the management platform provided by the operator, querying and obtaining the public key in the management platform based on the key name, and the public key is the key used for encrypting the communication process; Selecting a set of called numbers of the text messages to be sent, encrypting the set of called numbers with the public key, and adding the sending identifier of the operator at the same time.
4. The privacy communication method based on industry text messages according to claim 3, characterized in that, The encrypting the called numbers with the public key, encapsulating the encrypted message, and sending the protocol packet corresponding to the encrypted message to the operator through a short message agent, so as to call the operator to decrypt the protocol packet based on the key name and the private key, includes: Encapsulating the encrypted called numbers and a preset message body to obtain the protocol packet, and forwarding the protocol packet to the operator through a short message agent; The operator queries the corresponding private key in the database using the key name, so as to decrypt the encrypted message in the protocol packet using the key name and the private key to obtain the decrypted message for sending to the gateway.
5. The privacy communication method based on industry text messages according to claim 4, wherein The method further includes: Obtaining the first key name corresponding to the first user's registration information after being audited and approved, and querying the corresponding first public key in the management platform through the first key name; Encrypting the set of called numbers corresponding to the first user's registration information with the first public key, and sending the encrypted set of called numbers to the terminal corresponding to the second user; The terminal corresponding to the second user assembles the encrypted called number set to obtain an assembled message body, and sends the assembled message body to the operator through the HTTP gateway to invoke the operator to send text messages.
6. The privacy communication method based on industry text messages according to claim 5, wherein After the terminal corresponding to the second user assembles the encrypted called number set to obtain an assembled message body, and sends the assembled message body to the operator through the HTTP gateway to invoke the operator to send text messages, it includes: The operator decrypts the assembled message using the corresponding first key name and first private key in the database to reassemble the decrypted assembled message to obtain a reorganized message; The operator issues a first request and reorganizes the encrypted format of the called number in the status report of whether the first request is successfully issued to obtain an encrypted status report; The encrypted status report is fed back to the terminal corresponding to the second user.
7. The privacy communication method based on industry text messages according to claim 6, wherein The method further includes: Trigger a timing task according to the set time and policy, and after the timing task is triggered, read the expired key pair from the database through the HTTP gateway; Generate a new key pair based on the expired key pair, replace the expired key pair with the new key pair, and store the new key pair in the database at the same time.
8. A privacy communication device based on industry text messages, characterized in that, The device includes: A key pair generation module, configured to obtain user registration information, and review the user registration information, so as to generate a corresponding public and private key pair through the HTTP gateway after the user registration information is reviewed and passed; A number screening module, configured to query through the operator according to the key name in the public and private key pair to obtain a public key, and screen out the called numbers of the text messages to be sent; An encryption and encapsulation module, configured to encrypt the called number with the public key, and encapsulate the encrypted message and send the protocol packet corresponding to the encrypted message to the operator through a text message agent to invoke the operator to decrypt the protocol packet based on the key name and private key; A message sending module, configured to encapsulate the decrypted protocol packet to obtain an encapsulated message, and send the encapsulated message to the gateway.
9. An electronic device, comprising a memory and a processor, the memory storing a computer program, characterized in that When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.
10. A computer storage medium stores a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the method according to any one of claims 1 to 7.