Short message data encryption and privacy protection method and system and computer equipment

By generating encryption passwords and decryption passwords based on sensitivity levels and identifications, the SMS data is encrypted and decrypted, which solves the problem of low encryption efficiency in the existing technology and achieves a balance between security and efficiency.

CN119364349AInactive Publication Date: 2025-01-24SHENZHEN GAUSS COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411569494.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-05
Publication Date
2025-01-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing SMS encryption technology is difficult to improve the efficiency of encryption and decryption when ensuring security, especially in the process of key distribution and management.

Method used

By obtaining the sensitivity level of the encrypted SMS data, and based on the identification of this level, the sender and the receiver, the encryption password and decryption password are used to encrypt and decrypt the SMS data. Methods Send encrypted data and setting passwords.

Benefits of technology

The sensitivity of the SMS data is realized to adjust the encryption intensity, balances the security and efficiency of encryption, avoids the risk of key distribution, and improves the efficiency of encryption and decryption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119364349A_ABST
    Figure CN119364349A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data encryption, and provides a short message data encryption and privacy protection method and system and computer equipment. The method comprises the steps of obtaining to-be-encrypted short message data, and analyzing the to-be-encrypted short message data based on a preset sensitivity level evaluation rule to obtain a sensitivity level of the to-be-encrypted short message data; obtaining a sender identifier of a sender and a receiver identifier of a receiver of the to-be-encrypted short message data; generating an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; performing encryption processing on the to-be-encrypted short message data by using the encryption password to obtain encrypted short message data; and sending the encrypted short message data and the decryption password to the receiver based on a preset transmission mode. According to the method, asymmetric encryption is realized, and the encryption and decryption efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data encryption technology, and in particular to a method, system and computer device for encrypting and protecting the privacy of short message data. Background Art

[0002] With the rapid development of mobile communication technology, SMS has become an indispensable means of communication in people's daily life and business activities. However, there are great security risks in the transmission process of SMS. Traditional SMS content is mostly sent in plain text, which is very easy to be intercepted, tampered or stolen by criminals, resulting in the leakage of sensitive information and the loss of privacy or property.

[0003] Existing SMS encryption technologies are mainly divided into two categories: symmetric encryption and asymmetric encryption. Symmetric encryption technology has high encryption efficiency and is suitable for large-scale data encryption transmission. However, since the sender and the receiver need to share the same key, the distribution and management of the key is difficult and prone to the risk of key leakage. Asymmetric encryption technology uses a public key and a private key pair. The sender uses the public key to encrypt the data and the receiver uses the private key to decrypt it. This solves the problem of key distribution and enhances security. However, the computational complexity of the encryption and decryption process is high, which can easily affect the efficiency of data transmission. Therefore, in the field of data encryption and privacy protection, how to improve the encryption and decryption efficiency while ensuring the security of SMS content has become an urgent problem to be solved. Summary of the invention

[0004] The present application provides a method, system and computer device for encrypting and protecting the privacy of SMS data to solve the problems raised by the above-mentioned background technology.

[0005] In a first aspect, the present application provides a method for encrypting and protecting the privacy of SMS data, comprising: Acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; Obtaining a sender ID of a sender and a receiver ID of a receiver of the SMS data to be encrypted; Generate an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; Encrypting the to-be-encrypted SMS data using the encryption password to obtain encrypted SMS data; The encrypted SMS data and the decryption password are sent to the recipient based on a preset transmission method.

[0006] In a possible implementation, the analyzing the to-be-encrypted SMS data based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the to-be-encrypted SMS data includes: Determine whether there are sensitive words in the SMS data to be encrypted; If not, determining that the sensitivity level of the to-be-encrypted SMS data is primary; If yes, count the number of the sensitive words, determine the information attributes of each of the sensitive words respectively, and obtain the sensitivity value of each of the sensitive words in the database based on the information attributes of each of the sensitive words; wherein the database is provided with a corresponding relationship between the information attributes and the sensitivity values; Adding the sensitivity values ​​of the sensitive words to obtain the sum of the sensitivity values, and multiplying the sum of the sensitivity values ​​by a number corresponding to the quantity to obtain the sensitivity factor of the SMS data to be encrypted; Determining whether the sensitivity factor is greater than a preset sensitivity factor; If not, determining that the sensitivity level of the SMS data to be encrypted is medium; If so, determine that the sensitivity level of the SMS data to be encrypted is high.

