CN106102025A - A kind of Encrypted short message coding method based on Android - Google Patents

A kind of Encrypted short message coding method based on Android Download PDF

Info

Publication number
CN106102025A
CN106102025A CN201610347807.1A CN201610347807A CN106102025A CN 106102025 A CN106102025 A CN 106102025A CN 201610347807 A CN201610347807 A CN 201610347807A CN 106102025 A CN106102025 A CN 106102025A
Authority
CN
China
Prior art keywords
note
short message
communication terminal
encrypted
ciphertext
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
Application number
CN201610347807.1A
Other languages
Chinese (zh)
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.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201610347807.1A priority Critical patent/CN106102025A/en
Publication of CN106102025A publication Critical patent/CN106102025A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/12Messaging; Mailboxes; Announcements
    • H04W4/14Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]

Abstract

The invention discloses a kind of Encrypted short message coding method based on Android.The method include the steps that 1) communication terminal A to Encrypted short message application in short message content to be encrypted be encrypted as ciphertext;Then using ISO8859 1 coded system to carry out single byte coding to this ciphertext, and adding marking head in note, identifying this note is Encrypted short message;2) coded format in PDU is set to 8bit coding by communication terminal A, then uses PDU pattern by this short message sending to recipient, i.e. communication terminal B;3) after communication terminal B receives this note, according to the coded system of this note, using PDU pattern to receive the ciphertext that this note obtains this note, then this communication terminal B removes the marking head of this note and obtains short message content in plain text after the ciphertext deciphering of this note.The present invention ensures to receive and dispatch normal short message, again can compatible encryption note, accomplish that note length does not increases, do not produce any more than cost.

Description

