SMS security leakage prevention method and device

By obtaining SMS index information and combining encryption algorithms and graphic code processing, target SMS text is generated, which solves the problem of poor security and leakage prevention effect in the existing technology, and achieves more efficient SMS content protection.

CN119789078AInactive Publication Date: 2025-04-08BEIJING GUODU INTERNET TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510272593.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-10
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The prior art has poor results in SMS security and leak prevention, and it is difficult to effectively prevent SMS content from being hijacked, tampered and forwarded.

Method used

By obtaining the index information of the initial SMS text, combining encryption algorithms and graphics codes, the encrypted SMS text is generated, and the target SMS text is finally transmitted to ensure the completeness and accuracy of the SMS content.

Benefits of technology

It improves the concealment and security of SMS content, enhances the protection of SMS data, and prevents unauthorized access and tampering.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119789078A_ABST
    Figure CN119789078A_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for preventing SMS security leakage, which is applied to the field of data processing technology. The method includes: obtaining an initial SMS text; obtaining index information of the initial SMS text based on an SMS index; generating an encrypted SMS text based on the initial SMS text, the index information of the initial SMS text and an encryption algorithm; generating a target SMS text based on the encrypted SMS text and a graphic code, and transmitting the target SMS text. The present application obtains index information of the SMS text through the SMS index, and the user can quickly locate the target SMS according to the index in a large amount of SMS data, thereby improving the efficiency of obtaining the target SMS text. In addition, the present application combines the graphic code with the encrypted SMS text, which can generate the target SMS text more accurately and ensure the integrity and accuracy of the SMS content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to data processing technology, and in particular to a method and device for preventing short message leakage. Background Art

[0002] With the development of mobile Internet, there are more and more mobile payment application scenarios based on open platform smartphones. In mobile payment application scenarios, SMS mainly has two applications: one is as a balance change reminder, used to remind users of account balance changes; the other is as SMS verification code, more and more applications use mobile SMS verification code as a security factor for identity authentication. Since SMS content may be hijacked, tampered with and forwarded, it is necessary to pay attention to SMS security.

[0003] At present, the security and leakage prevention of SMS mainly relies on real-time log monitoring and analysis systems to comprehensively record and analyze SMS access records and operation behaviors in order to detect anomalies in a timely manner.

[0004] However, the above methods are less effective. Summary of the invention

[0005] Based on the above problems, the present invention is proposed to provide a method and device for preventing SMS security leakage that overcomes the above problems or at least partially solves the above problems.

[0006] According to one aspect of the present invention, a method for preventing SMS leakage is provided, comprising the following steps: Get the initial SMS text; Obtaining index information of the initial SMS text based on the SMS index; Generate an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and the encryption algorithm; Based on the encrypted SMS text and graphic code, a target SMS text is generated and transmitted.

[0007] Optionally, generating an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and an encryption algorithm includes: Get the SMS type corresponding to the initial SMS text and the keywords in the initial SMS text; An encrypted SMS text is generated based on the initial SMS text, the SMS type corresponding to the initial SMS text, keywords in the initial SMS text, index information of the initial SMS text and an encryption algorithm.

[0008] Optionally, generating an encrypted SMS text based on the initial SMS text, the SMS type corresponding to the initial SMS text, keywords in the initial SMS text, index information of the initial SMS text and an encryption algorithm includes: The initial SMS text and the keywords in the initial SMS text are converted respectively to obtain a first ASCII code numerical sequence corresponding to the initial SMS text and a second ASCII code numerical sequence corresponding to the keywords in the initial SMS text; Filter the ASCII codes in the first ASCII code numerical sequence and the second ASCII code numerical sequence respectively to obtain a third ASCII code numerical sequence corresponding to the first ASCII code numerical sequence and a fourth ASCII code numerical sequence corresponding to the second ASCII code numerical sequence; Obtaining a first value corresponding to the SMS type corresponding to the initial SMS text and a second value corresponding to the index information of the initial SMS text; The third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value, and the second numerical value are input into the encryption algorithm to generate an encrypted SMS text.

