Information encryption transmission method, device, computer equipment and storage medium
By encoding and encrypting the SMS template, generating and verifying the encoding of the SMS content, the problem of information leakage during SMS transmission is solved, the secure transmission and traceability of information is achieved, and the privacy data security of both doctors and patients is ensured.
Patent Information
- Application Number
- CN202410472285.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2044-04-18
AI Technical Summary
During the SMS transmission process, patients' personal information such as name, age, residential address, telephone number, medical history, bank account and other medical data are easily leaked by third-party platforms, which cannot effectively protect the private information of both doctors and patients.
The first code is generated by encoding the SMS template, and the encryption rule is obtained by querying the code book based on the code to encrypt the information content, and the second SMS is generated and sent; the receiving end decrypts it according to the decryption rule and compares the code to confirm the integrity of the information.
It realizes the security protection of patient information during SMS transmission, can timely trace the source of information leakage, ensure the security and integrity of information transmission, and prevent information counterfeiting and illegal theft and sale.
Smart Images

Figure CN118447985B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information transmission technology, and in particular to an information encryption transmission method, device, computer equipment and storage medium. Background Art
[0002] With the vigorous development of "Internet + Healthcare", services such as electronic medical records, cloud-based hospitals, and remote medical consultations have become popular. SMS is an indispensable way to deliver messages, but the current SMS transmission process needs to go through multiple suppliers, resulting in unauthorized disclosure by third-party platforms, illegal resale and counterfeiting during the transmission process. This causes the leakage of medical data such as the patient's name, age, residential address, telephone number, medical history, bank account, etc. in the SMS content, making it impossible to effectively protect the patient's personal information. Summary of the Invention
[0003] The embodiments of the present invention provide an information encryption transmission method, apparatus, computer equipment and storage medium to solve the problem of being unable to effectively protect the private information of both doctors and patients.
[0004] A method for encrypting and transmitting information, comprising the following steps performed by a sending end:
[0005] Obtaining a first text message, where the first text message includes a text message template and first information content filled in the text message template;
[0006] Encode the SMS template based on a preset code book to obtain a first code corresponding to the SMS template;
[0007] querying the codebook based on the first code corresponding to the SMS template to obtain the encryption rule corresponding to the SMS template, encrypting the first information content using the encryption rule, and obtaining the second information content corresponding to the SMS template;
[0008] Based on the first code corresponding to the SMS template and the second information content, a second SMS is determined, and the second SMS is sent to a receiving end.
[0009] Preferably, the preset code book encodes the SMS template to obtain the first code corresponding to the SMS template, including:
[0010] Performing position identification on the SMS template to obtain the tag content corresponding to the SMS template;
[0011] The marked content corresponding to the SMS template is encoded based on a preset code book to obtain a first code corresponding to the SMS template.
[0012] Preferably, encoding the markup content corresponding to the SMS template based on a preset code book to obtain the first code corresponding to the SMS template includes:
[0013] If the attribute corresponding to the content unit is a replaceable attribute, determining the content code corresponding to the content unit based on a preset code book;
[0014] Based on the content codes corresponding to at least two of the content units, a first code corresponding to the SMS template is obtained.
[0015] Preferably, querying the codebook based on the first code corresponding to the SMS template, obtaining the encryption rule corresponding to the SMS template, encrypting the first information content using the encryption rule, and obtaining the second information content corresponding to the SMS template includes:
[0016] Based on the first code corresponding to the SMS template, query the code book to obtain the encryption rule corresponding to the SMS template;
[0017] The first information content is encrypted based on the encryption rule corresponding to the SMS template to obtain the second information content corresponding to the SMS template.
[0018] Preferably, the encrypting the first information content based on the encryption rule corresponding to the SMS template to obtain the second information content corresponding to the SMS template includes:
[0019] If the marking content is a marking symbol, replace the marking symbol with Chinese and English to obtain the second information content corresponding to the marking symbol;
[0020] If the marked content is a marked subscription term, performing synonymous but different order replacement on the marked subscription term to obtain the second information content corresponding to the marked subscription term;
[0021] If the marked content is a marked synonym, the marked synonym is replaced with a simplified Chinese character to obtain a second information content corresponding to the marked synonym;
[0022] If the marked content is a marked phrase, the marked phrase is replaced with or without spaces to obtain the second information content corresponding to the marked phrase.
[0023] A method for encrypting and transmitting information, comprising the following steps performed by a receiving end:
[0024] receiving a second text message, the second text message including a text message template and a first code and second information content corresponding to the text message template;
[0025] Based on the first code corresponding to the SMS template, a pre-set code book is searched to obtain a decryption rule corresponding to the SMS template;
[0026] Decrypting the second information content corresponding to the SMS template using the decryption rule to obtain the third information content after decryption of the SMS template;
[0027] Encoding the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template;
[0028] The first code and the second code are compared. If the comparison results are consistent, the received third SMS is determined based on the third information content after decryption of the SMS template and the second code.
[0029] An information encryption transmission device, comprising:
[0030] A first SMS acquisition module, configured to acquire a first SMS message, wherein the first SMS message includes an SMS template and first information content filled in the SMS template;
[0031] A first code acquisition module, configured to encode the SMS template based on a preset code book to obtain a first code corresponding to the SMS template;
[0032] a second information content acquisition module, configured to query the code book based on the first code corresponding to the SMS template, obtain the encryption rule corresponding to the SMS template, encrypt the first information content using the encryption rule, and obtain the second information content corresponding to the SMS template;
[0033] The second SMS acquisition module is used to determine a second SMS based on the first code corresponding to the SMS template and the second information content, and send the second SMS to a receiving end.
[0034] An information encryption transmission device, comprising:
[0035] A second SMS receiving module, configured to receive a second SMS message, wherein the second SMS message includes an SMS template and a first code and second information content corresponding to the SMS template;
[0036] A decryption rule acquisition module, configured to query a pre-set code book based on the first code corresponding to the SMS template to obtain a decryption rule corresponding to the SMS template;
[0037] A third information content acquisition module is configured to decrypt the second information content corresponding to the SMS template using the decryption rule to obtain the third information content after decryption of the SMS template;
[0038] A second code acquisition module is used to encode the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template;
[0039] The third SMS acquisition module is configured to compare the first code with the second code, and if the comparison results are consistent, determine the received third SMS based on the third information content decrypted from the SMS template and the second code.
[0040] A computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any one of the above-mentioned information encryption transmission methods when executing the computer program.
[0041] A computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements any of the above-mentioned information encryption transmission methods.
[0042] The above-mentioned information encryption transmission method, apparatus, computer device, and storage medium encode a text message template using a codebook to form a first code, encrypt the first message content according to encryption rules, and form a second message content containing the encrypted content. The second text message is then sent to a receiving end. The receiving end receives the second text message from the sending end, decrypts the second text message using the codebook's decryption rules to form a third message content, encodes the text message template containing the third message content to form a second code, and compares the first and second codes. If the two codes match, the third text message is determined to be the text message received by the receiving end. Encoding the text message template using binary code not only facilitates the transmission of large amounts of information, but also allows the sending and receiving ends to determine whether information has been leaked by comparing the codes. Furthermore, if a leak of the encrypted content is discovered, the source of the leak can be traced back to the third party information carried in the code. This, under the general trend of "Internet + Healthcare," truly ensures the security of medical data, enables information security detection, prevents information counterfeiting, and investigates illegal theft and sale, effectively ensures the privacy of both doctors and patients, improves information content security management, and enhances the personal protection system. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments of the present invention. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0044] Figure 1This is a schematic diagram of an application environment of the information encryption transmission method according to an embodiment of the present invention;
[0045] Figure 2 is a flow chart of an information encryption transmission method according to an embodiment of the present invention;
[0046] Figure 3 is another flow chart of the information encryption transmission method according to one embodiment of the present invention;
[0047] Figure 4 is another flow chart of the information encryption transmission method according to one embodiment of the present invention;
[0048] Figure 5 is another flow chart of the information encryption transmission method according to one embodiment of the present invention;
[0049] Figure 6 is another flow chart of the information encryption transmission method according to one embodiment of the present invention;
[0050] Figure 7 is another flow chart of the information encryption transmission method according to one embodiment of the present invention;
[0051] Figure 8 is a schematic diagram of an information encryption transmission device according to an embodiment of the present invention;
[0052] Figure 9 is another schematic diagram of an information encryption transmission device according to an embodiment of the present invention;
[0053] Figure 10 FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.
[0055] The information encryption transmission method provided by the embodiment of the present invention can be applied as follows: Figure 1In the information encryption transmission system shown, the information encryption transmission system includes a server, a sending end and a receiving end connected to the server. The sending end and the receiving end perform encrypted communication through the network to effectively protect the patient's personal information from being leaked. Among them, the sending end and the client are both clients (user ends), which refer to programs corresponding to the server that provide local services to customers. The client can be installed on, but not limited to, various personal computers, laptops, smartphones, tablets, and portable wearable devices. The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0056] In one embodiment, if Figure 2 As shown, a method for encrypting and transmitting information is provided, which is applied in Figure 1 The sending end in the example is used to illustrate the process, which includes the following steps:
[0057] S201: Obtain a first text message, where the first text message includes a text message template and first information content filled in the text message template;
[0058] S202: Encode the SMS template based on a preset code book to obtain a first code corresponding to the SMS template;
[0059] S203: Querying the codebook based on the first code corresponding to the SMS template, obtaining the encryption rule corresponding to the SMS template, encrypting the first message content using the encryption rule, and obtaining the second message content corresponding to the SMS template;
[0060] S204: Determine a second SMS message based on the first code and the second information content corresponding to the SMS template, and send the second SMS message to the receiving end.
[0061] The first message refers to an unprocessed message. The first message content refers to an unprocessed message content, which is the content of the first message excluding the message template.
[0062] As an example, in step S201, the sending end obtains a first SMS message, wherein the first SMS message includes an SMS message template and first information content in the SMS message template. Both the SMS message template and the first information content are unprocessed initial content. By obtaining the first SMS message, the sending end facilitates subsequent encryption operations on the first SMS message, thereby achieving the purpose of SMS encryption.
[0063] The first code refers to the binary code generated by the first encoding.
[0064] As an example, in step S202, the sending end obtains a pre-set codebook. Specifically, the pre-set codebook can be obtained by accessing a system database. The codebook contains the binary code corresponding to the SMS template. The SMS template is encoded using the codebook, thereby obtaining the corresponding first code for the SMS template. Encoding the SMS template is performed to more accurately perform encryption operations. Binary encoding can accommodate orders of magnitude of information content. Binary encoding facilitates verification of encrypted content and prevents the possibility of encrypted content being leaked and untraceable.
[0065] The encryption rule refers to the rule that needs to be executed when encrypting the SMS template. The second information content refers to the encrypted information content.
[0066] As an example, in step S203, the sending end queries the codebook based on the first code corresponding to the SMS template, thereby obtaining the encryption rule corresponding to the first code of the SMS template. The sending end encrypts the first information content in the SMS template according to the encryption rule to obtain the encrypted second information content, which is then filled into the SMS template. The sending end obtains the encryption rule by querying the codebook, and encrypts the first information content according to the encryption rule, thereby improving the security of the encrypted content.
[0067] The second short message refers to a short message obtained by encrypting the first short message.
[0068] As an example, in step S204, the sending end encrypts the first information content using the encryption rules corresponding to the SMS template. After obtaining the encrypted second information content, the second SMS can be determined based on the first code and the second information content corresponding to the SMS template. In this example, the SMS template can be replaced with the first code corresponding to the SMS template, and the first information content can be replaced with the second information content to obtain the second SMS, that is, the second SMS includes the first code of the SMS template and the encrypted second information content. After the sending end determines the second SMS, it sends it to the receiving end. By sending the first code and the second information content, the sending end can enhance the security of SMS privacy data. At the same time, when tracing back, the first code and the second information content can be compared with the code and content received by the receiving end. If the code is found to have changed, the leaking party can be tracked in time based on the third party corresponding to the different codes.
[0069] In this embodiment, a first text message including a text message template and first information content filled in the text message template is obtained; the text message template is encoded using a pre-set password book to obtain the corresponding first code; the password book is then queried based on the first code to obtain the encryption rule corresponding to the text message template, and the first information content is then encrypted according to the encryption rule to obtain the second information content; based on the first code and the second information content corresponding to the text message template, the second text message is determined and sent to the receiving end. By encoding the text message template, information security detection is implemented, information counterfeiting is prevented, and illegal theft and sale are investigated, effectively ensuring the privacy security of both doctors and patients. At the same time, based on the binary code and the encrypted second information content, leakage links can be tracked in a timely manner, protecting information during transmission and improving information content security management.
[0070] In one embodiment, if Figure 3 As shown, step S202, encoding the SMS template based on a preset code book to obtain a first code corresponding to the SMS template, includes:
[0071] S301: Identify the location of the SMS template and obtain the tag content corresponding to the SMS template;
[0072] S302: Encode the markup content corresponding to the SMS template based on a preset code book to obtain a first code corresponding to the SMS template.
[0073] The marked content refers to the text message content that needs to be marked.
[0074] As an example, in step S301, the sending end identifies the location of the SMS template, then determines the content corresponding to each identified location based on the identified location in the SMS template, and tags the determined content, thereby obtaining the tagged content corresponding to the SMS template. In this example, tagging the content corresponding to the location in the SMS template helps accurately locate the content to be encrypted, ensuring the accuracy of the encrypted content.
[0075] As an example, in step S302, the sending end encodes the marked content in the SMS template according to a pre-set codebook to obtain a first code corresponding to the SMS template. Specifically, the sending end encodes the marked content corresponding to a specific position in the SMS template using binary encoding rules to determine the first code corresponding to the SMS template. By encoding the marked content, the sending end facilitates information security detection and prevents information forgery and prohibition.
[0076] In one embodiment, the location of the SMS template is identified to obtain the tag content corresponding to the SMS template; the tag content corresponding to the SMS template is then encoded based on a pre-set password to obtain a first code corresponding to the SMS template. After the location of the SMS template is identified and the tag content is obtained, binary encoding is performed based on the password to implement information security detection, prevent information counterfeiting, and investigate illegal theft and sale, effectively ensuring the privacy security of both doctors and patients, and also facilitating accurate subsequent information tracing.
[0077] Furthermore, the location of the SMS template is identified based on the pre-set code book, and the tag content corresponding to the SMS template is obtained, including:
[0078] Performing word segmentation processing on the SMS template to determine at least two content units corresponding to the SMS template and attributes corresponding to each content unit;
[0079] If the attribute corresponding to the content unit is a replaceable attribute, a mark is made at the position corresponding to the content unit to obtain the marked content corresponding to the SMS template.
[0080] The content unit is a unit formed by a single content, specifically including a single character unit or a single Chinese character unit. The attribute corresponding to the content unit is an attribute used to evaluate whether it can be replaced. As an example, the attribute corresponding to the content unit can be either a replaceable attribute or a non-replaceable attribute.
[0081] As an example, the sending end performs word segmentation processing on the SMS template. The word segmentation processing can distinguish the symbols and text content in the SMS template, and the sending end determines each content unit from the symbols and text content after the SMS template word segmentation processing. Specifically, the SMS template has at least two content units. At the same time, the sending end judges the attributes of each content unit. Specifically, the attribute of the content unit is either a replaceable attribute or a non-replaceable attribute. The attribute of the content unit is determined, and different encryption operations can be performed on different content units based on different attributes, thereby reducing unnecessary waste of resources and alleviating the workload when performing encoding comparison.
[0082] For example, if the sender determines that a content unit has a replaceable attribute, it marks the location of the replaceable content unit and also marks the content unit at that location, allowing the sender to obtain the corresponding marked content in the SMS template. If the sender determines that the content unit has a non-replaceable attribute, it does not need to mark the content unit, thus reducing unnecessary resource waste. By determining the location and content unit to be marked based on the replaceable attribute, the security and accuracy of the SMS message can be guaranteed during transmission.
[0083] In this embodiment, the SMS template is segmented to determine at least two content units corresponding to the SMS template and their corresponding attributes. If the attribute corresponding to the content unit is a replaceable attribute, a mark is placed at the corresponding position of the content unit to obtain the marked content corresponding to the SMS template. Segmenting the SMS template, determining the attributes, and marking the content units corresponding to the replaceable attributes facilitates accurate identification of the encrypted content to be embedded, thereby achieving the purpose of encrypted content transmission.
[0084] In one embodiment, if Figure 4 As shown, step S302, encoding the markup content corresponding to the SMS template based on a preset code book to obtain a first code corresponding to the SMS template, includes:
[0085] S401: If the attribute corresponding to the content unit is a replaceable attribute, the content code corresponding to the content unit is determined based on a pre-set code book;
[0086] S402: Based on the content codes corresponding to at least two content units, obtain a first code corresponding to the SMS template.
[0087] The content encoding refers to the encoding of the content unit.
[0088] As an example, in step S401, when the sending end determines that the attribute corresponding to the content unit is a replaceable attribute, the sending end encodes the content unit with the replaceable attribute based on a pre-set codebook to form a content code. The sending end encodes the content unit with the replaceable attribute because binary code can contain an order of magnitude of content, allowing for the transmission of a large amount of information. This also facilitates subsequent verification of SMS leaks by using the code and the corresponding encrypted content.
[0089] As an example, in step S402, the sending end arranges the content codes of at least two content units in sequence, thereby obtaining a first code corresponding to the SMS template. According to the first code, information security detection, information counterfeiting prevention and prohibition, and illegal theft and sale investigation can be implemented.
[0090] In this embodiment, if the attribute corresponding to a content unit is a replaceable attribute, the content code corresponding to the content unit is determined based on a pre-set codebook. The content codes corresponding to at least two content units are sorted and concatenated to obtain a first code corresponding to the SMS template. The sending end encodes the content units with replaceable attributes and combines the content codes to form the first code. This allows for the transmission of large amounts of content while effectively ensuring the security of private data. Furthermore, by comparing the first code, the sending and receiving ends can trace the attached encrypted content, facilitating the verification of SMS leaks.
[0091] In one embodiment, if Figure 5As shown, step S203, based on the first code corresponding to the SMS template, querying the code book, obtaining the encryption rule corresponding to the SMS template, encrypting the first information content using the encryption rule, and obtaining the second information content corresponding to the SMS template, includes:
[0092] S501: Based on the first code corresponding to the SMS template, query the code book to obtain the encryption rule corresponding to the SMS template;
[0093] S502: Encrypt the first information content based on the encryption rule corresponding to the SMS template to obtain the second information content corresponding to the SMS template.
[0094] As an example, in step S501, the sending end queries the code book according to the first code corresponding to the SMS template, thereby querying the encryption rule corresponding to the first code in the code book, and the queried encryption rule helps to embed the encrypted content.
[0095] As an example, in step S502, the sending end encrypts the first information content in the SMS template according to the corresponding encryption rule obtained from the code book, so that the first information content is encrypted according to the encryption rule to form the second information content corresponding to the SMS template.
[0096] In this embodiment, the sending end queries a codebook based on the first code corresponding to the SMS template to obtain the encryption rule corresponding to the SMS template. Based on the encryption rule, the sending end encrypts the first message content to obtain the second message content corresponding to the SMS template. Encrypting content according to the encryption rule can better ensure the privacy of both the doctor and the patient's data and effectively protect the security of the encrypted content transmission.
[0097] In one embodiment, if Figure 6 As shown, step S502, based on the encryption rule corresponding to the SMS template, encrypts the first information content to obtain the second information content corresponding to the SMS template, including:
[0098] S601: If the marked content is a marking symbol, replace the marking symbol with Chinese and English to obtain the second information content corresponding to the marking symbol;
[0099] S602: If the marked content is a marked subscription term, the marked subscription term is replaced with synonyms in different orders to obtain second information content corresponding to the marked subscription term;
[0100] S603: If the marked content is a marked synonym, replace the marked synonym with the simplified Chinese version to obtain the second information content corresponding to the marked synonym;
[0101] S604: If the marked content is a marked phrase, replace the marked phrase with or without spaces to obtain second information content corresponding to the marked phrase.
[0102] As an example, in step S601, if the marked content is a symbol, the sending end replaces the Chinese and English states of the symbol in the first information content to achieve encryption when encrypting the symbol, that is, the sending end switches the Chinese state or English state of the symbol in the first information content accordingly, thereby obtaining the second information content generated after encrypting the symbol in the first information content.
[0103] As an example, in step S602, if the marked content is a subscription term, the sending end replaces the synonymous but different-ordered subscription terms in the first information content to achieve encryption when encrypting the subscription term. That is, the sending end changes the order of the subscription terms in the first information content, thereby obtaining the second information content generated by encrypting the subscription terms in the first information content.
[0104] As an example, in step S603, if the marked content is a word with similar content, the sending end replaces the traditional and simplified Chinese states of the words that are similar to the content to be encrypted in the first information content when encrypting the words with similar content to achieve encryption. That is, the sending end switches the simplified Chinese state or the traditional Chinese state of the words in the first information content that are similar to the encrypted content, thereby obtaining the second information content generated after encrypting the words with similar content in the first information content.
[0105] As an example, in step S604, if the marked content is a phrase, the sending end replaces the state of whether the phrase in the first information content contains spaces when encrypting the phrase to achieve encryption, that is, the sending end replaces the phrase containing spaces in the first information content with a phrase not containing spaces, and replaces the phrase not containing spaces with a phrase containing spaces, and switches the state of the space package in the first information content to the state of not containing spaces accordingly, thereby obtaining the second information content generated by encrypting the phrases and symbols in the first information content.
[0106] In this embodiment, the sending end performs different encryption processing on the symbols, subscription terms, Chinese characters and phrases similar to the encrypted content in the first information content, so that the sending end obtains the second information content, improves the security of the encrypted content transmission, and helps to quickly find the leaking party when tracing the text message.
[0107] In one embodiment, if Figure 7 As shown, a method for encrypting and transmitting information is provided, which is applied in Figure 1 The receiving end in the example is used to illustrate the process, which includes the following steps:
[0108] S701: Receive a second text message, where the second text message includes a text message template and a first code and second information content corresponding to the text message template;
[0109] S702: Querying a pre-set codebook based on the first code corresponding to the SMS template to obtain a decryption rule corresponding to the SMS template;
[0110] S703: Decrypt the second information content corresponding to the SMS template using a decryption rule to obtain the third information content after decryption of the SMS template;
[0111] S704: Encode the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template;
[0112] S705: Compare the first code and the second code. If the comparison results are consistent, determine the received third SMS based on the third information content after decryption of the SMS template and the second code.
[0113] As an example, in step S701, the receiving end receives the SMS template of the second SMS, as well as the first code and second information content corresponding to the SMS template. The first code is the binary code corresponding to the SMS template, and the second information content is the encrypted information content, which is embedded in the SMS template.
[0114] As an example, in step S702, the receiving end queries a pre-set password book based on the received first code, and then queries the corresponding decryption rule obtained by the first code in the password book. Only by obtaining the decryption rule can the receiving end decrypt the second information content in the second text message, thereby obtaining the encrypted content, and then achieving the purpose of effectively protecting the privacy data of both doctors and patients and preventing the leakage of encrypted content.
[0115] The third information content refers to the decrypted information content, specifically refers to the information content obtained after the receiving end decrypts the second code according to the decryption rule.
[0116] As an example, in step S703, the receiving end decrypts the second information content according to the decryption rules, and can obtain the decrypted third information content. At the same time, because the receiving end decrypts the second information content, it can obtain the decrypted SMS content by querying the password book, which makes it convenient for the receiving end to determine whether the information content has been leaked based on whether the encrypted content corresponding to the code is consistent when tracing the SMS content, thereby realizing the security management of the information content.
[0117] Among them, the second code refers to the binary code generated for the second time, specifically the code generated for the SMS template corresponding to the third information content, which is used to verify whether the SMS content received by the receiving end is consistent with the SMS content sent by the sending end.
[0118] As an example, in step S704, the sending end queries a pre-set code book and encodes the SMS template corresponding to the third information content so that the SMS template corresponding to the third information content obtains the second code. The purpose of encoding the SMS template corresponding to the third information content is to verify whether the SMS content received by the receiving end is consistent with the SMS content sent by the sending end, and the binary code used can accommodate orders of magnitude of information content. By comparing the codes, the problem of encrypted content being leaked and unable to be tracked can be avoided.
[0119] The third short message refers to a short message obtained by decrypting the second short message.
[0120] As an example, in step S705, the receiving end compares the obtained second code with the first code to determine whether the text message received by the receiving end is consistent with the text message sent by the sending end. If the second code of the receiving end is consistent with the first code of the sending end, it is determined that the second text message sent by the sending end has not been leaked. At this time, the receiving end determines the third text message based on the third information content and the second code corresponding to the text message template obtained by decryption, that is, the third text message includes the second code of the text message template and the third information content after decryption, and determines that the text message finally viewed by the receiving end is the third text message.
[0121] As an example, when confirming whether the content of the third text message received by the receiving end is consistent with the second text message sent by the sending end, the receiving end can compare the first code and the second code, and compare the second information content with the third information content, and obtain whether the text message sent by the sending end has been leaked through the comparison result. Since the first code contains third-party information, if the code comparison result and the information content are different, it is determined that the text message has been leaked. At this time, the different parts of the first code and the second code can be used to query which third party has changed the encrypted content, thereby effectively tracing the source of the information leakage.
[0122] In this embodiment, the receiving end receives a second SMS message including an SMS template and a first code and second information content corresponding to the SMS template; then, based on the password book, obtains the decryption rule corresponding to the SMS template; then, based on the decryption rule, decrypts the second information content to obtain the third information content after the SMS template is decrypted; and, based on the password book, encodes the SMS template corresponding to the third information content to obtain the second code; then, the receiving end compares the first code with the second code. If the comparison result is consistent, the third SMS message received is determined based on the third information content and the second code after the SMS template is decrypted. By encoding the SMS message, it is possible to confirm whether the SMS message received by the receiving end is consistent with the SMS message sent by the sending end, and to verify whether the data has been securely transmitted by extracting the encrypted content by querying the codes of both parties. If the encrypted content is found to be leaked, it can also be traced back through the difference in the codes, thereby effectively protecting the personal privacy data security between doctors and patients, improving the information content security management, and achieving the protection of the encrypted content transmission process.
[0123] In one embodiment, an information encryption transmission device is provided, which corresponds one-to-one to the information encryption transmission method in the above embodiment. Figure 8 As shown, the information encryption transmission device includes a first short message acquisition module 801, a first code acquisition module 802, a second information content acquisition module 803 and a second short message acquisition module 804. The functional modules are described in detail as follows:
[0124] A first message acquisition module 801 is configured to acquire a first message, the first message including a message template and first information content filled in the message template;
[0125] A first code acquisition module 802 is configured to encode the SMS template based on a preset code book to obtain a first code corresponding to the SMS template;
[0126] The second information content acquisition module 803 is used to query the code book based on the first code corresponding to the SMS template, obtain the encryption rule corresponding to the SMS template, encrypt the first information content using the encryption rule, and obtain the second information content corresponding to the SMS template;
[0127] The second SMS acquisition module 804 is configured to determine a second SMS based on the first code and the second information content corresponding to the SMS template, and send the second SMS to a receiving end.
[0128] In one embodiment, the first code acquisition module 802 includes:
[0129] The marking content obtaining unit is used to identify the position of the SMS template and obtain the marking content corresponding to the SMS template;
[0130] The first code obtaining unit is configured to perform encoding processing on the markup content corresponding to the SMS template based on a preset code book, and obtain a first code corresponding to the SMS template.
[0131] In one embodiment, the tag content obtaining unit includes:
[0132] The attribute acquisition subunit is used to perform word segmentation processing on the SMS template, determine at least two content units corresponding to the SMS template and the attributes corresponding to each content unit;
[0133] The marking content obtaining subunit is used to mark the corresponding position of the content unit if the attribute corresponding to the content unit is a replaceable attribute, and obtain the marking content corresponding to the SMS template.
[0134] In one embodiment, the first code acquisition unit includes:
[0135] The content coding acquisition subunit is used to determine the content coding corresponding to the content unit based on a preset code book when the attribute corresponding to the content unit is a replaceable attribute;
[0136] The first code obtaining subunit is configured to obtain a first code corresponding to the SMS template based on content codes corresponding to at least two content units.
[0137] In one embodiment, the second information content obtaining module 803 includes:
[0138] an encryption rule obtaining unit, configured to query a code book based on a first code corresponding to the SMS template and obtain an encryption rule corresponding to the SMS template;
[0139] The second information content acquiring unit is configured to encrypt the first information content based on the encryption rule corresponding to the SMS template, and acquire the second information content corresponding to the SMS template.
[0140] In one embodiment, the second information content obtaining unit includes:
[0141] a marking symbol obtaining subunit, configured to replace the marking symbol with Chinese and English if the marking content is a marking symbol, and obtain the second information content corresponding to the marking symbol;
[0142] The marked subscription term acquisition subunit is configured to, if the marked content is the marked subscription term, perform synonymous but different order replacement on the marked subscription term to acquire the second information content corresponding to the marked subscription term;
[0143] a tag synonym acquisition subunit, configured to, if the tag content is a tag synonym, replace the tag synonym with a simplified Chinese character, and acquire the second information content corresponding to the tag synonym;
[0144] The marked phrase acquisition subunit is used to replace the marked phrase with or without spaces if the marked content is a marked phrase, and acquire the second information content corresponding to the marked phrase.
[0145] In one embodiment, an information encryption transmission device is provided, which corresponds one-to-one to the information encryption transmission method in the above embodiment. Figure 9 As shown, the information encryption transmission device includes modules, modules, modules and modules. The detailed description of each functional module is as follows:
[0146] A second SMS receiving module 901 is configured to receive a second SMS message, the second SMS message including an SMS template and a first code and second information content corresponding to the SMS template;
[0147] A decryption rule acquisition module 902 is configured to query a pre-set code book based on a first code corresponding to the SMS template to obtain a decryption rule corresponding to the SMS template;
[0148] The third information content acquisition module 903 is configured to decrypt the second information content corresponding to the SMS template using a decryption rule to obtain the third information content after decryption of the SMS template;
[0149] A second code acquisition module 904 is configured to encode the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template;
[0150] The third SMS acquisition module 905 is configured to compare the first code with the second code, and if the comparison results are consistent, determine the received third SMS based on the third information content after decryption of the SMS template and the second code.
[0151] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the video transmission processing method in the above embodiment is implemented, for example Figure 2 S201-S204 shown, or Figures 3 to 6 Alternatively, when the processor executes the computer program, the functions of each module / unit in the embodiment of the information encryption transmission device are realized, for example Figure 8 The functions of the first SMS acquisition module 801, the first code acquisition module 802, the second information content acquisition module 803 and the second SMS acquisition module 804 shown, or, for example Figure 9 The functions of the second SMS receiving module 901, the decryption rule obtaining module 902, the third information content obtaining module 903, the second code obtaining module 904 and the third SMS obtaining module 905 are not described here in detail to avoid repetition.
[0152] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the information encryption transmission method in the above embodiment is implemented, for example Figure 2 S201-S204 shown, or Figures 3 to 6 Alternatively, when the computer program is executed by the processor, the functions of the modules / units in the embodiment of the above-mentioned information encryption transmission device are realized, for example, Figure 8 The functions of the first SMS acquisition module 801, the first code acquisition module 802, the second information content acquisition module 803 and the second SMS acquisition module 804 shown, or, for example Figure 9 The functions of the second SMS receiving module 901, the decryption rule obtaining module 902, the third information content obtaining module 903, the second code obtaining module 904 and the third SMS obtaining module 905 are not described here in detail to avoid repetition.
[0153] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, which can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. 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 (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0154] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0155] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention, and should all be included in the scope of protection of the present invention.
Claims
1. A method for encrypting and transmitting information, characterized in that: The sending end performs the following steps: Obtaining a first text message, where the first text message includes a text message template and first information content filled in the text message template; Performing position identification on the SMS template to obtain the tag content corresponding to the SMS template; Encode the markup content corresponding to the SMS template based on a preset code book to obtain a first code corresponding to the SMS template; querying the codebook based on the first code corresponding to the SMS template to obtain the encryption rule corresponding to the SMS template, encrypting the first information content using the encryption rule, and obtaining the second information content corresponding to the SMS template; Determining a second SMS message based on the first code corresponding to the SMS template and the second information content, and sending the second SMS message to a receiving end; The information encryption transmission method further includes the following steps performed by the receiving end: receiving a second text message, the second text message including a text message template and a first code and second information content corresponding to the text message template; Based on the first code corresponding to the SMS template, a pre-set code book is searched to obtain a decryption rule corresponding to the SMS template; Decrypting the second information content corresponding to the SMS template using the decryption rule to obtain the third information content after decryption of the SMS template; Encoding the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template; The first code and the second code are compared. If the comparison results are consistent, the received third SMS is determined based on the third information content after decryption of the SMS template and the second code.
2. The information encryption transmission method according to claim 1, wherein: The encoding process of the markup content corresponding to the SMS template based on a preset code book to obtain the first code corresponding to the SMS template includes: When the attribute corresponding to the content unit is a replaceable attribute, the content code corresponding to the content unit is determined based on a preset code book; Based on the content codes corresponding to at least two of the content units, a first code corresponding to the SMS template is obtained.
3. The information encryption transmission method according to claim 1, wherein: The querying the code book based on the first code corresponding to the SMS template, obtaining the encryption rule corresponding to the SMS template, encrypting the first information content using the encryption rule, and obtaining the second information content corresponding to the SMS template includes: Based on the first code corresponding to the SMS template, query the code book to obtain the encryption rule corresponding to the SMS template; The first information content is encrypted based on the encryption rule corresponding to the SMS template to obtain the second information content corresponding to the SMS template.
4. The information encryption transmission method according to claim 3, wherein: The encrypting the first information content based on the encryption rule corresponding to the SMS template to obtain the second information content corresponding to the SMS template includes: If the marking content is a marking symbol, replace the marking symbol with Chinese and English to obtain the second information content corresponding to the marking symbol; If the marked content is a marked subscription term, performing synonymous but different order replacement on the marked subscription term to obtain the second information content corresponding to the marked subscription term; If the marked content is a marked synonym, the marked synonym is replaced with a simplified Chinese character to obtain a second information content corresponding to the marked synonym; If the marked content is a marked phrase, the marked phrase is replaced with or without spaces to obtain the second information content corresponding to the marked phrase.
5. An information encryption transmission device, characterized in that: include: A first SMS acquisition module, configured to acquire a first SMS message, wherein the first SMS message includes an SMS template and first information content filled in the SMS template; A first code acquisition module is used to identify the position of the SMS template and obtain the tag content corresponding to the SMS template; encode the tag content corresponding to the SMS template based on a preset code book to obtain the first code corresponding to the SMS template; a second information content acquisition module, configured to query the code book based on the first code corresponding to the SMS template, obtain the encryption rule corresponding to the SMS template, encrypt the first information content using the encryption rule, and obtain the second information content corresponding to the SMS template; A second SMS acquisition module is configured to determine a second SMS based on the first code corresponding to the SMS template and the second information content, and send the second SMS to a receiving end; The information encryption transmission device further includes: A second SMS receiving module, configured to receive a second SMS message, wherein the second SMS message includes an SMS template and a first code and second information content corresponding to the SMS template; A decryption rule acquisition module, configured to query a pre-set code book based on the first code corresponding to the SMS template to obtain a decryption rule corresponding to the SMS template; A third information content acquisition module is configured to decrypt the second information content corresponding to the SMS template using the decryption rule to obtain the third information content after decryption of the SMS template; A second code acquisition module is used to encode the SMS template corresponding to the third information content based on a preset code book to obtain a second code of the SMS template; The third SMS acquisition module is configured to compare the first code with the second code, and if the comparison results are consistent, determine the received third SMS based on the third information content decrypted from the SMS template and the second code.
6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the information encryption transmission method according to any one of claims 1 to 4 is implemented.
7. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the information encryption transmission method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
A SMS encryption transport method
CN101188496A
Data transmission method and device, computer equipment and storage medium
CN111431716A