A kind of Encrypted short message coding method based on Android
Technical field
The invention belongs to Network Communicate Security technical field, relate to a kind of coding method, particularly relate to a kind of Android and add Encrypted short message coding method in close communication.
Background technology
Developing rapidly and extensively applying of mobile communication technology brings great convenience to the life of people, but also brings Many potential safety hazards.Owing to wireless channel has opening, as long as utilizing corresponding reception equipment, it becomes possible to intercept and capture the logical of mobile phone Words information, and carry out positioning, follow the tracks of and monitoring to it.Coded communication can protect communication security, and the note of encryption can be avoided Stolen hearer obtains information therein.For the actual application scenarios of Encrypted short message, we devise a kind of Android phone encryption Short message encoding scheme, for protecting the safety of note data in mobile communication.
It is encrypted the method being to commonly use to short message content, and in this case, owing to android system can be at frame Rack-layer is by short message encoding, and the conversion of some coded formats cannot be reduced after making Encrypted short message Content Transformation so that send is short Letter correctly cannot be deciphered by recipient.To this end, we have proposed a kind of Android phone Encrypted short message encoding scheme, it is ensured that add Close note can be correctly decoded, and does not produces other influences to note.
Encrypted short message is of many uses, and form is changeable, it can be made to be applied not only to transmit encryption letter by suitably modified Breath, and can be used in completing some management operations in coded communication, such as note hair fastener, mobile phone report for work, remotely control etc..This The Encrypted short message encoding scheme that literary composition proposes operates mainly in application layer and ccf layer.
Content of the invention
It is an object of the invention to propose a kind of Encrypted short message coding method based on Android.This short message encoding scheme Compatible with Android primary short message receiving-transmitting flow process, and ensure not produce impact to normal short message transmitting-receiving.
The technical scheme is that
A kind of Encrypted short message coding method based on Android, the steps include:
1) communication terminal A is encrypted as ciphertext to short message content to be encrypted in Encrypted short message application;Then use ISO8859-1 coded system carries out single byte coding to this ciphertext, and adds marking head in note, identifies this note for encryption Note;
2) coded format in PDU is set to 8bit coding by communication terminal A, then uses PDU pattern by this short message sending To recipient, i.e. communication terminal B;
3) after communication terminal B receives this note, according to the coded system of this note, use PDU pattern to receive this note and obtain To the ciphertext of this note, then this communication terminal B remove the marking head of this note and the ciphertext to this note decipher after obtain short Letter content is in plain text.
Further, step 1) in, communication terminal A sends short message content to be encrypted to the safe TF of communication terminal A Card encryption is ciphertext;Step 3) in, the ciphertext transmission of communication terminal this note of B is decrypted to communication terminal B safe TF card To in plain text.
Further, communication terminal A and communication terminal B is each other by authentication before coded communication, obtains the other side Certificate, for encryption and decryption note to be sent.
Further, step 2) in, after the Framework layer of communication terminal A receives this note, according to the mark of this note Coded format in PDU if Encrypted short message, is then set to 8bit coding, then uses by head, it may be judged whether be Encrypted short message PDU pattern by this short message sending to recipient, i.e. communication terminal B.
Further, step 3) in, communication terminal B use PDU pattern to receive this note at Framework layer to obtain this short The ciphertext of letter.
Further, step 2) in, this short message sending to the method for recipient is by employing PDU pattern: according to arrange The note that application layer transmission comes is assembled into PDU string, the i.e. ciphertext of this note by 8bit coded system, is then transmitted directly to Recipient.
The main contents of the present invention include:
1. the impact on Encrypted short message for all kinds of short message encodings
Android short message encoding mode mainly has ISO8859-1, GB2312, BIG5, GBK, Unicode, UTF etc.. Android short message encoding realizes at Framework layer, for reception and the transmission of note, can Unified coding be mark when transmitting 16 accurate ary codes.And encrypting is to carry out single byte encryption to short message content, some codings can occur format change when processing, Make the content loss of Partial encryption note, cause and cannot correctly decipher.
The short message encoding that the present invention uses is ISO8859-1, belongs to single byte coding, and the character range that multipotency represents is 0-255, coding range is 0x00-0xFF, wherein completely consistent with ASCII character between 0x00-0x7F, therefore backward compatible ASCII character.It is obvious that the character range of ISO8859-1 coded representation is very narrow, for example, cannot represent Chinese character.But due to ISO8859-1 coding range employs all spaces in single byte, transmits and store it in the system supporting ISO8859-1 The byte stream of his any coding all without being abandoned, that is, the byte stream of other any codings is seen as ISO8859-1 coding Wait it is feasible.In other words, ISO8859-1 coding is the container of 8, is used for depositing the information of Encrypted short message, and does not enters Row format changes, and there will not be information loss.
It is demonstrated experimentally that in the middle of multiple short message encodings, the Encrypted short message only using ISO8859-1 coding can proper solution Close, but when premise is to use ISO8859-1 coding, first carries out the coding of first BA SE64 to the note after encryption, be converted to The content of single byte, so during sending reception, transcoding will not encounter problems, and first carries out the solution of first BA SE64 before deciphering Code is deciphered again.But BASE64 coding can make note length, 3 bytes are become 4, adds volume of transmitted data.
The solution of the double problem of 2.Framework layer note length
There is one note of transmission and actually have sent a plurality of phenomenon in Encrypted short message.Reason is due to Android The note that upper strata is transmitted by Framework layer is re-encoded, SMS encryption interface output String after the encryption of Java layer Type, is single byte coded format ISO8859-1 of above-mentioned employing.Framework layer, to this type nonrecognition, can be carried out again Single byte encodes, and as 0x56 changes into 0x05 and 0x06, thus causes note length double.
The present invention proposes a solution to this, it may be assumed that when note is passed to Framework layer by application layer, short at this Letter content headers increases by a mark, is normal short message or Encrypted short message for differentiation.If Encrypted short message, then Framework layer uses PDU pattern transmitting-receiving note, and the coded format arranging in PDU is set to 8bit coding, then by application layer The note that transmission comes is assembled into PDU string, and the short message content (i.e. PDU string) after assembling is exactly the ciphertext after encrypting, and directly transmits.? Receiving terminal, calls close card and judges short message type interface after having resolved PDU (Protocol Data Unit, protocol Data Unit), Distinguish bright close note.For example, for the note starting with 0xFFFF when Framework is processed, 8bit is directly used to encode, No longer do transcoding process.So, note length can keep constant.
Compared with prior art, the positive effect of the present invention is:
The present invention proposes the encoding scheme of a kind of Encrypted short message, by carrying out Android Framework layer suitably Improving, i.e. adding Encrypted short message marking head in application layer, framework layer identifies this mark, it is judged that directly send out for after close note Send, skip re-encoding process (receive and perform inverse process);Thus ensure to receive and dispatch normal short message, again can compatible encryption short Letter, accomplishes that note length does not increases, does not produce any more than cost.
Brief description
Fig. 1 is the Encrypted short message coding method flow chart of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is conducted further description: case study on implementation is premised on technical solution of the present invention Under implement, give detailed embodiment and concrete operating process, but protection scope of the present invention be not limited to following Embodiment.
Application example:
The method flow of the present invention is as it is shown in figure 1, the steps include:
1) before coded communication, from CA, (Certificate Authority counts communication terminal A and communication terminal B Word certificate verification center) the system acquisition certificate of oneself, and each other by authentication, obtain the certificate of the other side, for sending out Send Encrypted short message.
2) communication terminal A sends note to communication terminal B.First, user compiles in the Encrypted short message of communication terminal A is applied The safe TF card encryption that the word collected is transferred into communication terminal A is ciphertext.Ciphertext, as short message content part, enters note and sends out Send flow process.
Ciphertext is used as required ISO8859-1 mode and carries out single byte coding, adds marking head, instruction for note simultaneously Which is Encrypted short message.After Framework layer receives note, identification marking head, learn and which is Encrypted short message, by the coding in PDU Form is set to 8bit coding, no longer carries out transcoding process to it.System is by short message sending.
3) after communication terminal B receives note, resolve PDU at Framework layer, encode according to 8bit according to short message encoding head Process, no longer do other transcodings.The ciphertext obtaining gives upper layer application, removes marking head and after decoding deciphering, will in plain text It is shown to user.Note reaches Framework layer and is PDU string, and PDU string parsing extracts short message content after finishing and passes to answer Process with layer.When parsing, check that coded system encodes if 8bit, then direct take out content gives application layer, no Need to do other transcodings.
In sum, the invention discloses and be applicable to a kind of Android short message encoding scheme of Encrypted short message.
Description of the invention is given for example with for the sake of describing, and is not exhaustively or by the present invention It is limited to disclosed form.Obviously, those of ordinary skill in the art can carry out various change and change to the example of the present invention Shape is without deviating from the spirit and principles in the present invention.Selecting and describing embodiment is in order to the principle of the present invention and reality are more preferably described Application, and make those of ordinary skill in the art it will be appreciated that the present invention thus design be suitable to repairing with various of special-purpose The various embodiments changing.