[0009] Optionally, the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value, and the second numerical value are input into an encryption algorithm to generate an encrypted SMS text, including: Performing a fusion calculation on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, and the first numerical value to obtain a first result; Calculating the absolute value of the second value and adding the absolute value of the second value to the first preset threshold to obtain a second result; Calculate the quotient of the first result and the second result to obtain a third result; Rounding down the third result to obtain a fourth result; A modulo operation is performed on the fourth result to obtain the encrypted SMS text.

[0010] Optionally, a fusion calculation is performed on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, and the first numerical value to obtain a first result, including: Multiply the third ASCII code value sequence and the first value to obtain a product value; Add the product value to the fourth ASCII code numerical sequence to obtain a first sum value; Add the third ASCII code numerical sequence and the fourth ASCII code numerical sequence to obtain a second sum value; The square of the first sum value and the second sum value is calculated, and the quotient of the square of the first sum value and the second sum value and the second preset threshold is calculated to obtain a first result.

[0011] Optionally, based on the encrypted SMS text and the graphic code, generating a target SMS text and transmitting the target SMS text includes: Obtaining the graphics in the graphics code and the status information of the graphics in the graphics code; The graphics in the graphic code are segmented, feature extracted and matched in sequence to obtain feature information of the graphics in the graphic code; Calculate the hash value of the encrypted SMS text; A target SMS text is generated based on feature information of the graphic in the graphic code, status information of the graphic in the graphic code, the encrypted SMS text, and a hash value of the encrypted SMS text.

[0012] Optionally, generating a target SMS text based on feature information of the graphic in the graphic code, status information of the graphic in the graphic code, the encrypted SMS text, and a hash value of the encrypted SMS text includes: Based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code, obtaining a text description corresponding to the graphic in the graphic code; Generate a text description corresponding to the encrypted SMS text based on the hash value of the encrypted SMS text, the feature matrix of the encrypted SMS text, and the SMS type of the encrypted SMS text; Associating the text description corresponding to the graphic in the graphic code with the text description corresponding to the encrypted text message, generating association information between the graphic in the graphic code and the encrypted text message; The encrypted SMS text is combined with the associated information to generate the target SMS text.

[0013] Optionally, based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code, obtaining a text description corresponding to the graphic in the graphic code includes: Obtaining contour information from characteristic information of a graphic in a graphic code; Calculating shape features of the graphics in the graphic code based on contour information in feature information of the graphics in the graphic code; Generate a first text description corresponding to the graphic in the graphic code based on the shape feature of the graphic in the graphic code and the color feature of the graphic in the graphic code; Based on the state information of the graphic in the graphic code, a second text description corresponding to the graphic in the graphic code is generated.

[0014] Optionally, generating a second text description corresponding to the graphic in the graphic code based on the status information of the graphic in the graphic code includes: If the state information of the graphic in the graphic code is static and there is a target object in the graphic in the graphic code, obtaining the target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code, generate a third text description corresponding to the graphic in the graphic code; If the state information of the graphic in the graphic code is dynamic and there is a target object in the graphic in the graphic code, obtaining the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code, a fourth text description corresponding to the graphic in the graphic code is generated.

[0015] According to another aspect of the present invention, there is provided a device for preventing short message leakage, comprising: A first acquisition module, used to acquire an initial SMS text; A second acquisition module, used to acquire index information of the initial SMS text based on the SMS index; An encryption module, used for generating an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and an encryption algorithm; The target SMS generation module is used to generate the target SMS text based on the encrypted SMS text and the graphic code, and transmit the target SMS text.

[0016] According to the solution of the present invention, in the present invention, the initial SMS text is first obtained, and then the index information of the initial SMS text is obtained based on the SMS index, and then the encrypted SMS text is generated based on the initial SMS text, the index information of the initial SMS text and the encryption algorithm, so as to generate the target SMS text based on the encrypted SMS text and the graphic code, and transmit the target SMS text. The present application obtains the index information of the SMS text through the SMS index, and the user can quickly locate the target SMS according to the index in a large amount of SMS data, thereby improving the efficiency of obtaining the target SMS text. In addition, the present application combines the graphic code with the encrypted SMS text, which can generate the target SMS text more accurately and ensure the integrity and accuracy of the SMS content. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A flowchart of a method for preventing SMS security leakage according to an embodiment of the present invention is shown; Figure 2 A schematic diagram of a graphic code in this embodiment is shown; Figure 3 A structural block diagram of a device for preventing short message leakage according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0018] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0019] like Figure 1 As shown, a method for preventing SMS leakage is provided in this embodiment, comprising the following steps: Step S101: Obtain an initial SMS text.

