CN100377613C - Encryption method for short message of mobile telephone - Google Patents

Encryption method for short message of mobile telephone Download PDF

Info

Publication number
CN100377613C
CN100377613C CNB2005100436473A CN200510043647A CN100377613C CN 100377613 C CN100377613 C CN 100377613C CN B2005100436473 A CNB2005100436473 A CN B2005100436473A CN 200510043647 A CN200510043647 A CN 200510043647A CN 100377613 C CN100377613 C CN 100377613C
Authority
CN
China
Prior art keywords
short message
data
portable terminal
character
characters
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.)
Expired - Fee Related
Application number
CNB2005100436473A
Other languages
Chinese (zh)
Other versions
CN1703108A (en
Inventor
朱平洋
刘传军
黄增志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Group Co Ltd
Qingdao Hisense Communication Co Ltd
Original Assignee
Hisense Group Co Ltd
Qingdao Hisense Communication Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hisense Group Co Ltd, Qingdao Hisense Communication Co Ltd filed Critical Hisense Group Co Ltd
Priority to CNB2005100436473A priority Critical patent/CN100377613C/en
Publication of CN1703108A publication Critical patent/CN1703108A/en
Application granted granted Critical
Publication of CN100377613C publication Critical patent/CN100377613C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention discloses an encryption method for short messages of a mobile terminal, which comprises the following steps: if the length of a short message is greater than 80 characters, then the short message is split into two items; if the length of the short message is smaller than 80 characters, then the short message acts as one item; the mobile terminal compresses short message data and transmits the compressed data to an encryption module for encryption; the encrypted data goes back to the mobile terminal and is sent out by a radio frequency unit. The present invention provides high safety for personnel who have high safety requirement for the short messages in a special field, increases the safety and the reliability of the short message data, and ensures minimal short message split items, short transmission time and high short message transmission efficiency.

Description

The mobile terminal short message method of encrypting
Technical field
The invention belongs to the mobile communication technology field, send a kind of solution of encrypting short message more specifically to mobile communication terminal.
Technical background
Present mobile communication terminal all supports to send and receive short message, short message platform is a kind of service business that public mobile network provides, because it is convenient that short message has transmitting-receiving, the advantage that rate are cheap, having obtained users' generally use, is the common method of people's communication exchange in moving.Because short message is the information content that belongs to the comparison individual, most people do not wish that others sees the short message on the own mobile phone, and this just need encrypt short message.
For maintaining secrecy of short message, a kind of method that proposes is in the short message menu of mobile phone password to be set at present, after the user has only the correct password of input, could check short message, editor and deletion, so just can prevent that others from seeing machine master's short message, but this method is simple relatively, others is than the password that is easier to guess or obtain the machine master, and some short message is stored on the user mobile phone card, if the mobile phone card is put on the other mobile phone, others just can see the content of short message, short message also just is difficult to obtain having maintained secrecy like this, and this method for encrypting short message just is provided with password on mobile phone, can't encrypt control to the short message transmission process.
Because the special dimension personnel are very strict to the safety requirements of information communication such as public security department, need on portable terminal, take secrecy provision, and need in the transmission of Information process, encrypt, to prevent eavesdropping and to divulge a secret.Under present public mobile network situation, comprise the Short Message Service of GSM, cdma network, be difficult to satisfy the security requirement of the personnel of special dimension to short message data.
Summary of the invention
Purpose of the present invention, just be to solve the special dimension personnel problem high to the security requirement of short message data, when having proposed a kind of transmission short message is split, compresses, in security module, encrypt then, send, when portable terminal received short message, elder generation delivered to data in the security module and is decrypted again, decompress the method that on display screen, shows at last again.The method has improved the fail safe and the reliability of short message data, and has guaranteed that the split bar number of short message is minimum, and the time of transmission is short, short message transmission efficient height.
To achieve these goals, the mobile terminal short message method of encrypting may further comprise the steps:
Split, if the short message number of characters greater than 80 characters, then is split as 2, less than 80 characters, just as 1 short message;
Compression, portable terminal compresses short message data, and when character compression became byte, n character compression was (n*7+7)/8 byte, and each character is filled with 7 bits, remaining bit zero padding;
Encrypt, portable terminal is sent to the data after compressing and carries out algorithm for encryption in the security module, encrypts the back data and returns portable terminal, sends by radio frequency unit again.
Portable terminal is connected with security module by serial ports or USB interface, and security module is made the mode of an encrypted card, is integrated into the inside of end cell.
Cryptographic algorithm regular update in the security module.Give up remaining bits during close step and count this parameter.
Portable terminal receives the encryption short message and may further comprise the steps:
Portable terminal receives the encryption short message by radio frequency unit, is sent in the security module to be decrypted, and deciphering back data are returned portable terminal;
The data of portable terminal after to deciphering decompress, and the byte of the data m after the deciphering is reduced to (m*8)/7 a former character, and when (m*8)/7 are 8 multiple, the ASCII character value of (m*8)/7 character is 0x00, and the real bytes number subtracts 1 for (m*8)/7;
Then at the former character that shows on the display screen after decompressing.
Portable terminal can adopt 8 bit ASCII encoding compression to become the form of 7 codings of character set to the compress mode of short message character, character compression becomes byte, n character can boil down to (n*7+7)/8 byte, this byte front, (n*7+7)/8 n*7 bit is just filled with 7 bits of each character, if remaining bit is arranged then use zero padding.Give up remaining bits during encryption and count this parameter, guaranteed that the short message within 160 characters is split as 2 at most.
Adopt the ASCII character form for English note, if the number of characters in the note is during greater than 80 characters, be split as preceding 80 characters and remaining character, totally two, present normal short message breath comprises 160 characters at most, if adopt this method that short message is encrypted, earlier 160 characters are split as two short messages, every comprises 80 characters; If the number of characters in the note then need not split less than 80 characters, handle as a short message.
Description of drawings
Below in conjunction with drawings and Examples the present invention is further described.
Fig. 1 is portable terminal and a security module connection side block diagram in one embodiment of the present of invention;
Fig. 2 is the schematic diagram that concerns between the three of number of characters, number of bytes after compression and remaining bits number of short message in one embodiment of the present of invention.
Fig. 3 is that portable terminal sends the flow chart of encrypting short message in one embodiment of the present of invention;
Fig. 4 is that portable terminal receives the flow chart of encrypting short message in one embodiment of the present of invention;
Embodiment
As shown in Figure 1, be connection side's block diagram of portable terminal and security module in one embodiment of the present of invention, portable terminal comprises radio frequency unit, controller, memory and the serial ports or the USB interface that externally connect.Mobile terminal side adds a security module, sets up communication and encryption and decryption data transmission between travelling carriage and security module.Portable terminal is sent to security module to the short message data by terminal serial ports or USB mouth, and security module is encrypted data, and data encrypted is delivered to terminal by serial ports or USB oral instructions.When being used to decipher, portable terminal is sent to security module to the short message data of encrypting by terminal serial ports or USB mouth, and security module is decrypted data, and the data after the deciphering are delivered to terminal by serial ports or USB oral instructions.For better fail safe, the cryptographic algorithm in the security module can regular update.Security module can be made the mode of an encrypted card, and for concealed and prevent to be destroyed, encrypted card can be integrated into the inside of end cell.
Split for the short message that at first carries out, the bar number of fractionation is many more, and the time of transmission is just long more, and information transmission efficiency is lower.Situation according to the reality test is seen, sends two and encrypts the time interval that will keep between the short message 5 seconds.That is to say to send when encrypting short message,, will wait 5 seconds after then article one distributes and send second again if be split as two transmissions; If be split as three transmissions, to wait 5 seconds after then article one distributes and send second again, and then etc. sent the 3rd in 5 seconds.Sending an encryption note that surpasses 140 bytes like this needs tens seconds at least, and the user can be difficult to stand.
The another one problem is that the bar number of encryption short message fractionation is many more, short message lose and the possibility that misplaces big more, when the encryption short message need be split as many, if in process of transmitting owing to the network reason causes wherein one or several to lose, and other do not lose, the recipient just is easy to cause ambiguity.
Consider the time interval of transmit leg and the time-delay situation of network simultaneously, the short message that the recipient receives all fractionations successively also has a time interval, can cause user's the inconvenience of checking like this, a back at that time message is not also come such as seeing previous message, and what see like this is not a complete information just.And the short message that splits is many more, the back might occur and send out situation about arriving first.Be a back short message than last arrive more Zao, can cause user's ambiguity like this or understand difficulty.
Therefore, when sending the encryption short message, because except the data of short message itself, also want the information of affix cryptographic algorithm, must split for the short message that surpasses 140 character lengths, in the mobile network sent and receives, the bar number that short message splits was few more good more.The present invention is split as two to the note that surpasses 140 character lengths, and concrete method for splitting is as follows.
When greater than 80 characters, be split as preceding 80 characters and remaining character, totally two; Need not split less than 80 characters, only one, the short message number of characters that can send like this can reach 160 characters at most.Compression adopts character compression to become the form of byte, and 8 bit ASCII encoding compression become 7 codings of character set.N character can boil down to (n*7+7)/8 byte, and this byte front, (n*7+7)/8 n*7 bit is just filled with 7 bits of each character, if remaining bit is arranged then use zero padding.Because 8 characters can 7 bytes of boil down to, only consider the situation of 1 to 8 character here.
As shown in Figure 2, the number of characters in the short message is that n, number of bytes after compression are m, and when number of characters is 1, number of bytes after compression also is 1, and remaining bit zero padding is arranged, and then the remaining bits number is 1, and other can be analogized and learn.When number of bytes after compression is 7, former number of characters may be 7, also may be 8, what 7 bits of data back were filled when number of characters is 7 is 0, what 7 bits of data back were filled when being 8 is last character, not 0,, so just can distinguish former number of characters because the Ascii sign indicating number can not be 0.
What set user's input is n character, dividing exactly 8 remainder q as n * 7 is zero, then need n * 7/8 byte data, if remainder q is non-vanishing, then need the data of (n * 7/8)+1 byte, these data front n*7 bits are filled with 7 bits of n character, are not zero as remainder q, and then remaining 8-q bit is filled with zero.So just can tell original number of characters is 7 or 8.Just can know original number of characters according to the one-to-one relationship that is less than 7 bytes again according to number of bytes after compression.When knowing that original data length is n * 8+q less than 6 the time greater than 0,, can know that they are one to one because according to Fig. 2.When m was 7, if n is 7, the last 7bit of data was for replenishing 7 zero bits; If n is 8, last 7 bits of data are the 8th character, because the ASCII character of character can not be zero, so just can distinguish, if last 7 bits are zero then n is 7, otherwise be 8.
For the compression of encrypting short message, remaining bits is counted this parameter give up.So can know character length n * 8+q behind the decompress(ion) (q less than 9 greater than 0) and separate its data of extrusion according to the data length n * 7+m after the deciphering (m greater than 0 less than 7) and data fully.
As shown in Figure 3, the method for portable terminal transmission encryption short message may further comprise the steps:
Split, if short message greater than 80 characters, then is split as 2, less than 80 characters, just as a short message;
Compression, portable terminal compresses as stated above to short message, and (n*7+7)/8 byte front n*7 bit is just filled with 7 bits of each character, if remaining bit is arranged then use zero padding;
Portable terminal is sent to the data after compressing in the security module and encrypts, and encrypts the back data and returns portable terminal, forms the air interface form, sends by radio frequency unit again.
If short message is split as two short messages, the compression of article one short message sends after the encryption, and then the second short message is compressed, and encrypts, and sends again.
As shown in Figure 4, the method for portable terminal reception encryption short message may further comprise the steps:
Portable terminal receives the encryption short message by radio frequency unit, converts User Format to, is sent in the security module to be decrypted again, and deciphering back data are returned portable terminal, and the data after the deciphering are the data after the compression of (n*7+7)/8 byte.
The data of portable terminal after to deciphering decompress then, if the data after the deciphering are m byte, then can be reduced to former character number and be (m*8)/7.When (m*8)/7 are 8 multiple, if the ASCII character value of (m*8)/7 character after the reduction is 0 * 00, then is the sort of situation of 7 characters, in this case, the real bytes number should be (m*8)/7-1, at last at the character that shows on the display screen after decompressing.

Claims (5)

1. mobile terminal short message method of encrypting is characterized in that may further comprise the steps:
Split, short message comprises 160 characters at most, if the short message number of characters greater than 80 characters, then is split as 2, less than 80 characters, just as 1 short message;
Compression, portable terminal compresses short message data, and when character compression became byte, n character compression was (n*7+7)/8 byte, and each character is filled with 7 bits, remaining bit zero padding;
Encrypt, portable terminal is sent to the data after compressing and carries out algorithm for encryption in the security module, encrypts the back data and returns portable terminal, sends by radio frequency unit again.
2. mobile terminal SMS method of encrypting according to claim 1 is given up remaining bits and is counted this parameter when it is characterized in that encrypting step.
3. mobile terminal short message method of encrypting according to claim 1 is characterized in that portable terminal passes through serial ports or USB interface is connected with security module, and security module is made the mode of an encrypted card, is integrated into the inside of end cell.
4. according to claim 1,2 or 3 described mobile terminal short message method of encrypting, it is characterized in that the cryptographic algorithm regular update in the security module.
5. mobile terminal short message method of encrypting according to claim 1 is characterized in that portable terminal receives the encryption short message and may further comprise the steps:
Portable terminal receives the encryption short message by radio frequency unit, is sent in the security module to be decrypted, and deciphering back data are returned portable terminal;
The data of portable terminal after to deciphering decompress, and the byte of the data m after the deciphering is reduced to (m*8)/7 a former character, and when (m*8)/7 are 8 multiple, the ASCII character value of (m*8)/7 character is 0x00, and the real bytes number subtracts 1 for (m*8)/7;
Then at the former character that shows on the display screen after decompressing.
CNB2005100436473A 2005-06-01 2005-06-01 Encryption method for short message of mobile telephone Expired - Fee Related CN100377613C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100436473A CN100377613C (en) 2005-06-01 2005-06-01 Encryption method for short message of mobile telephone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100436473A CN100377613C (en) 2005-06-01 2005-06-01 Encryption method for short message of mobile telephone

Publications (2)

Publication Number Publication Date
CN1703108A CN1703108A (en) 2005-11-30
CN100377613C true CN100377613C (en) 2008-03-26

Family

ID=35632587

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100436473A Expired - Fee Related CN100377613C (en) 2005-06-01 2005-06-01 Encryption method for short message of mobile telephone

Country Status (1)

Country Link
CN (1) CN100377613C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917709A (en) * 2010-07-27 2010-12-15 黑龙江大学 Short message service hardware encryption transmission system based on chaos algorithm
CN102186151B (en) * 2011-05-13 2016-01-13 中国电信股份有限公司 The method and system of online process tax-related service, mediating transmission device
CN102184511A (en) * 2011-05-13 2011-09-14 中国电信股份有限公司 Method and system for processing tax-related service on line
CN104955091B (en) * 2015-04-29 2016-10-19 努比亚技术有限公司 The method and device of test
CN107919943B (en) 2016-10-11 2020-08-04 阿里巴巴集团控股有限公司 Method and device for coding and decoding binary data
CN111726274B (en) * 2020-05-25 2021-10-29 武汉理工大学 Automobile CAN bus data communication method, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398127A (en) * 2001-07-20 2003-02-19 深圳市杰欣科技发展有限公司 Method for compressing small-region broadcast channels and decompressing by intelligent card
US20030058815A1 (en) * 2001-09-26 2003-03-27 Shen Alan W. Communicating multi-part messages between cellular devices using a standardized interface
CN1437376A (en) * 2002-02-08 2003-08-20 泰康亚洲(北京)科技有限公司 Method of realizing safe mobile e-business in GSM
WO2003088054A1 (en) * 2002-04-12 2003-10-23 Vodafone Group Plc Method and system for distribution of encrypted data in a mobile network
CN1543234A (en) * 2003-11-05 2004-11-03 大唐微电子技术有限公司 Short message security method and SIM card for implementing short message security
CN1571541A (en) * 2004-04-22 2005-01-26 中兴通讯股份有限公司 Short message transmitting method for PCS short message system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1398127A (en) * 2001-07-20 2003-02-19 深圳市杰欣科技发展有限公司 Method for compressing small-region broadcast channels and decompressing by intelligent card
US20030058815A1 (en) * 2001-09-26 2003-03-27 Shen Alan W. Communicating multi-part messages between cellular devices using a standardized interface
CN1437376A (en) * 2002-02-08 2003-08-20 泰康亚洲(北京)科技有限公司 Method of realizing safe mobile e-business in GSM
WO2003088054A1 (en) * 2002-04-12 2003-10-23 Vodafone Group Plc Method and system for distribution of encrypted data in a mobile network
CN1543234A (en) * 2003-11-05 2004-11-03 大唐微电子技术有限公司 Short message security method and SIM card for implementing short message security
CN1571541A (en) * 2004-04-22 2005-01-26 中兴通讯股份有限公司 Short message transmitting method for PCS short message system

Also Published As

Publication number Publication date
CN1703108A (en) 2005-11-30

Similar Documents

Publication Publication Date Title
CN101188496A (en) A SMS encryption transport method
CN100377613C (en) Encryption method for short message of mobile telephone
UA100939C2 (en) Method and apparatus for transmission a message through a random access control channel in a wireless communication system
CN105376261B (en) Encryption method and system for instant messaging message
CA2504843A1 (en) Providing a user device with a set of access codes
JPH0823330A (en) Safe data communication
CN104333455A (en) Secrete communication system and method for smart phone
MXPA04004839A (en) Authentication of a mobile telephone.
CN101153910B (en) Method and system for safe transmission of GPS locating information and GPS receiver
CN101951601A (en) Method and system for encrypting voice calls in mobile communication network, terminal and network side
CN101815267A (en) Method for encrypting short message of mobile communication terminal
CN104640091A (en) Method for encryption communication of short message of mobile phone
CN103096304A (en) Method for encryption and decryption of secure voice tendencies of internet protocol (IP) network communication terminal
CN102082662A (en) Quantum safety communication method based on synchronous random number information base information retrieval
CN101478733B (en) Method, network device and network system for short message transmission
GB2369753B (en) Short data messages in mobile communications systems
CN106973040A (en) A kind of smart mobile phone secret short message security system and secret short message transmission method
CN100367701C (en) Apparatus and method for implementing data safety transmission of mobile communication apparatus
EP2401850A2 (en) Communications systems
CN101500231A (en) Mobile terminal, audio data processing method and system
CN101262340A (en) MMS encryption method and mobile terminal for transmitting and receiving encrypted MMS
CN101394248A (en) Data ciphering and deciphering communication terminal
GB2384396B (en) Secure messaging via a mobile communications network
CN201623859U (en) System for encrypting short messages through mobile phone terminal
CN107040921A (en) One kind is based on point-to-point SMS encryption system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Patent director of Hisense Group Co., Ltd

Document name: Notification to Pay the Fees

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Patent director of Hisense Group Co., Ltd

Document name: Notice of termination of patent

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080326

Termination date: 20200601