Claims (6)

1. the Encrypted short message coding method based on Android, the steps include:
1) communication terminal A is encrypted as ciphertext to short message content to be encrypted in Encrypted short message application;Then ISO8859-1 is used to compile Code mode carries out single byte coding to this ciphertext, and adds marking head in note, and identifying this note is Encrypted short message;
2) coded format in PDU is set to 8bit coding by communication terminal A, and then this short message sending is connect by employing PDU pattern Debit, i.e. communication terminal B;
3) after communication terminal B receives this note, according to the coded system of this note, use PDU pattern to receive this note and be somebody's turn to do The ciphertext of note, then this communication terminal B removes the marking head of this note and obtains in note after the ciphertext deciphering of this note Hold in plain text.
2. the method for claim 1, it is characterised in that step 1) in, short message content to be encrypted is sent out by communication terminal A The safe TF card encryption delivering to communication terminal A is ciphertext;Step 3) in, the ciphertext of communication terminal this note of B sends to communication eventually End B safe TF card is decrypted and obtains in plain text.
3. the method for claim 1, it is characterised in that communication terminal A and communication terminal B is mutual before coded communication By authentication, obtain the certificate of the other side, for the note that encryption and decryption is to be sent.
4. the method for claim 1, it is characterised in that step 2) in, the Framework layer of communication terminal A receives this After note, according to the marking head of this note, it may be judged whether be Encrypted short message, if Encrypted short message, then by the coding lattice in PDU Formula is set to 8bit coding, then uses PDU pattern by this short message sending to recipient, i.e. communication terminal B.
5. the method for claim 1, it is characterised in that step 3) in, communication terminal B uses PDU at Framework layer Pattern receives the ciphertext that this note obtains this note.
6. the method for claim 1, it is characterised in that step 2) in, use PDU pattern by this short message sending to reception The method of side is: according to the 8bit coded system arranging, the note that application layer transmission comes being assembled into PDU string, i.e. this note is close Literary composition, is then transmitted directly to recipient.
CN201610347807.1A 2016-05-24 2016-05-24 A kind of Encrypted short message coding method based on Android Pending CN106102025A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610347807.1A CN106102025A (en) 2016-05-24 2016-05-24 A kind of Encrypted short message coding method based on Android

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610347807.1A CN106102025A (en) 2016-05-24 2016-05-24 A kind of Encrypted short message coding method based on Android