[0007] In a possible implementation, the generating the encryption password and the decryption password based on the sensitivity level, the sender identifier, and the receiver identifier includes: If the sensitivity level is primary, the sender identifier and the receiver identifier are processed based on a preset primary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is medium, the sender identifier and the receiver identifier are processed based on a preset secondary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is high, the sender identifier and the receiver identifier are processed based on a preset three-level key generation rule to obtain an encryption password and a decryption password; the complexity of the first-level key generation rule, the second-level key generation rule, and the third-level key generation rule increases in sequence.

[0008] In a possible implementation, the processing of the sender identifier and the receiver identifier based on a preset primary key generation rule to obtain an encryption password and a decryption password includes: Performing a hash operation on the sender identifier based on a preset hash algorithm to obtain a first hash value, and performing a hash operation on the receiver identifier based on the hash algorithm to obtain a second hash value; Arrange the characters of the first hash value in sequence in a preset row vector bracket to obtain a first row vector, and arrange the characters of the second hash value in sequence in a preset row vector bracket to obtain a second row vector; The first row vector and the second row vector are added to obtain the decryption password, and the second row vector is determined to be the encryption password.

[0009] In a possible implementation, the processing of the sender identifier and the receiver identifier based on a preset secondary key generation rule to obtain an encryption password and a decryption password includes: Arrange the letters of the sender identification in sequence to obtain a first letter sequence, and arrange the numbers of the sender identification in sequence to obtain a first number sequence; Arrange the letters of the recipient identification in sequence to obtain a second letter sequence, and arrange the numbers of the recipient identification in sequence to obtain a second number sequence; Based on the hash algorithm, hash operations are performed on the first letter sequence, the first digital sequence, the second letter sequence, and the second digital sequence respectively to obtain a third hash value, a fourth hash value, a fifth hash value, and a sixth hash value; wherein the third hash value is a hash value corresponding to the first letter sequence, the fourth hash value is a hash value corresponding to the first digital sequence, the fifth hash value is a hash value corresponding to the second letter sequence, and the sixth hash value is a hash value corresponding to the second digital sequence; Arrange the characters of the third hash value in sequence in a preset row vector bracket to obtain a third row vector, arrange the characters of the fourth hash value in sequence in a preset row vector bracket to obtain a fourth row vector, and add the third row vector to the fourth row vector to obtain a first sum vector; Arrange the characters of the fifth hash value in sequence in a preset row vector bracket to obtain a fifth row vector, arrange the characters of the sixth hash value in sequence in a preset row vector bracket to obtain a sixth row vector, and add the fifth row vector and the sixth row vector to obtain a second sum vector; The first sum vector is added to the second sum vector to obtain the decryption password, and the second sum vector is determined to be the encryption password.

[0010] In a possible implementation, the processing of the sender identifier and the receiver identifier based on a preset three-level key generation rule to obtain an encryption password and a decryption password includes: Performing hash operations on each character in the sender identifier based on the hash algorithm to obtain a plurality of seventh hash values, and performing hash operations on each character in the receiver identifier based on the hash algorithm to obtain a plurality of eighth hash values; For each of the seventh hash values, arrange the numbers in the seventh hash value in order to obtain a first target number corresponding to the seventh hash value; Determine a target seventh hash value among the seventh hash values ​​based on the first target numbers corresponding to the seventh hash values; wherein the first target number corresponding to the target seventh hash value is a composite number; For each of the target seventh hash values, arrange the characters of the target seventh hash value in sequence in a preset row vector bracket to obtain a seventh row vector corresponding to the target seventh hash value; Adding each of the seventh row vectors to obtain a third sum vector; For each of the eighth hash values, arrange the numbers in the eighth hash value in order to obtain a second target number corresponding to each of the eighth hash values; Determine a target eighth Hash value among the eighth Hash values ​​based on the second target numbers corresponding to the eighth Hash values; wherein the second target numbers corresponding to the target eighth Hash values ​​are composite numbers; For each of the target eighth hash values, arrange the characters of the target eighth hash value in sequence in a preset row vector bracket to obtain an eighth row vector corresponding to the target eighth hash value; Adding each of the eighth row vectors to obtain a fourth sum vector; The third sum vector and the fourth sum vector are cross-multiplied to obtain the decryption password, and the fourth sum vector is determined to be the encryption password.