[0020] The initial text of a message refers to the specific text information contained in a message. It is the core part of a message and is used to convey the various contents that the sender wants to express, ranging from simple greetings to complex business information. Among them, personal communications include greetings, daily communication, emotional expressions, etc., and business work includes meeting notices, business negotiations, work reports, etc. For example, the initial text of a meeting notice can be: "Dear colleagues, a project progress report meeting will be held in the conference room at 9 am tomorrow. Please prepare relevant materials in advance and attend on time." Step S102: obtaining index information of the initial SMS text based on the SMS index.

[0021] This application can implement the steps of obtaining the index information of the initial SMS text based on the SMS index based on the 4G module AT command on the Linux platform, specifically: First, set the SMS mode of the initial SMS text to text mode: set it to text mode through the AT+CMGF=1 command. In this mode, English SMS can be simply read. If you read Chinese SMS, garbled characters may appear. You need to obtain the index information according to the SMS index. Taking the index information as the index number as an example, use AT+CMGR= <index>instruction, <index>It is the index number of the SMS in the memory. For example, AT+CMGR=3 means the read index number is 3.

[0022] This application obtains index information of SMS text through SMS index. Users can quickly locate the target SMS in a large amount of SMS data based on the index, avoiding frequent viewing and use of SMS content. The index can quickly obtain the required information, which helps to make timely decisions and improve work efficiency. In addition, based on the index, you can more specifically select the SMS that need to be backed up to ensure the integrity and accuracy of the backup data. When restoring data, you can also quickly restore the data to the correct location based on the index, ensuring the integrity and consistency of the SMS data, and helping to quickly restore important information when the data is lost or damaged.

[0023] Step S103: Generate an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and the encryption algorithm.

[0024] In order to generate an encrypted SMS text based on the initial SMS text, the index information of the initial SMS text and the encryption algorithm, it is necessary to first obtain the SMS type corresponding to the initial SMS text and the keywords in the initial SMS text, and then generate the encrypted SMS text based on the initial SMS text, the SMS type corresponding to the initial SMS text, the keywords in the initial SMS text, the index information of the initial SMS text and the encryption algorithm.

[0025] Among them, the SMS types corresponding to the initial SMS text include but are not limited to verification code SMS, notification SMS, marketing SMS, etc.

[0026] Keywords in the initial SMS text refer to words that can reflect the core content, theme or key information of the SMS, which helps to quickly understand the main idea of ​​the SMS. Keywords of different types of SMS have different characteristics. For example, if the initial SMS text is a meeting notice in a notification SMS, and the meeting notice is: a department meeting will be held in the conference room on the 3rd floor at 9 am tomorrow, and all staff are requested to attend the meeting on time, then the keywords are "9 am tomorrow, conference room on the 3rd floor, department meeting, all staff", etc.

[0027] Among them, based on the initial SMS text, the SMS type corresponding to the initial SMS text, the keywords in the initial SMS text, the index information of the initial SMS text and the encryption algorithm, the encrypted SMS text is generated, including: respectively converting the initial SMS text and the keywords in the initial SMS text to obtain a first ASCII code value sequence corresponding to the initial SMS text and a second ASCII code value sequence corresponding to the keywords in the initial SMS text; respectively screening the ASCII codes in the first ASCII code value sequence and the second ASCII code value sequence to obtain a third ASCII code value sequence corresponding to the first ASCII code value sequence and a fourth ASCII code value sequence corresponding to the second ASCII code value sequence; obtaining a first value corresponding to the SMS type corresponding to the initial SMS text and a second value corresponding to the index information of the initial SMS text; and inputting the third ASCII code value sequence, the fourth ASCII code value sequence, the first value and the second value into the encryption algorithm to generate the encrypted SMS text.

