CN103108322B - A kind of method of data processing method and safety encipher, deciphering and device thereof - Google Patents

A kind of method of data processing method and safety encipher, deciphering and device thereof Download PDF

Info

Publication number
CN103108322B
CN103108322B CN201110362169.8A CN201110362169A CN103108322B CN 103108322 B CN103108322 B CN 103108322B CN 201110362169 A CN201110362169 A CN 201110362169A CN 103108322 B CN103108322 B CN 103108322B
Authority
CN
China
Prior art keywords
data
processing module
data processing
mobile phone
encrypted
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
CN201110362169.8A
Other languages
Chinese (zh)
Other versions
CN103108322A (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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201110362169.8A priority Critical patent/CN103108322B/en
Publication of CN103108322A publication Critical patent/CN103108322A/en
Application granted granted Critical
Publication of CN103108322B publication Critical patent/CN103108322B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention provides a kind of data in mobile phone processing method, mobile phone hardware safety encipher, the method for deciphering and device thereof.The present invention has carried out the communication with SIM card by using the general upper strata API of mobile phone operating system, and the hardware certificate realizing cell phone software is deposited and encryption.By the present invention, as long as user can realize the secure hardware encryption of cell phone software by common client software and corresponding SIM card, do not need to use custom-made mobile phone.

Description

A kind of method of data processing method and safety encipher, deciphering and device thereof
Technical field
The invention belongs to data processing field, relate to a kind of data processing method and safety encipher, the method for deciphering and device thereof, the method for a kind of data in mobile phone processing method of special design, mobile phone hardware safety encipher, deciphering and device thereof.
Background technology
In recent years in Mobile business, the field development such as mobile payment are swift and violent, because this market, field is huge, the user base number holding mobile phone is huge, especially at home, after the granting that Third-party payment is taken pictures, Mobile banking and far and near end pay, a few years from now on will become the flashpoint of e-commerce field development, also will become businessman, the hotly contested spot of operator and bank.In order to the arrival in this moment, telecom operators, Unionpay, Third-party payment manufacturer has done technological reserve in this field, is also proposed different products, but mobile payment field the most important thing is fail safe, who solves fail safe, and who will become the bellwether in this field.The product of present stage mainly contains, and some banks have been come by mobile phone client software, and safety is also realized by software, and this just exists some potential safety hazards, Unionpay is at present by SD card (SecureDigitalMemoryCard, safe digital card) realize, have modified some mobile phone operating system bottoms to reach and encrypt to realize hardware security with the communication of SD card, the program is owing to achieving hardware encipher, certificate leaves in hardware, reach the object solving fail safe, but bring a problem, owing to needing the bottom OS (OperatingSystem revising mobile phone, operating system) carry out realization, need mobile phone brush machine or customization special-purpose terminal again, impact is caused to follow-up popularization, number of users development can become bottleneck.
Summary of the invention
In view of above background, the present invention uses mobile phone operating system general upper strata API (ApplicationProgrammingInterface, application programming interface) come and SIM card (SubscriberIdentityModule, user identification module) communication, and the hardware certificate realizing cell phone software is deposited and encryption.By the present invention, as long as user can realize the secure hardware encryption of cell phone software by common client software and corresponding SIM card, do not need to use custom-made mobile phone.
Data in mobile phone processing method provided by the present invention, is characterized in that, comprise the following steps:
Steps A: data processing module obtains the data that mobile phone application produces;
Step B: the data that data processing module process obtains;
Step C: the data after process send and are stored in SIM card by data processing module.
Preferably, the data that data processing module process obtains, comprise the following steps:
Step B1-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B1-2: obtained data are divided into the multistage being not more than 14 bytes by data processing module;
Step B1-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B1-4: each data segment in step B1-2 and difference number are set to the form of phone book records by data processing module.
Preferably, the data that data processing module process obtains, comprise the following steps:
Step B2-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B2-2: obtained data are divided into the multistage being not more than 137 bytes by data processing module;
Step B2-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B2-4: each data segment in step B2-2 and difference number are set to the form of note record by data processing module.
Present invention also offers a kind of method of mobile phone hardware safety encipher, comprise the following steps:
Step S401: user operation mobile phone application, described application program of mobile phone and data processing module connect;
Step S402: application program of mobile phone sends be-encrypted data to described data processing module, and data processing module processes described be-encrypted data;
Step S403: the data after encryption send and are stored in SIM card by data processing module.
Preferably, the method for mobile phone hardware safety encipher of the present invention, in step S402, data processing module processes be-encrypted data, comprises the following steps:
Step S4021-1: data processing module receives be-encrypted data;
Step S4021-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data;
Step S4021-3: described be-encrypted data is divided into the multistage being not more than 14 bytes by data processing module;
Step S4021-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4021-5: every section of be-encrypted data and difference number are set to the form of phone book records by data processing module.
Preferably, the method for mobile phone hardware safety encipher of the present invention, in step S402, data processing module processes be-encrypted data, comprises the following steps:
Step S4022-1: data processing module receives be-encrypted data;
Step S4022-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data;
Step S4022-3: described be-encrypted data is divided into the multistage being not more than 137 bytes by data processing module;
Step S4022-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4022-5: every section of be-encrypted data and difference number are set to the form of note record by data processing module.
Preferably, the method for mobile phone hardware safety encipher of the present invention, in step S4021-5, the form of phone book records, is specially:
Front 14 bytes store be-encrypted data sections; Rear 14 bytes store data segment, length, difference number, random lot, the total number of records and current record number.
Due to SIM card phone book records GSM (GlobalSystemofMobilecommunication, global system for mobile communications) only have 28 bytes in standard, 14 bytes are address list name above, rear 14 bytes are phones, and rear 14 bytes can only store the numeral of 1-9, byte mobile phone operating system not within the scope of this thinks forbidden character, cannot be deposited into telephone directory.
For 3G (3rd-generation, G mobile communication) USIM (UniversalSubscriberIdentityModule, Global Subscriber identification card) card disposition, because 3G have employed ADF (ApplicationDedicatedFile, application dedicated file) telephone directory store, telephony recording can store mail, the information such as group, but the most basic storage content records consistent with the ADN of GSM, encryption method of the present invention just uses basic AND (AbbreviatedDialingNumbers, condense dial number) record store as data, so encryption method of the present invention is applicable to the usim card process of 3G equally.
Above-mentioned data segment, length, difference number, random lot, the total length of the total number of records and current record number is less than or equal to 14 bytes.
Preferably, the method for mobile phone hardware safety encipher of the present invention, in step S1022-5, the form of note record, is specially:
Front 36 bytes are used for store status position, difference number, flag bit, TP-OA (TP-Originating-Address, send address), TP-PID (TP-Protocol-Identifier, agreement indicates pays) and TP-DCS (TP-Data-Coding-Scheme, data encoding format); Three bytes for storing batch number, note sum and current note index; Last 137 bytes are for storing be-encrypted data section.
The SIM card of GSM and the usim card of 3G, the file layout for note record is:
Mode bit, sms center, flag bit, TP-OA, TP-PID, TP-DCS take 36 bytes altogether; Short message content accounts for 140 bytes;
Therefore, encryption method of the present invention, when storing be-encrypted data section with note form, with front 36 bytes store mode bits, distinguishes number, flag bit, TP-OA, TP-PID and TP-DCS; Batch number is stored respectively again, note sum and current note index by three bytes; Finally use 137 bytes store be-encrypted data sections.
Preferably, the method of mobile phone hardware safety encipher of the present invention, step S103: the data after encryption send and are stored in SIM card by data processing module, be specially: the data after encryption, by mobile phone operating system upper strata API, are stored in the data storage of SIM card with the form of the form of telephone directory or note by data processing module.
Present invention also offers a kind of method of mobile phone hardware secure decryption, comprise the following steps:
Step S1001: user operation mobile phone application, application program of mobile phone and data processing module connect;
Step S1002: application program of mobile phone sends the request of reading enciphered data to data processing module, and data processing module reads enciphered data according to read requests and deciphers from SIM card;
Step S1003: data processing module sends the data after deciphering to application program of mobile phone.
Preferably, the method for mobile phone hardware secure decryption of the present invention, in step S1002, data processing module reads enciphered data according to read requests and deciphers from SIM card, comprises the following steps:
Step S10021-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10021-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10021-3: data processing module extracts the data segment, length of the data read from SIM card, random lot, the total number of records, current record number, and enciphered data section;
Step S10021-4: data processing module according to above-mentioned data segment, length, random lot, the total number of records, and enciphered data section is combined as complete data by current record number.
Preferably, the method for mobile phone hardware secure decryption of the present invention, in step S1002, data processing module reads enciphered data according to read requests and deciphers from SIM card, comprises the following steps:
Step S10022-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10022-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10022-3: data processing module extracts the storage batch number of the data read from SIM card, note sum, current note index, and enciphered data section;
Step S10022-4: data processing module is according to above-mentioned storage batch number, and enciphered data section is combined as complete data by note sum and current note index.
Present invention also offers the device of a kind of mobile phone hardware safety encipher, deciphering, comprising: data processing module;
Data processing module, for the process of data in mobile phone;
Data processing module, comprising: communication module, encrypting module and deciphering module;
Communication module, is connected with deciphering module with encrypting module, and is provided with and the port that mobile phone is applied and SIM cards of mobile phones is connected, and applies and communication between SIM cards of mobile phones for data processing module and mobile phone;
Encrypting module, is connected with communication module, for the encryption of data in mobile phone;
Deciphering module, is connected with communication module, for the deciphering of mobile phone cipher data.
Beneficial effect of the present invention is, the present invention uses the general upper strata API of mobile phone operating system to carry out the communication with SIM card, and the hardware certificate realizing cell phone software is deposited and encryption.By the present invention, as long as user can realize the secure hardware encryption of cell phone software by common client software and corresponding SIM card, do not need to use custom-made mobile phone.
Accompanying drawing explanation
Fig. 1 is the flow chart of the data in mobile phone processing method of first embodiment of the invention;
Fig. 2 is the flow chart of the data in mobile phone processing method of second embodiment of the invention;
Fig. 3 is the flow chart of the data processing module deal with data of third embodiment of the invention;
Fig. 4 is the flow chart of the data processing module deal with data of fourth embodiment of the invention;
Fig. 5 is the flow chart of the data encryption process of fifth embodiment of the invention;
Fig. 6 is the flow chart of the data encryption process of sixth embodiment of the invention;
Fig. 7 is the flow chart of the method for the mobile phone hardware secure decryption of seventh embodiment of the invention;
Fig. 8 is the flow chart of the decrypt encrypted data process of eighth embodiment of the invention;
Fig. 9 is the flow chart of the decrypt encrypted data process of ninth embodiment of the invention;
Figure 10 is the structural representation of the mobile phone hardware safety encipher of tenth embodiment of the invention, the device of deciphering.
Embodiment
In order to make the object of Internet of things system of the present invention and its implementation, technical scheme and advantage clearly understand, below specifically in conjunction with the drawings and the specific embodiments, Internet of things system of the present invention and its implementation are further elaborated.
Fig. 1 is the flow chart of the data in mobile phone processing method of first embodiment of the invention, and as shown in Figure 1, data in mobile phone processing method of the present invention, comprises the following steps:
Steps A: data processing module obtains the data that mobile phone application produces;
Step B: the data that data processing module process obtains;
Step C: the data after process send and are stored in SIM card by data processing module.
Fig. 2 is the flow chart of the data in mobile phone processing method of second embodiment of the invention, and as shown in Figure 2, the data that data processing module process obtains, comprise the following steps:
Step B1-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B1-2: obtained data are divided into the multistage being not more than 14 bytes by data processing module;
Step B1-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B1-4: each data segment in step B1-2 and difference number are set to the form of phone book records by data processing module.
Fig. 3 is the flow chart of the data processing module deal with data of third embodiment of the invention, and as shown in Figure 3, the data that data processing module process obtains, comprise the following steps:
Step B2-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B2-2: obtained data are divided into the multistage being not more than 137 bytes by data processing module;
Step B2-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B2-4: each data segment in step B2-2 and difference number are set to the form of note record by data processing module.
Fig. 4 is the flow chart of the method for the mobile phone hardware safety encipher of fourth embodiment of the invention, and as shown in Figure 4, the method for mobile phone hardware safety encipher of the present invention, comprises the following steps:
Step S401: user operation mobile phone application, described application program of mobile phone and data processing module connect;
Step S402: application program of mobile phone sends be-encrypted data to described data processing module, and data processing module processes described be-encrypted data;
Step S403: the data after encryption send and are stored in SIM card by data processing module.
Preferably, as a kind of embodiment, the present embodiment adopts with the form storage encryption data of the SIM phone book records of GSM, and as shown in Figure 5, in above-mentioned steps S402, data processing module processes be-encrypted data, comprises the following steps:
Step S4021-1: data processing module receives be-encrypted data;
Step S4021-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data;
Step S4021-3: described be-encrypted data is divided into the multistage being not more than 14 bytes by data processing module according to the length of be-encrypted data;
Step S4021-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4021-5: every section of be-encrypted data and difference number are set to the form of phone book records by data processing module.
Owing to only having 28 bytes in SIM card phone book records GSM standard, 14 bytes are address list name above, and rear 14 bytes are phones, and rear 14 bytes can only store the numeral of 1-9, byte mobile phone operating system not within the scope of this thinks forbidden character, cannot be deposited into telephone directory.Such as, input data are String, by being divided into according to being not more than 14 bytes after character conversion, inSubdata_1, inSubdata_2 ... inSubdata_n, then can define telephone number is that special number is for special application, as defined number 999999 for certain bank's mobile-phone payment certificate signature, according to above according to the Field Count being not more than 14 byte process, definition telephony recording is as follows:
InSubdata_1+ length+999999+ random lot+total number of records n+ current record number 1,
InSubdata_2+ length+999999+ random lot+total number of records n+ current record number 2,
……
InSubdata_n+ length+999999+ random lot+total number of records n+ current record number n.
Preferably, as a kind of embodiment, the present embodiment adopts with the form storage encryption data of note record, and as shown in Figure 6, in above-mentioned steps S402, data processing module processes be-encrypted data, comprises the following steps:
Step S4022-1: data processing module receives be-encrypted data;
Step S4022-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data;
Step S4022-3: described be-encrypted data is divided into the multistage being not more than 137 bytes by data processing module according to the length of be-encrypted data;
Step S4022-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4022-5: every section of be-encrypted data and difference number are set to the form of note record by data processing module.
The SIM card of GSM and the usim card of 3G, the file layout for note record is:
Mode bit, sms center, flag bit, TP-OA, TP-PID, TP-DCS take 36 bytes altogether; Short message content accounts for 140 bytes;
Therefore, encryption method of the present invention, when storing be-encrypted data section with note form, with front 36 bytes store mode bits, distinguishes number, flag bit, TP-OA, TP-PID and TP-DCS; Batch number is stored respectively again, note sum and current note index by three bytes; Finally use 137 bytes store be-encrypted data.Such as, input data are String, by being divided into n data segment: inSubdata_1 according to being not more than 137 bytes after character conversion, inSubdata_2, inSubdata_n, then can define short message centre number be special number for special application, if definition number 8613999999999 is for certain bank's mobile-phone payment certificate signature, definition note record is as follows:
Mode bit+8613999999999+ flag bit+TP-OA+TP-PID+TP-DCS+ stores batch number+note sum n+ current note index 1+inSubdata_1;
Mode bit+8613999999999+ flag bit+TP-OA+TP-PID+TP-DCS+ stores batch number+note sum n+ current note index 2+inSubdata_2;
……
Mode bit+8613999999999+ flag bit+TP-OA+TP-PID+TP-DCS+ stores batch number+note sum n+ current note index n+inSubdata_n.
Fig. 7 is the flow chart of the method for the mobile phone hardware secure decryption of seventh embodiment of the invention, and as shown in Figure 7, the method for mobile phone hardware secure decryption of the present invention, comprises the following steps:
Step S1001: user operation mobile phone application, application program of mobile phone and data processing module connect;
Step S1002: application program of mobile phone sends the request of reading enciphered data to data processing module, and data processing module reads enciphered data according to read requests and deciphers from SIM card;
Step S1003: data processing module sends the data after deciphering to application program of mobile phone.
Preferably, as a kind of embodiment, the present embodiment is for phone book records form enciphered data, and as shown in Figure 8, in above-mentioned steps S1002, data processing module reads enciphered data according to read requests and deciphers from SIM card, comprises the following steps:
Step S10021-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10021-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10021-3: data processing module extracts the data segment, length of the data read from SIM card, random lot, the total number of records, current record number, and enciphered data section;
Step S10021-4: data processing module according to above-mentioned data segment, length, random lot, the total number of records, and enciphered data section is combined as complete data by current record number.
Preferably, as a kind of embodiment, the present embodiment is for note record form enciphered data, and as shown in Figure 9, in above-mentioned steps S1002, data processing module reads enciphered data according to read requests and deciphers from SIM card, comprises the following steps:
Step S10022-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10022-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10022-3: data processing module extracts the storage batch number of the data read from SIM card, note sum, current note index, and enciphered data section;
Step S10022-4: data processing module is according to above-mentioned storage batch number, and enciphered data section is combined as complete data by note sum and current note index.
Figure 10 is the structural representation of the mobile phone hardware safety encipher of tenth embodiment of the invention, the device of deciphering, and as shown in Figure 10, the device of mobile phone hardware safety encipher of the present invention, deciphering, comprising: data processing module;
Data processing module, for the process of data in mobile phone;
Data processing module, comprising: communication module, encrypting module and deciphering module;
Communication module, is connected with deciphering module with encrypting module, and is provided with and the port that mobile phone is applied and SIM cards of mobile phones is connected, and applies and communication between SIM cards of mobile phones for data processing module and mobile phone;
Encrypting module, is connected with communication module, for the encryption of data in mobile phone;
Deciphering module, is connected with communication module, for the deciphering of mobile phone cipher data.
As a kind of embodiment, by SQL TestSimCard () in communication module, the communication connection between the device of the encryption of testing mobile phone hardware security, deciphering and Sim card; Obtained the data processed from Sim card by SQL GetSignedDataFromSIM (), such as, definition GetSignedDataFromSIM (StringinData, byte [] outData, intstatus), wherein inData=" businessman, Taobao; tealeaves, order number: 1110-1; The amount of money: 50.00 "; The encryption of data is undertaken by 3-DES or RSA scheduling algorithm; OTP (One-TimePassword, disposal password/dynamic password) is generated by SQL GenerteOTPPassword ().
The method of mobile phone hardware safety encipher provided by the present invention, deciphering and device thereof, use the general upper strata API of mobile phone operating system to carry out the communication with SIM card, and the hardware certificate realizing cell phone software is deposited and encryption.By the present invention, as long as user can realize the secure hardware encryption of cell phone software by common client software and corresponding SIM card, do not need to use custom-made mobile phone.
Finally it should be noted that obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (7)

1. a data in mobile phone processing method, is characterized in that, comprises the following steps:
Steps A: data processing module obtains the data that mobile phone application produces;
Step B: the data that data processing module process obtains;
Step C: the data after process send and are stored in SIM card by data processing module;
The data that described data processing module process obtains, comprise following " step B1-1, step B1-2, step B1-3 and step B1-4 " or " step B2-1, step B2-2, step B2-3 and step B2-4 " step:
Step B1-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B1-2: obtained data are divided into the multistage being not more than 14 bytes by data processing module;
Step B1-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B1-4: each data segment in step B1-2 and difference number are set to the form of phone book records by data processing module;
Step B2-1: data processing module calculates the data length obtained, determines the mobile phone application type of obtained data;
Step B2-2: obtained data are divided into the multistage being not more than 137 bytes by data processing module;
Step B2-3: data processing module is according to the mobile phone application type setting area alias code of obtained data;
Step B2-4: each data segment in step B2-2 and difference number are set to the form of note record by data processing module.
2. utilize a method for the mobile phone hardware safety encipher of the data in mobile phone processing method described in claim 1, it is characterized in that, comprise the following steps:
Step S401: user operation mobile phone application, program and the data processing module of described mobile phone application connect;
Step S402: described application program of mobile phone sends be-encrypted data to described data processing module, and described data processing module processes described be-encrypted data;
Step S403: the data after encryption send and are stored in SIM card by described data processing module;
In described step S402, described data processing module processes described be-encrypted data, comprises following " step S4021-1, step S4021-2, step S4021-3, step S4021-4 and step S4021-5 " or " step S4022-1, step S4022-2, step S4022-3, step S4022-4 and step S4022-5 " step:
Step S4021-1: data processing module receives be-encrypted data;
Step S4021-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data; Step S4021-3: described be-encrypted data is divided into the multistage being not more than 14 bytes by data processing module;
Step S4021-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4021-5: every section of be-encrypted data and difference number are set to the form of phone book records by data processing module;
Step S4022-1: data processing module receives be-encrypted data;
Step S4022-2: data processing module calculates be-encrypted data length, determines the application type of be-encrypted data;
Step S4022-3: described be-encrypted data is divided into the multistage being not more than 137 bytes by data processing module;
Step S4022-4: data processing module is according to the application type setting area alias code of be-encrypted data;
Step S4022-5: every section of be-encrypted data and difference number are set to the form of note record by data processing module.
3. the method for mobile phone hardware safety encipher according to claim 2, is characterized in that, in described step S4021-5, the form of described phone book records, is specially:
Front 14 bytes store be-encrypted data sections; Rear 14 bytes store data segment, length, difference number, random lot, the total number of records and current record number;
Described data segment, length, difference number, random lot, the total number of records, the total length of current record number is less than or equal to 14 bytes.
4. the method for mobile phone hardware safety encipher according to claim 2, is characterized in that, in described step S4022-5, the form of described note record, is specially:
Front 36 bytes are used for store status position, difference number, flag bit, TP-OA, TP-PID and TP-DCS; Three bytes for storing batch number, note sum and current note index; Last 137 bytes are for storing be-encrypted data section.
5. the method for mobile phone hardware safety encipher according to claim 2, it is characterized in that, described step S403: the data after encryption send and are stored in SIM card by described data processing module, be specially: the data after described encryption, by mobile phone operating system upper strata API, are stored in the data storage of SIM card with the form of the form of telephone directory or note by data processing module.
6. a method for mobile phone hardware secure decryption, is applicable to the deciphering after being encrypted the method for the mobile phone hardware safety encipher used described in claim 3 or 4, it is characterized in that, comprise the following steps:
Step S1001: user operation mobile phone application, program and the data processing module of described mobile phone application connect;
Step S1002: described application program of mobile phone sends the request extremely described data processing module reading enciphered data, and described data processing module reads enciphered data according to described read requests and deciphers from SIM card;
Step S1003: described data processing module sends the data after deciphering to application program of mobile phone;
In described step S1002, described data processing module reads enciphered data according to described read requests and deciphers from SIM card, comprises following " step S10021-1, step S10021-2, step S10021-3 and step S10021-4 " or " step S10022-1, step S10022-2, step S10022-3 and step S10022-4 " step:
Step S10021-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10021-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10021-3: data processing module extracts the data segment, length of the data read from SIM card, random lot, the total number of records, current record number, and enciphered data section;
Step S10021-4: data processing module according to described data segment, length, random lot, the total number of records, and enciphered data section is combined as complete data by current record number;
Step S10022-1: data processing module is according to mobile phone application type determination corresponding data difference number;
Step S10022-2: data processing module reads the data of described data field alias code correspondence from SIM card;
Step S10022-3: data processing module extracts the storage batch number of the data read from SIM card, note sum, current note index, and enciphered data section;
Step S10022-4: data processing module is according to above-mentioned storage batch number, and enciphered data section is combined as complete data by note sum and current note index.
7. a device for mobile phone hardware safety encipher, deciphering, is characterized in that, comprising: data processing module;
Described data processing module, for data in mobile phone process;
Described data processing module, comprising: communication module, encrypting module and deciphering module;
Described communication module, is connected with deciphering module with described encrypting module, and is provided with and the port that mobile phone is applied and SIM cards of mobile phones is connected, and applies and communication between SIM cards of mobile phones for data processing module and mobile phone;
Described encrypting module, is connected with described communication module, requires that the function of the data processing module in the method for the mobile phone hardware safety encipher of 3 or 4 is to the encryption of data in mobile phone for enforcement of rights;
Described deciphering module, is connected with described communication module, requires that the function of the data processing module in the method for mobile phone hardware secure decryption in 6 is to the deciphering of mobile phone enciphered data for enforcement of rights.
CN201110362169.8A 2011-11-15 2011-11-15 A kind of method of data processing method and safety encipher, deciphering and device thereof Expired - Fee Related CN103108322B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110362169.8A CN103108322B (en) 2011-11-15 2011-11-15 A kind of method of data processing method and safety encipher, deciphering and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110362169.8A CN103108322B (en) 2011-11-15 2011-11-15 A kind of method of data processing method and safety encipher, deciphering and device thereof

Publications (2)

Publication Number Publication Date
CN103108322A CN103108322A (en) 2013-05-15
CN103108322B true CN103108322B (en) 2016-03-02

Family

ID=48315826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110362169.8A Expired - Fee Related CN103108322B (en) 2011-11-15 2011-11-15 A kind of method of data processing method and safety encipher, deciphering and device thereof

Country Status (1)

Country Link
CN (1) CN103108322B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2661910C1 (en) * 2013-12-02 2018-07-23 Мастеркард Интернэшнл Инкорпорейтед Method and system for protected communication of remote notification service messages to mobile devices without protected elements
CN106707978B (en) * 2015-11-13 2021-10-22 北京奇虎科技有限公司 Method for transferring intelligent household control right through address book and address book

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1538855A2 (en) * 2003-12-01 2005-06-08 Sony Ericsson Mobile Communications Japan, Inc. Method of preventing access to a subscriber identity module in a mobile communication terminal
CN101355740A (en) * 2007-07-27 2009-01-28 佛山市顺德区顺达电脑厂有限公司 Method and system for protecting smart card data
CN101616415A (en) * 2006-09-13 2009-12-30 北京握奇数据系统有限公司 Information directly interactive method for mobile communication subscriber identification recognition card and support equipment thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1538855A2 (en) * 2003-12-01 2005-06-08 Sony Ericsson Mobile Communications Japan, Inc. Method of preventing access to a subscriber identity module in a mobile communication terminal
CN101616415A (en) * 2006-09-13 2009-12-30 北京握奇数据系统有限公司 Information directly interactive method for mobile communication subscriber identification recognition card and support equipment thereof
CN101355740A (en) * 2007-07-27 2009-01-28 佛山市顺德区顺达电脑厂有限公司 Method and system for protecting smart card data

Also Published As

Publication number Publication date
CN103108322A (en) 2013-05-15

Similar Documents

Publication Publication Date Title
KR101567902B1 (en) Multi-issuer secure element partition architecture for nfc enabled devices
US9210573B2 (en) Method and apparatus for registering a computing device with a service provider
KR102477453B1 (en) Transaction messaging
CN101662765B (en) Encryption system and method of short message of mobile telephone
CN101394615B (en) Mobile payment terminal and payment method based on PKI technique
CN103079193A (en) Cloud SIM (subscriber identity module) capable of freely downloading network data
CN109039652B (en) Digital certificate generation and application method
CN101329786B (en) Method and system for acquiring bank card magnetic track information or payment application for mobile terminal
CN104573551A (en) File processing method and mobile terminal
WO2013182154A1 (en) Method, system and terminal for encrypting/decrypting application program on communication terminal
CN102867157B (en) Mobile terminal and data guard method
CN102866960A (en) Method for realizing encryption in storage card, decrypting method and device
CN102184499A (en) Account information binding method, financial transaction method and mobile terminal
CN103812649A (en) Method and system for safety access control of machine-card interface, and handset terminal
RU2395930C2 (en) Subsequent realisation of functionality of subscriber identification module in protected module
CN109146468A (en) A kind of backup and restoration methods of the logical card of number
US9426647B2 (en) Method and device for protecting privacy data of mobile terminal user
CN109801069A (en) A method of based on pad pasting card protection digital encryption currency purse data
CN101866411A (en) Security certification and encryption method and system of multi-application noncontact-type CPU card
CN104955029A (en) Address book protection method, address book protection device and communication system
WO2022143727A1 (en) Quantum-safe sim card-based communication system and method, quantum-safe sim card, and key service platform
CN104994498B (en) The method and system that a kind of terminal applies are interacted with mobile phone card application
CN103108322B (en) A kind of method of data processing method and safety encipher, deciphering and device thereof
CN102799540B (en) Utilize method, system and terminal of the user's identification card key to storage card encryption and decryption
CN102118745B (en) Method and device for secure encryption for mobile payment data, and mobile phone

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
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: 20160302

Termination date: 20211115