[0011] In a possible implementation, the sending the encrypted SMS data and the decryption password to the recipient based on a preset transmission method includes: Randomly generate a plurality of beacon frames arranged in sequence based on the communication mode between the sender and the receiver, randomly select a beacon frame as a first target beacon frame, and randomly select a beacon frame as a second target beacon frame; wherein the first target beacon frame is not adjacent to the second target beacon frame; Adding the encrypted SMS data to the first target beacon frame, and recording the first sequence number corresponding to the first target beacon frame; Adding the decryption password to the second target beacon frame, and recording a second sequence number corresponding to the second target beacon frame; Calculate the difference between the number corresponding to the second serial number and the number corresponding to the first serial number; adding garbled information to the remaining beacon frames except the first target beacon frame and the second target beacon frame respectively; Generate a plurality of first data packets and a plurality of second data packets; wherein the number of the first data packets is consistent with the number corresponding to the first sequence number, and the number of the second data packets is consistent with the difference; Each beacon frame with added information is sent to the receiver in sequence, and after the beacon frame is sent, all the first data packets are sent to the receiver, and after all the first data packets are sent, all the second data packets are sent to the receiver.

[0012] In a second aspect, the present application provides a SMS data encryption and privacy protection system, including: A first acquisition module is used to acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; A second acquisition module is used to obtain a sender identifier of a sender and a receiver identifier of a receiver of the SMS data to be encrypted; A generating module, used for generating an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; An encryption processing module, used to encrypt the to-be-encrypted SMS data using the encryption password to obtain encrypted SMS data; The transmission module is used to send the encrypted SMS data and the decryption password to the recipient based on a preset transmission method.

[0013] In a third aspect, the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the SMS data encryption and privacy protection method as described in any one of the above items is implemented.

[0014] The present application provides a method, system and computer device for encrypting and protecting the privacy of SMS data. The method includes: obtaining SMS data to be encrypted, and analyzing the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; obtaining the sender identifier of the sender of the SMS data to be encrypted and the receiver identifier of the receiver; generating an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; encrypting the SMS data to be encrypted using the encryption password to obtain encrypted SMS data; and sending the encrypted SMS data and the decryption password to the receiver based on a preset transmission method. The method, on the one hand, generates an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier, thereby adjusting the encryption strength according to the sensitivity of the SMS data to be encrypted, and achieving a balance between the security and efficiency of data encryption. On the other hand, the method encrypts the SMS data to be encrypted using the encryption password to obtain encrypted SMS data, and sends the encrypted SMS data and the decryption password to the receiver based on a preset transmission method, so that the receiver can perform asymmetric encryption on the encrypted SMS data based on the decryption password, thereby improving the efficiency of encryption and decryption. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0016] Figure 1 A flowchart of a method for encrypting and protecting the privacy of SMS data provided by an embodiment of the present application; Figure 2 A schematic block diagram of the structure of the SMS data encryption and privacy protection system provided in the embodiment of the present application; Figure 3 A schematic block diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0017] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0018] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.

[0019] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0020] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0021] With the rapid development of mobile communication technology, SMS has become an indispensable means of communication in people's daily life and business activities. However, there are great security risks in the transmission process of SMS. Traditional SMS content is mostly sent in plain text, which is very easy to be intercepted, tampered or stolen by criminals, resulting in the leakage of sensitive information and the loss of privacy or property.

[0022] Existing SMS encryption technologies are mainly divided into two categories: symmetric encryption and asymmetric encryption. Symmetric encryption technology has high encryption efficiency and is suitable for large-scale data encryption transmission. However, since the sender and the receiver need to share the same key, the distribution and management of the key are difficult and prone to the risk of key leakage. Asymmetric encryption technology uses a public key and a private key pair. The sender uses the public key to encrypt the data and the receiver uses the private key to decrypt it. This solves the problem of key distribution and enhances security. However, the computational complexity of the encryption and decryption process is high, which easily affects the efficiency of data transmission. Therefore, in the field of data encryption and privacy protection, how to improve the encryption and decryption efficiency while ensuring the security of SMS content has become an urgent problem to be solved. To this end, the present application provides a method, system and computer device for SMS data encryption and privacy protection to solve the above problems.

[0023] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0024] See also Figure 1 , Figure 1 A flowchart of the SMS data encryption and privacy protection method provided in the embodiment of the present application is shown in FIG. Figure 1As shown, the SMS data encryption and privacy protection method provided in the embodiment of the present application includes steps S1 to S5.

[0025] Step S1: Obtain the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted.

[0026] Step S2: Obtain a sender ID of the sender of the SMS data to be encrypted and a receiver ID of the receiver.

[0027] Step S3: Generate an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier.

[0028] Step S4: encrypt the SMS data to be encrypted using the encryption password to obtain encrypted SMS data.

[0029] Step S5: sending the encrypted SMS data and the decryption password to the recipient based on a preset transmission method.

[0030] It should be noted that the executor of the embodiment of the present application is a text message data encryption and privacy protection system provided at the sender.