[0028] Specifically, the initial text message is a meeting notice: a department meeting will be held in the conference room on the 3rd floor at 9 am tomorrow. All staff are requested to attend the meeting on time. The key words are "tomorrow at 9 am, conference room on the 3rd floor, department meeting, all staff", etc. Among them, the ASCII code numerical sequence of the meeting notice and its corresponding keywords can be queried one by one by looking up the ASCII code corresponding to each word in the table, and then the queried ASCII codes can be arranged according to the order of the words in the text. After the table is looked up and arranged, it can be known that the first ASCII code numerical sequence corresponding to the meeting notice is {387890078544788909006783209}, and the second ASCII code numerical sequence corresponding to the key words "tomorrow at 9 am, conference room on the 3rd floor, department meeting, all staff" is {3878907854489090678}.

[0029] Since the ASCII codes in the above-obtained ASCII code numerical sequence may contain 0, and 0 is relatively easy to be cracked, it is necessary to screen the ASCII codes in the first ASCII code numerical sequence {387890078544788909006783209} and the second ASCII code numerical sequence {3878907854489090678} respectively, that is, to remove all 0s in the above ASCII code numerical sequences, and then obtain the third ASCII code numerical sequence {387897854478899678329} and the fourth ASCII code numerical sequence {3878978544899678}.

[0030] This application converts the initial SMS text through an encryption algorithm, making it difficult for unauthorized people to understand the real content even if they obtain the SMS data, thus protecting sensitive information in the SMS and preventing content leakage. In addition, encryption combined with index information adds an extra layer of security. Attackers not only need to crack the encryption algorithm, but also need to understand the meaning and usage of the index information, which greatly increases the difficulty of cracking, effectively resists analysis and attacks against the index, and enhances security.

[0031] After the application converts the SMS text and keywords into an ASCII code numerical sequence, the originally intuitive text information becomes a digital sequence, which makes the information have a certain degree of concealment during transmission and storage. Even if the information is obtained by others, without the corresponding conversion rules, it is difficult to directly identify the original SMS content and keywords, which increases the difficulty of information cracking and improves the concealment of information. In addition, for the keywords in the SMS, after being converted into ASCII code, their original form with specific semantics and obvious characteristics is broken, and they are mixed with other ASCII codes of ordinary text, making it difficult to directly distinguish which ones are keywords from the numerical sequence, further improving the concealment of keywords, confusing keyword features, and effectively preventing sensitive information from being obtained through keyword searches.

[0032] After that, it is necessary to obtain the first value corresponding to the SMS type corresponding to the initial SMS text and the second value corresponding to the index information of the initial SMS text. Among them, the first value corresponding to the SMS type can be the SMS level, such as the meeting notification in the notification SMS in the SMS type is a level 2 SMS, and its corresponding value is 2. The second value corresponding to the index information of the initial SMS text can be determined according to the index information. For example, if the index information in the above embodiment is index number 3, its corresponding value is also 3.

[0033] The present application utilizes index information to more efficiently encrypt SMS text. For example, a specific portion of text can be quickly located and processed through an index, without having to perform a comprehensive encryption operation on the entire SMS, saving encryption computing resources and time and improving encryption efficiency, especially for long SMS or large amounts of SMS. In addition, combined with index information, SMS can be reasonably encrypted and transmitted in segments. After receiving each segment of encrypted SMS, the recipient can correctly splice and decrypt it based on the index information, improving the flexibility and efficiency of SMS in network transmission and reducing the risk of transmission errors and loss.

[0034] After obtaining the third ASCII code value sequence, the fourth ASCII code value sequence, the first value and the second value, the third ASCII code value sequence, the fourth ASCII code value sequence, the first value and the second value can be input into the encryption algorithm to generate an encrypted SMS text.

[0035] The third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value and the second numerical value are input into the encryption algorithm to generate the encrypted SMS text, including: performing a fusion calculation on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence and the first numerical value to obtain a first result; calculating the absolute value of the second numerical value and adding the absolute value of the second numerical value to the first preset threshold to obtain a second result; calculating the quotient of the first result and the second result to obtain a third result; rounding down the third result to obtain a fourth result; performing a modulus operation on the fourth result to obtain the encrypted SMS text. The first preset threshold can be set according to specific circumstances and is not limited here.

[0036] The third ASCII code numerical sequence, the fourth ASCII code numerical sequence and the first numerical value are fused and calculated to obtain the first result, including: multiplying the third ASCII code numerical sequence and the first numerical value to obtain a product value; adding the product value to the fourth ASCII code numerical sequence to obtain a first sum value; adding the third ASCII code numerical sequence and the fourth ASCII code numerical sequence to obtain a second sum value; calculating the square of the first sum value and the second sum value, and calculating the quotient of the square of the first sum value and the second sum value and the second preset threshold value to obtain the first result. The second preset threshold value can be set according to specific circumstances and is not limited here.

