CN102946596A - Method and system for preventing resending of short message based on digital signature technology - Google Patents
Method and system for preventing resending of short message based on digital signature technology Download PDFInfo
- Publication number
- CN102946596A CN102946596A CN2012104979587A CN201210497958A CN102946596A CN 102946596 A CN102946596 A CN 102946596A CN 2012104979587 A CN2012104979587 A CN 2012104979587A CN 201210497958 A CN201210497958 A CN 201210497958A CN 102946596 A CN102946596 A CN 102946596A
- Authority
- CN
- China
- Prior art keywords
- short message
- note
- characters string
- encrypted characters
- digital signature
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Storage Device Security (AREA)
Abstract
The invention provides a method and a system for preventing resending of a short message based on a digital signature technology. The method includes extracting a field of content of the short message and a sending object number according to a short message protocol, processing a field by using an MD5 algorithm to obtain a hash value corresponding to the field uniquely, encrypting the hash value to obtain an encrypted character string, storing the character string, determining whether the character string exists in a cache region, if yes, determining that the same short message in the system has been sent before, the system canceling the sending of the short message, and otherwise sending the short message. According to the method and the system, a sole short message content feature signature is defined for the short message with the same content and sending object number through algorithm process and encryption of the short message, when the short message with the same signature appears, the system terminates the sending of the short message, therefore resource waste caused by resending of short messages is avoided when the system is abnormal, and a safe information environment is provided for users simultaneously.
Description
Technical field
The present invention relates to moving communicating field, relate in particular to the anti-repeating method of a kind of note based on digital signature technology and system.
Background technology
Along with the popularity rate of mobile phone is more and more higher, in the use procedure of mobile phone, usually cause variety of issue.Usually can receive the identical note of content or mobile phone because the fault of system can ceaselessly repeat to send the same note always when using mobile phone such as people, this just makes troubles to our life.
In the prior art; prevent the function of repeating transmission in the interface system that ISP uses there are no information; when system itself occurs unusual or special circumstances when occuring; cause the part cellphone subscriber to receive the information of repetition; not only increased the workload of system; cause the wasting of resources, also make troubles to the user simultaneously.
In view of this, prior art haves much room for improvement and improves.
Summary of the invention
In view of the deficiencies in the prior art, the object of the invention is to provide the anti-repeating method of a kind of note based on digital signature technology and system, and being intended to provides a kind of verifying speed fast and high verification method and the system of accuracy rate to the problem that is not provided with the anti-retransmitting function of information in the internet interface system that exists in the prior art.
Technical scheme of the present invention is as follows:
The anti-method of retransmitting of a kind of note based on digital signature technology wherein, may further comprise the steps:
A, extract short message content and send the field of destination number according to short message protocol;
B, the field of extracting short message content and sending destination number is carried out the MD5 algorithm process, obtain cryptographic Hash corresponding with it (hash algorithm is mapped as the less binary value of regular length with the binary value of random length, and this little binary value is called cryptographic Hash);
C, the cryptographic Hash of obtaining is encrypted, obtains an encrypted characters string, and it is kept in the buffer zone;
The encrypted characters string of preserving in D, the encrypted characters string that will obtain from above-mentioned steps and the buffer zone compares, judge whether this encrypted characters string exists in the buffer zone, if exist then stop the transmission of this note, if there is no then note is sent.
The anti-method of retransmitting of described note based on digital signature technology wherein, is carried out the BASE64 method to the cryptographic Hash of obtaining and is encrypted in step C.
The anti-method of retransmitting of described note based on digital signature technology wherein, also comprises step D1 in step D, do not exist in the buffer zone if judge this encrypted characters string, then this encrypted characters string is arranged the term of validity of stored record.
The anti-method of retransmitting of described note based on digital signature technology, wherein, the described term of validity is 2 hours, when the encrypted characters string after the buffer zone has been stored 2 hours, this stored record is removed automatically.
The anti-system of retransmitting of a kind of note based on digital signature technology wherein, comprises with lower module:
The note extraction module extracts short message content and the field that sends destination number according to short message protocol;
Algorithm processing module is carried out the MD5 algorithm process to the field of extracting short message content and transmission destination number, obtains cryptographic Hash corresponding with it;
Encrypting module is encrypted the cryptographic Hash of obtaining, and obtains an encrypted characters string, and sends it to cache module;
Cache module is used for preserving the encrypted characters string that obtains, and this encrypted characters string is sent to judge module;
Judge module, the encrypted characters string of preserving in this encrypted characters string that obtains and the cache module is compared, judge whether this encrypted characters string exists at cache module, if exist then stop the transmission of this note, do not exist then this note is sent.
The anti-system of retransmitting of described note based on digital signature technology wherein, carries out the BASE64 method to the cryptographic Hash of obtaining and encrypts in encrypting module.
The anti-system of retransmitting of described note based on digital signature technology, wherein, cache module also arranges the term of validity of stored record to being kept at wherein encrypted characters string.
The anti-system of retransmitting of described note based on digital signature technology, wherein, the described term of validity is 2 hours, when the encrypted characters string in the buffer zone module after 2 hours, stored record is removed automatically.
Beneficial effect: the anti-repeating method of a kind of note based on digital signature technology provided by the invention and system, by extract the field of short message content and transmission destination number according to short message protocol, use the MD5 algorithm that this field is processed, obtain and the unique corresponding cryptographic Hash of this field.The SMS platform system is encrypted this cryptographic Hash, obtain an encrypted characters string and with its preservation, the encrypted characters string of preserving before in itself and the system cache zone is compared, whether judge this encrypted characters string exists in the buffer zone, if exist then illustrate before and sent identical note in the system, system cancels the transmission of this note, if do not exist in system, then this note is sent.
The present invention is the identical content note definition short message content characteristic signature identical with sending destination number by the method for note being carried out algorithm process and encryption, when the note that generates same encrypted characters string occurs again, system is the transmission of this note of automatic stop, thus effectively prevented note repeat send.Method and system provided by the invention not only can prevent to cause note to repeat to send the wasting of resources that causes when system's abnormal, also provide a more safe and reliable information environment for the user simultaneously.
Description of drawings
Fig. 1 is the application's the anti-method flow diagram of retransmitting of a kind of note based on digital signature technology.
Fig. 2 is the application's the anti-system configuration schematic diagram of retransmitting of a kind of note based on digital signature technology.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, clear and definite, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Be illustrated in figure 1 as the anti-method specific embodiment of retransmitting of a kind of note based on digital signature technology provided by the invention, its method step comprises:
The system port that S1, ISP use extracts short message content according to short message protocol and sends the field of destination number.
ISP uses first the note receiving system to extract short message content to be sent according to short message protocol and sends the field of destination number.
At present the kind of short message protocol mainly contains three kinds of SMS, EMS and MMS.Three kinds of agreements select arbitrarily one of them all can in the present invention, but because MMS compares SMS and EMS has the media types that more can receive and dispatch, and text, simple picture and the tinkle of bells all can transmit, support complicated picture such as photo, large-scale chart and the transmission of snatch of music etc. advantage, preferred MMS.
Because the note to be sent to this determines whether to repeat to send, itself and the note that sent before need to be compared, thereby need to obtain certain feature from note to be sent compares it to carry out with the note that sent before, so after receiving note to be sent, the content of this note and the field that sends destination number need to be extracted, in order to next step to its content with send whether identical checking of destination number and the short message content that has sent before and transmission destination number.
S2, the field of extracting short message content and sending destination number is carried out the MD5 algorithm process, obtain cryptographic Hash corresponding with it.
The SMS platform system extracts the short message content of note to be sent and sends after the field of destination number in above-mentioned steps, it is carried out the MD5 algorithm process, by obtaining cryptographic Hash one section regular length, unique after the algorithm process.
Because the MD5 algorithm can be by C++ and the very simple realization of java high level language, and it uses extensively, so select in the present invention the MD5 algorithm that short message content and the field that sends target are carried out algorithm process.
Be equivalent to the short message content characteristic signature by the described cryptographic Hash that obtains after the MD5 algorithm process, short message content is identical with sending two identical its characteristic signatures of note of target, like this after the contrast note just do not need to contrast the content of whole note when whether repeating to send, and only need contrast cryptographic Hash, thereby greatly accelerate verifying speed.
The field of extracting short message content and transmission destination number is carried out the MD5 algorithm process, obtain to carry out step S3 after the cryptographic Hash corresponding with it.
S3, the cryptographic Hash of obtaining is encrypted, obtains an encrypted characters string, and it is kept in the buffer zone.
For the cryptographic Hash that prevents from obtaining meets accident or by deliberately or the modification of malice, system is encrypted the cryptographic Hash of its acquisition, thereby obtains an encrypted characters string, and this encrypted characters string is kept in the buffer zone.
The method that the preferred BASE64 of the method for in foregoing cryptographic Hash being encrypted encrypts.
The encrypted characters string of preserving in S4, the encrypted characters string that will obtain from above-mentioned steps and the buffer zone compares, judge whether this encrypted characters string exists in the buffer zone, if exist then stop the transmission of this note, if there is no then note is sent.
The in store encrypted characters string that generates by above step in the buffer zone, the encrypted characters string of preserving in this encrypted characters string that obtains and the buffer zone is compared, judge and before this encrypted characters is concatenated into, whether in the buffer zone, preserved identical encrypted characters string.Because the note of identical short message content and identical transmission destination number can generate same cryptographic Hash, identical cryptographic Hash can generate identical encrypted characters string, if so there has been identical encrypted characters string in the buffer zone, then illustrate to have sent identical note to identical destination number before this note sends, this is sent as and repeats to send.Do not sending same note to same destination number before this if having identical encrypted characters string to exist then illustrate.
When judging that this encrypted characters string after whether the buffer zone has existed, do not process accordingly to different judged results, if exist then this time transmission of note of SMS platform system automatic stop if there is no then sends note.
Need to the note of same destination number at different time period transmission identical contents, do following improvement on the basis of above-mentioned specific embodiment for fear of the user:
Do not exist in the buffer zone if in step S4, judge this encrypted characters string, then this encrypted characters string is arranged the term of validity of stored record.
When the encrypted characters string under the note is kept in the buffer zone, if the user wants again to send the note of same content to same destination number, system automatically cancellation sends, if so the encrypted characters string that the note that the user wants again to send identical content during to same destination number, needs to be kept at before this under this note in the buffer zone is removed and could be realized.Can send same note to identical destination number after certain hour in order to satisfy the user, system arranges the term of validity of stored record to this encrypted characters string.It also can be that ISP sets according to certain user's request that this term of validity can system be fixedly installed.
Preferably, in the present embodiment, described effective value is 2 hours, when the encrypted characters string after the buffer zone has been stored 2 hours, this stored record is removed automatically.This stored record can regenerate new encrypted characters string when the SMS platform system interface receives identical note after removing, and is kept in the storage area, until the user could send identical note to identical destination number after 2 hours.
The anti-method of retransmitting of a kind of note based on digital signature technology provided by the invention, by to extracting the short message content in the short message and sending destination number, it is carried out generating the unique characteristic signature of this note after the MD5 algorithm process is cryptographic Hash, this cryptographic Hash is encrypted processing, obtain the encrypted characters string and it is kept at the buffer zone, system compares the encrypted characters string of having preserved in this encrypted characters string and this buffer zone, whether judgement exists identical encrypted characters string in this zone, if existing then illustrating this time to attach most importance to recurring send identical information to identical destination number, system will automatically cancel the note that the encrypted characters string is corresponding therewith and send, otherwise, system judges that it is not to repeat to send that this information sends, and continues this information to send automatically.
The present invention also provides a kind of note based on digital signature technology the anti-system of retransmitting on the method basis, and as shown in Figure 2, native system comprises the following functions module:
The concrete execution mode of algorithm processing module 120 is identical with said method step S2.
The cryptographic Hash that 130 pairs of encrypting modules obtain in algorithm processing module 120 adopts the BASE64 encryption method to be encrypted, and obtains the corresponding encrypted characters string of this cryptographic Hash, and its concrete execution mode is identical with said method step S3.
Preferably, the term of validity of stored record is set to being kept at wherein encrypted characters string also in cache module, wherein, the described term of validity is 2 hours, when the encrypted characters string after cache module has been preserved 2 hours, stored record is removed automatically.
The anti-system of retransmitting of a kind of note based on digital signature technology provided by the invention, by utilizing note extraction module, algorithm processing module, encrypting module, cache module and judge module this note is verified successively, judge the note that its recurrence of whether attaching most importance to is sent, then cancel the transmission of this note if repeat to send to the note of same destination number, thereby reach the purpose that prevents that note from repeating to send.
The anti-repeating method of a kind of note based on digital signature technology of the present invention and system are owing to adopting the encrypted characters string to after the encryption of " short message content characteristic signature "-cryptographic Hash to compare, so its verifying speed is accelerated greatly, and the mode that adopts cryptographic Hash to encrypt is encrypted processing to short message content, can guarantee the accuracy verified, thereby provide a more safe and reliable information interchange environment for the user.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.
Claims (8)
1. the anti-method of retransmitting of the note based on digital signature technology is characterized in that, may further comprise the steps:
A, extract short message content and send the field of destination number according to short message protocol;
B, the field of extracting short message content and sending destination number is carried out the MD5 algorithm process, obtain cryptographic Hash corresponding with it;
C, the cryptographic Hash of obtaining is encrypted, obtains an encrypted characters string, and it is kept in the buffer zone;
The encrypted characters string of preserving in D, the encrypted characters string that will obtain from above-mentioned steps and the buffer zone compares, judge whether this encrypted characters string exists in the buffer zone, if exist then stop the transmission of this note, if there is no then note is sent.
2. the anti-method of retransmitting of described note based on digital signature technology according to claim 1 is characterized in that, in step C the cryptographic Hash of obtaining is carried out the BASE64 method and encrypts.
3. the anti-method of retransmitting of described note based on digital signature technology according to claim 1 and 2, it is characterized in that, in step D, also comprise step D1, do not exist in the buffer zone if judge this encrypted characters string, then this encrypted characters string is arranged the term of validity of stored record.
4. the anti-method of retransmitting of described note based on digital signature technology according to claim 3 is characterized in that the described term of validity is 2 hours, when the encrypted characters string after the buffer zone has been stored 2 hours, this stored record is removed automatically.
5. the anti-system of retransmitting of the note based on digital signature technology is characterized in that, comprises with lower module:
The note extraction module extracts short message content and the field that sends destination number according to short message protocol;
Algorithm processing module is carried out the MD5 algorithm process to the field of extracting short message content and transmission destination number, obtains cryptographic Hash corresponding with it;
Encrypting module is encrypted the cryptographic Hash of obtaining, and obtains an encrypted characters string, and sends it to cache module;
Cache module is used for preserving the encrypted characters string that obtains, and this encrypted characters string is sent to judge module;
Judge module, the encrypted characters string of preserving in this encrypted characters string that obtains and the cache module is compared, judge whether this encrypted characters string exists at cache module, if exist then stop the transmission of this note, do not exist then this note is sent.
According to claim 5 described in based on the anti-system of retransmitting of the note of digital signature technology, it is characterized in that, in encrypting module, the cryptographic Hash of obtaining is carried out the BASE64 method and encrypts.
According to claim 5 or described in 6 based on the anti-system of retransmitting of the note of digital signature technology, it is characterized in that cache module also arranges the term of validity of stored record to being kept at wherein encrypted characters string.
According to claim 7 described in based on the anti-system of retransmitting of the note of digital signature technology, it is characterized in that the described term of validity is 2 hours, when the encrypted characters string in the buffer zone module after 2 hours, stored record is removed automatically.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104979587A CN102946596A (en) | 2012-11-29 | 2012-11-29 | Method and system for preventing resending of short message based on digital signature technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012104979587A CN102946596A (en) | 2012-11-29 | 2012-11-29 | Method and system for preventing resending of short message based on digital signature technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102946596A true CN102946596A (en) | 2013-02-27 |
Family
ID=47729495
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012104979587A Pending CN102946596A (en) | 2012-11-29 | 2012-11-29 | Method and system for preventing resending of short message based on digital signature technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102946596A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113830A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Large-scale short message resend-preventing method based on message digest 5 algorithm (MD5) and distributed cache |
CN107172112A (en) * | 2016-03-07 | 2017-09-15 | 阿里巴巴集团控股有限公司 | A kind of computer documents transmission method and device |
CN107333248A (en) * | 2017-06-29 | 2017-11-07 | 北京鸿联九五信息产业有限公司 | A kind of real-time sending method of short message and system |
CN115835147A (en) * | 2022-11-23 | 2023-03-21 | 中国工商银行股份有限公司 | Short message related information processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060019643A1 (en) * | 2004-07-20 | 2006-01-26 | Inventec Appliances Corporation | Method of sending instruction to mobile phone by short message |
CN101137087A (en) * | 2007-08-01 | 2008-03-05 | 浙江大学 | Short message monitoring center and monitoring method |
CN101925026A (en) * | 2010-07-22 | 2010-12-22 | 中兴通讯股份有限公司 | Mobile terminal with information transmission prompting function and realization method thereof |
CN102340580A (en) * | 2010-07-16 | 2012-02-01 | 希姆通信息技术(上海)有限公司 | Mobile phone and method for preventing repeated sending of mobile phone by using same |
-
2012
- 2012-11-29 CN CN2012104979587A patent/CN102946596A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060019643A1 (en) * | 2004-07-20 | 2006-01-26 | Inventec Appliances Corporation | Method of sending instruction to mobile phone by short message |
CN101137087A (en) * | 2007-08-01 | 2008-03-05 | 浙江大学 | Short message monitoring center and monitoring method |
CN102340580A (en) * | 2010-07-16 | 2012-02-01 | 希姆通信息技术(上海)有限公司 | Mobile phone and method for preventing repeated sending of mobile phone by using same |
CN101925026A (en) * | 2010-07-22 | 2010-12-22 | 中兴通讯股份有限公司 | Mobile terminal with information transmission prompting function and realization method thereof |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104113830A (en) * | 2014-07-29 | 2014-10-22 | 广东能龙教育股份有限公司 | Large-scale short message resend-preventing method based on message digest 5 algorithm (MD5) and distributed cache |
CN107172112A (en) * | 2016-03-07 | 2017-09-15 | 阿里巴巴集团控股有限公司 | A kind of computer documents transmission method and device |
CN107172112B (en) * | 2016-03-07 | 2020-10-02 | 阿里巴巴集团控股有限公司 | Computer file transmission method and device |
CN107333248A (en) * | 2017-06-29 | 2017-11-07 | 北京鸿联九五信息产业有限公司 | A kind of real-time sending method of short message and system |
CN107333248B (en) * | 2017-06-29 | 2018-05-29 | 北京鸿联九五信息产业有限公司 | A kind of real-time sending method of short message and system |
CN115835147A (en) * | 2022-11-23 | 2023-03-21 | 中国工商银行股份有限公司 | Short message related information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10778633B2 (en) | Differential privacy for message text content mining | |
CN103916244B (en) | Verification method and device | |
RU2016130556A (en) | TRANSFER OF GENERAL MESSAGES | |
CN104394530A (en) | Wechat content encryption system based on smartphone and implementation method of wechat content encryption system | |
US10623357B2 (en) | Peer-assisted mail thread management | |
CN102946596A (en) | Method and system for preventing resending of short message based on digital signature technology | |
CN104348578B (en) | The method and device of data processing | |
CN107196761B (en) | A kind of method of core function in protection application program | |
EP3614623A1 (en) | System and method for proof-of-work based on hash mining for reducing spam attacks | |
CN108737094A (en) | A kind of method and relevant device of the detection of domain cipher safety | |
CN111193741B (en) | Information sending method, information obtaining method, device and equipment | |
US9338112B2 (en) | Safety protocols for messaging service-enabled cloud services | |
CN104780042A (en) | Two-layer authentication method, device and system for instant messaging | |
CN105069369A (en) | Burn-after-reading method and device for document | |
CN102340580B (en) | Mobile phone and the mobile phone that prevents utilizing this mobile phone to realize repeat the method sent | |
CN106559386A (en) | A kind of authentication method and device | |
CN109120641B (en) | Report automatic uploading method and device, computer equipment and storage medium | |
CN109088872B (en) | Using method and device of cloud platform with service life, electronic equipment and medium | |
CN108512824B (en) | Management method of home cloud files and mobile terminal | |
WO2016037489A1 (en) | Method, device and system for monitoring rcs spam messages | |
CN103326927B (en) | A kind of method and apparatus withholding mail | |
CN103327026A (en) | Data updating method and updating system | |
US10110628B2 (en) | Phishing source tool | |
CN108259609B (en) | Family cloud data management method and cloud server | |
CN106101079A (en) | A kind of method and system realizing encrypted signature |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130227 |