[0031] As described in the above step S1, the SMS data to be encrypted is obtained, and the SMS data to be encrypted is analyzed based on the preset sensitivity level evaluation rules to obtain the sensitivity level of the SMS data to be encrypted. Specifically, after the sender user completes editing the SMS data to be encrypted, he clicks the send button, and after the SMS data encryption and privacy protection system detects that the user clicks the send button, it obtains the SMS data to be encrypted, and analyzes the SMS data to be encrypted based on the preset sensitivity level evaluation rules to obtain the sensitivity level of the SMS data to be encrypted.

[0032] As described in step S2 above, after obtaining the sensitivity level, the sender identifier of the sender of the SMS data to be encrypted and the receiver identifier of the receiver are obtained. Specifically, after obtaining the sensitivity level, the SMS data encryption and privacy protection system obtains the receiver identifier selected or input by the user of the sender when sending the SMS data to be encrypted, and obtains the sender identifier of the sender.

[0033] As described in the above step S3, after obtaining the sender identifier and the receiver identifier, an encryption password and a decryption password are generated based on the sensitivity level, the sender identifier and the receiver identifier. Specifically, the sensitivity level is any one of primary, intermediate and advanced. After obtaining the sender identifier and the receiver identifier, when the sensitivity level is primary, the SMS data encryption and privacy protection system processes the sender identifier and the receiver identifier based on a preset first-level key generation rule to obtain an encryption password and a decryption password. When the sensitivity level is intermediate, the sender identifier and the receiver identifier are processed based on a preset second-level key generation rule to obtain an encryption password and a decryption password. When the sensitivity level is advanced, the sender identifier and the receiver identifier are processed based on a preset third-level key generation rule to obtain an encryption password and a decryption password. The complexity of the first-level key generation rule, the second-level key generation rule and the third-level key generation rule increases in sequence.

[0034] As described in the above step S4, after obtaining the encryption password and the decryption password, the SMS data to be encrypted is encrypted using the encryption password to obtain encrypted SMS data. Specifically, after obtaining the encryption password and the decryption password, the SMS data encryption and privacy protection system uses the encryption password to encrypt the SMS data to be encrypted to obtain encrypted SMS data.

[0035] As described in the above step S5, after obtaining the encrypted SMS data, the encrypted SMS data and the decryption password are sent to the recipient based on a preset transmission method. Specifically, after obtaining the encrypted SMS data, the SMS data encryption and privacy protection system sends the encrypted SMS data and the decryption password to the recipient based on a preset transmission method. When the recipient receives the encrypted SMS data and the decryption password, the SMS data encryption and privacy protection system of the recipient uses the decryption password to decrypt the encrypted SMS data.

[0036] The method provided in this embodiment, on the one hand, adjusts the encryption strength according to the sensitivity of the SMS data to be encrypted by generating an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier, and can strike a balance between the security and efficiency of data encryption. On the other hand, the SMS data to be encrypted is encryptingly processed by using the encryption password to obtain encrypted SMS data, and the encrypted SMS data and the decryption password are sent to the receiver based on a preset transmission method, so that the receiver can perform asymmetric encryption on the encrypted SMS data based on the decryption password, thereby improving the efficiency of encryption and decryption.

[0037] In some embodiments, the analyzing the to-be-encrypted SMS data based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the to-be-encrypted SMS data includes the following steps: Determine whether there are sensitive words in the SMS data to be encrypted; wherein the sensitive words include name, gender, ID number, mobile phone number, various qualification certificate codes and other information closely related to the person; If not, determining that the sensitivity level of the to-be-encrypted SMS data is primary; If so, count the number of sensitive words, determine the information attributes of each of the sensitive words respectively, and obtain the sensitivity value of each of the sensitive words in the database based on the information attributes of each of the sensitive words; wherein the database is provided with a correspondence between information attributes and sensitive values; the information attributes include name, gender, ID card number, mobile phone number and qualification certificate code, etc., and the sensitive value of each of the information attributes is assigned based on the degree of threat to personal and property safety after the information corresponding to each of the information attributes is stolen. After the information corresponding to the information attribute is stolen, the greater the degree of threat to personal and property safety, the greater the sensitivity value corresponding to the information attribute; Adding the sensitivity values ​​of the sensitive words to obtain the sum of the sensitivity values, and multiplying the sum of the sensitivity values ​​by a number corresponding to the quantity to obtain the sensitivity factor of the SMS data to be encrypted; Determining whether the sensitivity factor is greater than a preset sensitivity factor; If not, determining that the sensitivity level of the SMS data to be encrypted is medium; If so, determine that the sensitivity level of the SMS data to be encrypted is high.