[0037] This application provides a unified digital format input for the encryption algorithm through the ASCII code numerical sequence. Whether it is to encrypt the entire SMS text or the keywords therein, these numerical sequences can be directly operated, without the need for additional format conversion or processing of different types of data, which simplifies the encryption process, improves encryption efficiency, and can be better compatible with various encryption algorithms. In addition, encryption algorithms are usually based on digital operations to encrypt information. As a digital form, the ASCII code numerical sequence is convenient for the encryption algorithm to perform various mathematical operations, such as replacement, substitution, XOR and other operations, which can more effectively confuse and disrupt SMS information, enhance the encryption effect, and improve the security of SMS.

[0038] Step S104: Generate a target SMS text based on the encrypted SMS text and the graphic code, and transmit the target SMS text.

[0039] Among them, graphic code can be a coding technology that uses specific graphics to represent data information, and stores and transmits information through different features and permutations of graphics. The different features and permutations of graphics in graphic codes can be as follows: Figure 2 As shown, it can also be set according to specific circumstances and is not specifically limited here.

[0040] In order to generate a target SMS text based on the encrypted SMS text and graphic code, and transmit the target SMS text, it is necessary to first obtain the graphics in the graphic code and the status information of the graphics in the graphic code, and then perform segmentation, feature extraction and feature matching on the graphics in the graphic code in turn to obtain the feature information of the graphics in the graphic code, and then calculate the hash value of the encrypted SMS text, and finally generate the target SMS text based on the feature information of the graphics in the graphic code, the status information of the graphics in the graphic code, the encrypted SMS text and the hash value of the encrypted SMS text.

[0041] Wherein, based on the characteristic information of the graphic in the graphic code, the status information of the graphic in the graphic code, the encrypted text message and the hash value of the encrypted text message, the target text message is generated, including: based on the characteristic information of the graphic in the graphic code and the status information of the graphic in the graphic code, obtaining the text description corresponding to the graphic in the graphic code; based on the hash value of the encrypted text message, the characteristic matrix of the encrypted text message and the text type of the encrypted text message, generating the text description corresponding to the encrypted text message; associating the text description corresponding to the graphic in the graphic code with the text description corresponding to the encrypted text message to generate the association information between the graphic in the graphic code and the encrypted text message; combining the encrypted text message and the association information to generate the target text message.

[0042] Wherein, based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code, obtaining the text description corresponding to the graphic in the graphic code includes: obtaining the contour information in the feature information of the graphic in the graphic code; calculating the shape feature of the graphic in the graphic code based on the contour information in the feature information of the graphic in the graphic code; generating the first text description corresponding to the graphic in the graphic code based on the shape feature of the graphic in the graphic code and the color feature of the graphic in the graphic code; generating the second text description corresponding to the graphic in the graphic code based on the status information of the graphic in the graphic code.

[0043] Among them, based on the status information of the graphic in the graphic code, a second text description corresponding to the graphic in the graphic code is generated, including: if the status information of the graphic in the graphic code is static and there is a target object in the graphic in the graphic code, the target object in the graphic in the graphic code is obtained; based on the target object in the graphic in the graphic code, a third text description corresponding to the graphic in the graphic code is generated; if the status information of the graphic in the graphic code is dynamic and there is a target object in the graphic in the graphic code, the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code are obtained; based on the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code, a fourth text description corresponding to the graphic in the graphic code is generated.

[0044] This application combines the graphic code with the encrypted SMS text, which can generate the target SMS text more accurately and ensure the integrity and accuracy of the SMS content. In addition, the graphic code can be used to correct and verify the encrypted SMS text. By embedding verification information or error correction code in the graphic code, the recipient can verify and correct the decrypted SMS text when generating the target SMS text, and promptly discover and correct possible transmission errors or data corruption, thereby improving the accuracy and reliability of the SMS content.