Publications (1)

Publication Number Publication Date
CN106102025A true CN106102025A (en) 2016-11-09

Family

ID=57229285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610347807.1A Pending CN106102025A (en) 2016-05-24 2016-05-24 A kind of Encrypted short message coding method based on Android

Country Status (1)

Country Link
CN (1) CN106102025A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018086333A1 (en) * 2016-11-11 2018-05-17 华为技术有限公司 Encryption and decryption method and device
CN108307332A (en) * 2018-01-23 2018-07-20 武汉虹旭信息技术有限责任公司 Secure short message communication system based on Android platform and its method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104844A (en) * 2009-12-16 2011-06-22 北京邮电大学 Mobile phone encrypted short message structure and method for transmitting and receiving mobile phone encrypted short message by applying same
CN102970659A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Method for encryption transmission of short message
CN104202736A (en) * 2014-08-26 2014-12-10 东南大学常州研究院 Mobile terminal short message end-to-end encryption method oriented to Android system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102104844A (en) * 2009-12-16 2011-06-22 北京邮电大学 Mobile phone encrypted short message structure and method for transmitting and receiving mobile phone encrypted short message by applying same
CN102970659A (en) * 2012-11-12 2013-03-13 广东欧珀移动通信有限公司 Method for encryption transmission of short message
CN104202736A (en) * 2014-08-26 2014-12-10 东南大学常州研究院 Mobile terminal short message end-to-end encryption method oriented to Android system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金易琛: "移动终端短信安全传输系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018086333A1 (en) * 2016-11-11 2018-05-17 华为技术有限公司 Encryption and decryption method and device
CN108307332A (en) * 2018-01-23 2018-07-20 武汉虹旭信息技术有限责任公司 Secure short message communication system based on Android platform and its method

Similar Documents

Publication Publication Date Title
CN105430640B (en) A kind of SMS encryption authentication method, terminal and system
UA100939C2 (en) Method and apparatus for transmission a message through a random access control channel in a wireless communication system
CN1988441A (en) Data safety transmission method
CN102761557B (en) A kind of terminal device authentication method and device
CN103430478A (en) Method and apparatus for encrypting short data in wireless communication system
CN104640091A (en) Method for encryption communication of short message of mobile phone
CN101741823A (en) Cross-validation safety communication method and system
CN111225370B (en) Profile generation method based on eUICC, electronic device and computer-readable storage medium
CN103117862A (en) Method for using X.509 digital certificate of openssl for verifying Java certificate
CN1649295A (en) Device and its method for end-to-end enciphering and deenciphering in clony system
CN106102025A (en) A kind of Encrypted short message coding method based on Android
CN102624892B (en) A kind of method preventing plug-in client simulation HTTP request
CN106789845A (en) A kind of method of network data security transmission
CN102869009A (en) Communication encryption application method and communication system
CN104469757B (en) Safe login method
CN105262759A (en) Method and system for encrypted communication
CN102833243B (en) A kind of communication means utilizing finger print information
CN113517982B (en) Password generation method, password execution method and terminal
CN107644168A (en) A kind of method of information extraction, terminal and computer-readable recording medium
CN101998309B (en) Method, system and equipment for transmitting data short message
CN104243141A (en) Information segmented encryption communication method
CN101162995B (en) Communication system and communication method of chaos safety information internet transmission
CN108174344A (en) GIS location informations transmission encryption method and device in a kind of cluster communication
CN103731654A (en) Information embedding system and information extracting system using 2D/3D videos
CN111064560B (en) Data encryption transmission method and device, terminal and data encryption transmission 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161109

WD01 Invention patent application deemed withdrawn after publication