[0038] The method provided in this embodiment helps to achieve an effective balance between the security and efficiency of data encryption by accurately evaluating the sensitivity level of the SMS data to be encrypted.

[0039] In some embodiments, the generating of the encryption password and the decryption password based on the sensitivity level, the sender identifier and the receiver identifier includes: If the sensitivity level is primary, the sender identifier and the receiver identifier are processed based on a preset primary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is medium, the sender identifier and the receiver identifier are processed based on a preset secondary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is high, the sender identifier and the receiver identifier are processed based on a preset three-level key generation rule to obtain an encryption password and a decryption password; the complexity of the first-level key generation rule, the second-level key generation rule, and the third-level key generation rule increases in sequence.

[0040] In this embodiment, the sender identifier and the receiver identifier are processed based on a preset primary key generation rule to obtain an encryption password and a decryption password, including: Performing a hash operation on the sender identifier based on a preset hash algorithm to obtain a first hash value, and performing a hash operation on the receiver identifier based on the hash algorithm to obtain a second hash value; Arrange the characters of the first hash value in sequence in a preset row vector bracket to obtain a first row vector, and arrange the characters of the second hash value in sequence in a preset row vector bracket to obtain a second row vector; The first row vector and the second row vector are added to obtain the decryption password, and the second row vector is determined to be the encryption password.

[0041] Exemplarily, the first hash value is W34T6, and the second hash value is T6H9N, then the first row vector is (W, 3, 4, T, 6), the second row vector is (T, 6, H, 9, N), the decryption password is (W+T, 9, 4+H, T+9, 6+N), and the encryption password is (T, 6, H, 9, N).

[0042] In this embodiment, the sender identifier and the receiver identifier are processed based on a preset secondary key generation rule to obtain an encryption password and a decryption password, including: Arrange the letters of the sender identification in sequence to obtain a first letter sequence, and arrange the numbers of the sender identification in sequence to obtain a first number sequence; Arrange the letters of the recipient identification in sequence to obtain a second letter sequence, and arrange the numbers of the recipient identification in sequence to obtain a second number sequence; Based on the hash algorithm, hash operations are performed on the first letter sequence, the first digital sequence, the second letter sequence, and the second digital sequence respectively to obtain a third hash value, a fourth hash value, a fifth hash value, and a sixth hash value; wherein the third hash value is a hash value corresponding to the first letter sequence, the fourth hash value is a hash value corresponding to the first digital sequence, the fifth hash value is a hash value corresponding to the second letter sequence, and the sixth hash value is a hash value corresponding to the second digital sequence; Arrange the characters of the third hash value in sequence in a preset row vector bracket to obtain a third row vector, arrange the characters of the fourth hash value in sequence in a preset row vector bracket to obtain a fourth row vector, and add the third row vector to the fourth row vector to obtain a first sum vector; Arrange the characters of the fifth hash value in sequence in a preset row vector bracket to obtain a fifth row vector, arrange the characters of the sixth hash value in sequence in a preset row vector bracket to obtain a sixth row vector, and add the fifth row vector and the sixth row vector to obtain a second sum vector; The first sum vector is added to the second sum vector to obtain the decryption password, and the second sum vector is determined to be the encryption password.

[0043] Exemplarily, the third hash value is S8Y9Q, the fourth hash value is G16Y0, the fifth hash value is 78YU3, and the sixth hash value is 5RFU4. Then the third row vector is (S, 8, Y, 9, Q), the fourth row vector is (G, 1, 6, Y, 0), the first sum vector is (S+G, 9, Y+6, 9+Y, Q), the fifth row vector is (7, 8, Y, U, 3), the sixth row vector is (5, R, F, U, 4), the second sum vector is (12, 8+R, Y+F, 2U, 7), the decryption password is (S+G+12, 9+8+R, 2Y+6+F, 9+Y+2U, Q+7), and the encryption password is (12, 8+R, Y+F, 2U, 7).