[0045] In summary, in this embodiment, the initial SMS text is first obtained, and then the index information of the initial SMS text is obtained based on the SMS index, and then the encrypted SMS text is generated based on the initial SMS text, the index information of the initial SMS text and the encryption algorithm, thereby generating the target SMS text based on the encrypted SMS text and the graphic code, and transmitting the target SMS text. This application obtains the index information of the SMS text through the SMS index, and the user can quickly locate the target SMS according to the index in a large amount of SMS data, thereby improving the efficiency of obtaining the target SMS text. In addition, this application combines the graphic code with the encrypted SMS text, which can generate the target SMS text more accurately and ensure the integrity and accuracy of the SMS content.

[0046] Figure 3 A device for preventing SMS leakage is shown in an embodiment of the present invention. Figure 3 As shown, the device comprises: The first acquisition module 301 is used to acquire the initial SMS text; A second acquisition module 302, configured to acquire index information of an initial SMS text based on the SMS index; The encryption module 303 is used to generate an encrypted SMS text based on the initial SMS text, the index information of the initial SMS text and the encryption algorithm; The target SMS generation module 304 is used to generate a target SMS text based on the encrypted SMS text and the graphic code, and transmit the target SMS text.

[0047] Optionally, the encryption module 303 is further used to obtain the SMS type corresponding to the initial SMS text and keywords in the initial SMS text; An encrypted SMS text is generated based on the initial SMS text, the SMS type corresponding to the initial SMS text, keywords in the initial SMS text, index information of the initial SMS text and an encryption algorithm.

[0048] Optionally, the encryption module 303 is further used to convert the initial SMS text and the keywords in the initial SMS text respectively to obtain a first ASCII code numerical sequence corresponding to the initial SMS text and a second ASCII code numerical sequence corresponding to the keywords in the initial SMS text; Filter the ASCII codes in the first ASCII code numerical sequence and the second ASCII code numerical sequence respectively to obtain a third ASCII code numerical sequence corresponding to the first ASCII code numerical sequence and a fourth ASCII code numerical sequence corresponding to the second ASCII code numerical sequence; Obtaining a first value corresponding to the SMS type corresponding to the initial SMS text and a second value corresponding to the index information of the initial SMS text; The third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value, and the second numerical value are input into the encryption algorithm to generate an encrypted SMS text.

[0049] Optionally, the encryption module 303 is further used to perform a fusion calculation on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence and the first numerical value to obtain a first result; Calculating the absolute value of the second value and adding the absolute value of the second value to the first preset threshold to obtain a second result; Calculate the quotient of the first result and the second result to obtain a third result; Rounding down the third result to obtain a fourth result; A modulo operation is performed on the fourth result to obtain the encrypted SMS text.

[0050] Optionally, the encryption module 303 is further used to multiply the third ASCII code numerical sequence and the first numerical value to obtain a product value; Add the product value to the fourth ASCII code numerical sequence to obtain a first sum value; Add the third ASCII code numerical sequence and the fourth ASCII code numerical sequence to obtain a second sum value; The square of the first sum value and the second sum value is calculated, and the quotient of the square of the first sum value and the second sum value and the second preset threshold is calculated to obtain a first result.

[0051] Optionally, the target SMS generation module 304 is further used to obtain the graphics in the graphic code and the status information of the graphics in the graphic code; The graphics in the graphic code are segmented, feature extracted and matched in sequence to obtain feature information of the graphics in the graphic code; Calculate the hash value of the encrypted SMS text; A target SMS text is generated based on feature information of the graphic in the graphic code, status information of the graphic in the graphic code, the encrypted SMS text, and a hash value of the encrypted SMS text.

[0052] Optionally, the target SMS generation module 304 is further used to obtain a text description corresponding to the graphic in the graphic code based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code; Generate a text description corresponding to the encrypted SMS text based on the hash value of the encrypted SMS text, the feature matrix of the encrypted SMS text, and the SMS type of the encrypted SMS text; Associating the text description corresponding to the graphic in the graphic code with the text description corresponding to the encrypted text message, generating association information between the graphic in the graphic code and the encrypted text message; The encrypted SMS text is combined with the associated information to generate the target SMS text.

[0053] Optionally, the target SMS generation module 304 is further used to obtain contour information in the feature information of the graphic in the graphic code; Calculating shape features of the graphics in the graphic code based on contour information in feature information of the graphics in the graphic code; Generate a first text description corresponding to the graphic in the graphic code based on the shape feature of the graphic in the graphic code and the color feature of the graphic in the graphic code; Based on the state information of the graphic in the graphic code, a second text description corresponding to the graphic in the graphic code is generated.