[0044] In this embodiment, the sender identifier and the receiver identifier are processed based on a preset three-level key generation rule to obtain an encryption password and a decryption password, including: Performing hash operations on each character in the sender identifier based on the hash algorithm to obtain a plurality of seventh hash values, and performing hash operations on each character in the receiver identifier based on the hash algorithm to obtain a plurality of eighth hash values; For each of the seventh hash values, arrange the numbers in the seventh hash value in order to obtain a first target number corresponding to the seventh hash value; for example, if the seventh hash value is 3HJK9, then the target number corresponding to the seventh hash value is 39; Determine a target seventh hash value among the seventh hash values ​​based on the first target numbers corresponding to the seventh hash values; wherein the first target number corresponding to the target seventh hash value is a composite number; For each of the target seventh hash values, arrange the characters of the target seventh hash value in sequence in a preset row vector bracket to obtain a seventh row vector corresponding to the target seventh hash value; Adding each of the seventh row vectors to obtain a third sum vector; For each of the eighth hash values, arrange the numbers in the eighth hash value in order to obtain a second target number corresponding to each of the eighth hash values; Determine a target eighth Hash value among the eighth Hash values ​​based on the second target numbers corresponding to the eighth Hash values; wherein the second target numbers corresponding to the target eighth Hash values ​​are composite numbers; For each of the target eighth hash values, arrange the characters of the target eighth hash value in sequence in a preset row vector bracket to obtain an eighth row vector corresponding to the target eighth hash value; Adding each of the eighth row vectors to obtain a fourth sum vector; The third sum vector and the fourth sum vector are cross-multiplied to obtain the decryption password, and the fourth sum vector is determined to be the encryption password.

[0045] Exemplarily, the third sum vector is (2+U+P, E+6+G, D+K+7), and the fourth sum vector is (W+12+Y, H+U+4, 9+M+L), then the decryption password is (9E+EM+EL+6M+6L+9G+GM+GL−DH−DU−4D−KH−KU−4K−7H−7U+26, DW+KW+7W+12D+DY+12K+KY+7Y−9U−2M−UM−2L−UL−PL−9P−PM+66, 2H+6U+UH+U 2 +4P+PH+PU−12E−EW−EY−6W-GW−6Y-GY−12G−64), the encryption password is (W+12+Y, H+U+4, 9+M+L).

[0046] It can be seen from the above examples that the complexity of the decryption password provided in this embodiment is greater than the complexity of the encryption password, which helps to achieve an effective balance between the security and efficiency of data encryption.

[0047] In some embodiments, sending the encrypted SMS data and the decryption password to the recipient based on a preset transmission method includes: Randomly generate a plurality of beacon frames arranged in sequence based on the communication mode between the sender and the receiver, randomly select a beacon frame as a first target beacon frame, and randomly select a beacon frame as a second target beacon frame; wherein the first target beacon frame is not adjacent to the second target beacon frame; Adding the encrypted SMS data to the first target beacon frame, and recording the first sequence number corresponding to the first target beacon frame; Adding the decryption password to the second target beacon frame, and recording a second sequence number corresponding to the second target beacon frame; Calculate the difference between the number corresponding to the second serial number and the number corresponding to the first serial number; adding garbled information to the remaining beacon frames except the first target beacon frame and the second target beacon frame respectively; Generate a plurality of first data packets and a plurality of second data packets; wherein the number of the first data packets is consistent with the number corresponding to the first sequence number, and the number of the second data packets is consistent with the difference; Each beacon frame with added information is sent to the receiver in sequence, and after the beacon frame is sent, all the first data packets are sent to the receiver, and after all the first data packets are sent, all the second data packets are sent to the receiver.

[0048] In this embodiment, after the receiving party receives each beacon frame, each first data packet, and each second data packet, the receiving party's SMS data encryption and privacy protection system determines the first target beacon frame in each beacon frame according to the number of the first data packets, and obtains the encrypted SMS data from the first target beacon frame, determines the second target beacon frame in each beacon frame according to the sequence of the first target beacon frame and the number of the second data packets, and obtains the decryption password from the second target beacon frame, and uses the decryption password to decrypt the encrypted SMS data.

[0049] The method provided in this embodiment helps to further improve the security of the data to be encrypted during transmission.

[0050] See also Figure 2 , Figure 2 A schematic block diagram of the structure of the SMS data encryption and privacy protection system 100 provided in the embodiment of the present application is shown in FIG. Figure 2 As shown, the SMS data encryption and privacy protection system provided in the embodiment of the present application includes: The first acquisition module 110 is used to acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted.

[0051] The second acquisition module 120 is used to acquire the sender identifier of the sender and the receiver identifier of the receiver of the SMS data to be encrypted.

[0052] The generating module 130 is used to generate an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier.

[0053] The encryption processing module 140 is used to encrypt the SMS data to be encrypted using the encryption password to obtain encrypted SMS data.

[0054] The transmission module 150 is used to send the encrypted SMS data and the decryption password to the recipient based on a preset transmission method.

[0055] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned SMS data encryption and privacy protection method embodiment, and will not be repeated here.

[0056] The transformer SMS data encryption and privacy protection system 100 provided in the above embodiment can be implemented in the form of a computer program. The computer program can be used in Figure 3 The computer device 200 is shown running.

[0057] See also Figure 3 , Figure 3 The computer device 200 provided in the embodiment of the present application is a schematic block diagram of the structure, wherein the computer device 200 includes a processor 201 and a memory 202, wherein the processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.

[0058] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned SMS data encryption and privacy protection methods.

[0059] The processor 201 is used to provide computing and control capabilities and support the operation of the entire computer device 200 .

[0060] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned SMS data encryption and privacy protection methods.

[0061] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the present application scheme, and does not constitute a limitation on the computer device 200 involved in the present application scheme. The specific computer device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0062] It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0063] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps: Acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; Obtaining a sender ID of a sender and a receiver ID of a receiver of the SMS data to be encrypted; Generate an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; Encrypting the to-be-encrypted SMS data using the encryption password to obtain encrypted SMS data; The encrypted SMS data and the decryption password are sent to the recipient based on a preset transmission method.

[0064] It should be noted that technicians in the relevant field can clearly understand that for the convenience and simplicity of description, the specific working process of the computer device 200 described above can refer to the corresponding process of the aforementioned SMS data encryption and privacy protection method, and will not be repeated here.

[0065] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for encrypting and protecting the privacy of short message data, characterized in that: include: Acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; Obtaining a sender ID of a sender and a receiver ID of a receiver of the SMS data to be encrypted; Generate an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; Encrypting the to-be-encrypted SMS data using the encryption password to obtain encrypted SMS data; The encrypted SMS data and the decryption password are sent to the recipient based on a preset transmission method.

2. The method for encrypting and protecting the privacy of short message data according to claim 1, characterized in that: The analyzing the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted includes: Determine whether there are sensitive words in the SMS data to be encrypted; If not, determining that the sensitivity level of the to-be-encrypted SMS data is primary; If yes, count the number of the sensitive words, determine the information attributes of each of the sensitive words respectively, and obtain the sensitivity value of each of the sensitive words in the database based on the information attributes of each of the sensitive words; wherein the database is provided with a corresponding relationship between the information attributes and the sensitivity values; Adding the sensitivity values ​​of the sensitive words to obtain the sum of the sensitivity values, and multiplying the sum of the sensitivity values ​​by a number corresponding to the quantity to obtain the sensitivity factor of the SMS data to be encrypted; Determining whether the sensitivity factor is greater than a preset sensitivity factor; If not, determining that the sensitivity level of the SMS data to be encrypted is medium; If so, determine that the sensitivity level of the SMS data to be encrypted is high.

3. The method for encrypting and protecting the privacy of short message data according to claim 2, characterized in that: The generating of the encryption password and the decryption password based on the sensitivity level, the sender identifier and the receiver identifier comprises: If the sensitivity level is primary, the sender identifier and the receiver identifier are processed based on a preset primary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is medium, the sender identifier and the receiver identifier are processed based on a preset secondary key generation rule to obtain an encryption password and a decryption password; If the sensitivity level is high, the sender identifier and the receiver identifier are processed based on a preset three-level key generation rule to obtain an encryption password and a decryption password; the complexity of the first-level key generation rule, the second-level key generation rule, and the third-level key generation rule increases in sequence.

4. The method for encrypting and protecting the privacy of short message data according to claim 3, characterized in that: The process of processing the sender identifier and the receiver identifier based on a preset primary key generation rule to obtain an encryption password and a decryption password includes: Performing a hash operation on the sender identifier based on a preset hash algorithm to obtain a first hash value, and performing a hash operation on the receiver identifier based on the hash algorithm to obtain a second hash value; Arrange the characters of the first hash value in sequence in a preset row vector bracket to obtain a first row vector, and arrange the characters of the second hash value in sequence in a preset row vector bracket to obtain a second row vector; The first row vector and the second row vector are added to obtain the decryption password, and the second row vector is determined to be the encryption password.