[0054] Optionally, the target SMS generation module 304 is further configured to obtain the target object in the graphic in the graphic code if the state information of the graphic in the graphic code is static and there is a target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code, generate a third text description corresponding to the graphic in the graphic code; If the state information of the graphic in the graphic code is dynamic and there is a target object in the graphic in the graphic code, obtaining the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code, a fourth text description corresponding to the graphic in the graphic code is generated.

[0055] In the description provided herein, algorithms and displays are not inherently related to any particular computer, virtual system or other device. Various general purpose systems can also be used together with the examples of the present invention. According to the above description, it is obvious that the structure required for constructing such systems. In addition, the present invention is not directed to any specific programming language either. It should be understood that various programming languages ​​can be utilized to implement the content of the present invention described herein, and the above description of specific languages ​​is for the purpose of disclosing the preferred embodiment of the present invention.

[0056] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0057] Those skilled in the art will appreciate that the modules or units or components of the devices in the examples disclosed herein may be arranged in the devices described in the embodiment, or alternatively may be located in one or more devices different from the devices in the examples. The modules in the foregoing examples may be combined into one module or may be divided into multiple submodules.

[0058] Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subassemblies. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise clearly stated, each feature disclosed in this specification can be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0059] In addition, some of the embodiments are described herein as methods or combinations of method elements that can be implemented by a processor of a computer system or by other devices that perform the functions. Therefore, a processor with necessary instructions for implementing the method or method elements forms a device for implementing the method or method elements. In addition, the elements described herein of the device embodiments are examples of devices for implementing the functions performed by the elements for the purpose of implementing the invention.

[0060] As used herein, unless otherwise specified, the use of ordinal numbers "first," "second," "third," etc. to describe common objects merely indicates that different instances of similar objects are involved, and is not intended to imply that the objects so described must have a given order in time, space, order, or in any other manner.

[0061] Although the present invention has been described according to a limited number of embodiments, it will be apparent to those skilled in the art, with the benefit of the above description, that other embodiments may be envisioned within the scope of the invention thus described. In addition, it should be noted that the language used in this specification is selected primarily for readability and teaching purposes, rather than for explaining or defining the subject matter of the present invention. Therefore, many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the attached description. The disclosure of the present invention is illustrative rather than restrictive with respect to the scope of the present invention, and the scope of the present invention is defined by the attached description.< / index> < / index>

Claims

1. A method for preventing SMS leakage, characterized in that: The following steps are involved: Get the initial SMS text; Acquire index information of the initial SMS text based on the SMS index; Generate an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and an encryption algorithm; Based on the encrypted SMS text and the graphic code, a target SMS text is generated, and the target SMS text is transmitted.

2. The method for preventing SMS leakage according to claim 1, characterized in that: The step of generating an encrypted SMS text based on the initial SMS text, the index information of the initial SMS text and the encryption algorithm comprises: Obtaining the SMS type corresponding to the initial SMS text and the keywords in the initial SMS text; The encrypted SMS text is generated based on the initial SMS text, the SMS type corresponding to the initial SMS text, keywords in the initial SMS text, index information of the initial SMS text and the encryption algorithm.

3. The method for preventing SMS leakage according to claim 2, characterized in that: The step of generating the encrypted SMS text based on the initial SMS text, the SMS type corresponding to the initial SMS text, the keywords in the initial SMS text, the index information of the initial SMS text and the encryption algorithm includes: The initial SMS text and the keywords in the initial SMS text are converted respectively to obtain a first ASCII code numerical sequence corresponding to the initial SMS text and a second ASCII code numerical sequence corresponding to the keywords in the initial SMS text; Filter the ASCII codes in the first ASCII code numerical sequence and the second ASCII code numerical sequence respectively to obtain a third ASCII code numerical sequence corresponding to the first ASCII code numerical sequence and a fourth ASCII code numerical sequence corresponding to the second ASCII code numerical sequence; Obtaining a first value corresponding to the SMS type corresponding to the initial SMS text and a second value corresponding to the index information of the initial SMS text; The third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value and the second numerical value are input into the encryption algorithm to generate the encrypted SMS text.