5. The method for encrypting and protecting the privacy of short message data according to claim 4, characterized in that: The process of processing the sender identifier and the receiver identifier based on a preset secondary key generation rule to obtain an encryption password and a decryption password includes: Arrange the letters of the sender identification in sequence to obtain a first letter sequence, and arrange the numbers of the sender identification in sequence to obtain a first number sequence; Arrange the letters of the recipient identification in sequence to obtain a second letter sequence, and arrange the numbers of the recipient identification in sequence to obtain a second number sequence; Based on the hash algorithm, hash operations are performed on the first letter sequence, the first digital sequence, the second letter sequence, and the second digital sequence respectively to obtain a third hash value, a fourth hash value, a fifth hash value, and a sixth hash value; wherein the third hash value is a hash value corresponding to the first letter sequence, the fourth hash value is a hash value corresponding to the first digital sequence, the fifth hash value is a hash value corresponding to the second letter sequence, and the sixth hash value is a hash value corresponding to the second digital sequence; Arrange the characters of the third hash value in sequence in a preset row vector bracket to obtain a third row vector, arrange the characters of the fourth hash value in sequence in a preset row vector bracket to obtain a fourth row vector, and add the third row vector to the fourth row vector to obtain a first sum vector; Arrange the characters of the fifth hash value in sequence in a preset row vector bracket to obtain a fifth row vector, arrange the characters of the sixth hash value in sequence in a preset row vector bracket to obtain a sixth row vector, and add the fifth row vector and the sixth row vector to obtain a second sum vector; The first sum vector is added to the second sum vector to obtain the decryption password, and the second sum vector is determined to be the encryption password.

6. The method for encrypting and protecting the privacy of short message data according to claim 5, characterized in that: The process of processing the sender identifier and the receiver identifier based on the preset three-level key generation rule to obtain an encryption password and a decryption password includes: Performing hash operations on each character in the sender identifier based on the hash algorithm to obtain a plurality of seventh hash values, and performing hash operations on each character in the receiver identifier based on the hash algorithm to obtain a plurality of eighth hash values; For each of the seventh hash values, arrange the numbers in the seventh hash value in order to obtain a first target number corresponding to the seventh hash value; Determine a target seventh hash value among the seventh hash values ​​based on the first target numbers corresponding to the seventh hash values; wherein the first target number corresponding to the target seventh hash value is a composite number; For each of the target seventh hash values, arrange the characters of the target seventh hash value in sequence in a preset row vector bracket to obtain a seventh row vector corresponding to the target seventh hash value; Adding each of the seventh row vectors to obtain a third sum vector; For each of the eighth hash values, arrange the numbers in the eighth hash value in order to obtain a second target number corresponding to each of the eighth hash values; Determine a target eighth Hash value among the eighth Hash values ​​based on the second target numbers corresponding to the eighth Hash values; wherein the second target numbers corresponding to the target eighth Hash values ​​are composite numbers; For each of the target eighth hash values, arrange the characters of the target eighth hash value in sequence in a preset row vector bracket to obtain an eighth row vector corresponding to the target eighth hash value; Adding each of the eighth row vectors to obtain a fourth sum vector; The third sum vector and the fourth sum vector are cross-multiplied to obtain the decryption password, and the fourth sum vector is determined to be the encryption password.

7. The method for encrypting and protecting the privacy of short message data according to claim 1, characterized in that: The sending the encrypted SMS data and the decryption password to the recipient based on a preset transmission method includes: Randomly generate a plurality of beacon frames arranged in sequence based on the communication mode between the sender and the receiver, randomly select a beacon frame as a first target beacon frame, and randomly select a beacon frame as a second target beacon frame; wherein the first target beacon frame is not adjacent to the second target beacon frame; Adding the encrypted SMS data to the first target beacon frame, and recording the first sequence number corresponding to the first target beacon frame; Adding the decryption password to the second target beacon frame, and recording a second sequence number corresponding to the second target beacon frame; Calculate the difference between the number corresponding to the second serial number and the number corresponding to the first serial number; adding garbled information to the remaining beacon frames except the first target beacon frame and the second target beacon frame respectively; Generate a plurality of first data packets and a plurality of second data packets; wherein the number of the first data packets is consistent with the number corresponding to the first sequence number, and the number of the second data packets is consistent with the difference; Each beacon frame with added information is sent to the receiver in sequence, and after the beacon frame is sent, all the first data packets are sent to the receiver, and after all the first data packets are sent, all the second data packets are sent to the receiver.

8. A SMS data encryption and privacy protection system, characterized in that: include: A first acquisition module is used to acquire the SMS data to be encrypted, and analyze the SMS data to be encrypted based on a preset sensitivity level evaluation rule to obtain the sensitivity level of the SMS data to be encrypted; A second acquisition module is used to obtain a sender identifier of a sender and a receiver identifier of a receiver of the SMS data to be encrypted; A generating module, used for generating an encryption password and a decryption password based on the sensitivity level, the sender identifier and the receiver identifier; An encryption processing module, used to encrypt the to-be-encrypted SMS data using the encryption password to obtain encrypted SMS data; The transmission module is used to send the encrypted SMS data and the decryption password to the recipient based on a preset transmission method.

9. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the SMS data encryption and privacy protection method according to any one of claims 1 to 7 is implemented.