4. The method for preventing SMS leakage according to claim 3, characterized in that: The step of inputting the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, the first numerical value, and the second numerical value into the encryption algorithm to generate the encrypted SMS text includes: Performing a fusion calculation on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, and the first numerical value to obtain a first result; Calculating the absolute value of the second value and adding the absolute value of the second value to the first preset threshold to obtain a second result; Calculate the quotient of the first result and the second result to obtain a third result; Rounding down the third result to obtain a fourth result; A modulo operation is performed on the fourth result to obtain the encrypted SMS text.

5. The method for preventing SMS leakage according to claim 4, characterized in that: The step of performing a fusion calculation on the third ASCII code numerical sequence, the fourth ASCII code numerical sequence, and the first numerical value to obtain a first result includes: Multiplying the third ASCII code value sequence and the first value to obtain a product value; Adding the product value to the fourth ASCII code numerical sequence to obtain a first sum value; Adding the third ASCII code numerical sequence and the fourth ASCII code numerical sequence to obtain a second sum; The square of the first sum value and the second sum value is calculated, and the quotient of the square of the first sum value and the second sum value and a second preset threshold is calculated to obtain the first result.

6. The method for preventing SMS leakage according to claim 1, characterized in that: The step of generating a target SMS text based on the encrypted SMS text and the graphic code, and transmitting the target SMS text, comprises: Acquire the graphics in the graphic code and status information of the graphics in the graphic code; Sequentially performing segmentation, feature extraction and feature matching on the graphics in the graphic code to obtain feature information of the graphics in the graphic code; Calculating a hash value of the encrypted SMS text; The target SMS text is generated based on the feature information of the graphic in the graphic code, the status information of the graphic in the graphic code, the encrypted SMS text and the hash value of the encrypted SMS text.

7. The method for preventing SMS leakage according to claim 6, characterized in that: The generating the target SMS text based on the feature information of the graphic in the graphic code, the state information of the graphic in the graphic code, the encrypted SMS text and the hash value of the encrypted SMS text comprises: Based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code, obtaining a text description corresponding to the graphic in the graphic code; Generate a text description corresponding to the encrypted text message based on the hash value of the encrypted text message, the feature matrix of the encrypted text message, and the text message type of the encrypted text message; Associating the text description corresponding to the graphic in the graphic code with the text description corresponding to the encrypted text message, to generate association information between the graphic in the graphic code and the encrypted text message; The encrypted SMS text is combined with the associated information to generate the target SMS text.

8. The method for preventing SMS leakage according to claim 7, characterized in that: The acquiring, based on the feature information of the graphic in the graphic code and the status information of the graphic in the graphic code, a text description corresponding to the graphic in the graphic code comprises: Acquire contour information in characteristic information of a graphic in the graphic code; Calculating shape features of the graphics in the graphic code based on contour information in feature information of the graphics in the graphic code; generating a first text description corresponding to the graphic in the graphic code based on a shape feature of the graphic in the graphic code and a color feature of the graphic in the graphic code; Based on the status information of the graphic in the graphic code, a second text description corresponding to the graphic in the graphic code is generated.

9. The method for preventing SMS leakage according to claim 8, characterized in that: The step of generating a second text description corresponding to the graphic in the graphic code based on the status information of the graphic in the graphic code includes: If the state information of the graphic in the graphic code is static and there is a target object in the graphic in the graphic code, obtaining the target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code, generating a third text description corresponding to the graphic in the graphic code; If the state information of the graphic in the graphic code is dynamic and there is a target object in the graphic in the graphic code, obtaining the target object in the graphic in the graphic code and the movement direction of the target object in the graphic in the graphic code; Based on the target object in the graphic in the graphic code and the moving direction of the target object in the graphic in the graphic code, a fourth text description corresponding to the graphic in the graphic code is generated.

10. A device for preventing SMS leakage, characterized in that: include: A first acquisition module, used to acquire an initial SMS text; A second acquisition module, used to acquire index information of the initial SMS text based on the SMS index; An encryption module, used to generate an encrypted SMS text based on the initial SMS text, index information of the initial SMS text and an encryption algorithm; The target SMS generation module is used to generate a target SMS text based on the encrypted SMS text and the graphic code, and transmit the target SMS text.