Embodiment
As shown in Figure 1, be the function unit figure of mobile phone of the present invention.This mobile phone 1 comprises that ciphering unit 11, data read administrative unit 12, formatting unit 13, database 14 and memory 16, and this mobile phone 1 also disposes a mobile phone card 15.
Described ciphering unit 11 is used for obtaining the IMSI of described mobile phone card 15, and (International Mobile SubscriberIdentity: international mobile subscriber identity) encryption parameter of the cryptographic algorithm of supporting as this mobile phone 1 is encrypted the data of this mobile phone 1, and is provided with one and removes password.This releasing password be used for when the IMSI of the employed mobile phone card of this mobile phone with as the IMSI of the mobile phone card of encryption parameter when inconsistent, remove this as the IMSI of encryption parameter encryption to data in this mobile phone 1; This releasing password also is used for the password as this mobile phone of format.This ciphering unit 11 also is used for the IMSI of the password of this setting and this mobile phone card 15 is stored in described database 14.Described cryptographic algorithm can be MD5 algorithm, RSA Algorithm or DES algorithm, after by this scheduling algorithm the data in the described mobile phone 1 being encrypted, when needs read encrypted data in this mobile phone 1, this mobile phone 1 could be opened the encrypted data that need read after encrypted data being decrypted as deciphering parameter by the IMSI that obtains described mobile phone card 15.This place it should be noted that since described mobile phone 1 when dispatching from the factory, some data that comprises in the system is to write data, therefore, described encrypted data only comprises the user is added to data after data in this mobile phone 1 is encrypted after this mobile phone 1 dispatches from the factory.
Described data reads administrative unit 12 and is used in the time need reading the data of described mobile phone 1, and the flow process that reads data in this mobile phone 1 is controlled.
Described formatting unit 13 is used for deleting the data in this mobile phone 1 when described mobile phone 1 receives mobile phone format note, and the setting of this mobile phone 1 is reverted to default setting when dispatching from the factory.
Described database 14 can be a Flash flash memory, and it comprises note mailbox, phone directory, message registration tabulation etc.
Described memory 16 can be a safe digital card, and it can be used for storing the bigger multimedia documents of data such as music, video and picture.
As shown in Figure 2, be the functional block diagram that data reads administrative unit among Fig. 1.This data reads administrative unit 12 and comprises judge module 120, reminding module 121, removes module 122, deciphering module 123 and opening module 124.
Described judge module 120 is used in the time need reading the data of described mobile phone 1, judge in the described database 14 and whether store the releasing password, if store the releasing password, whether the IMSI that this judge module 120 is judged described mobile phone 1 presently used mobile phone card again is consistent with the IMSI of described mobile phone card 15 of storage in the described database 14.
Described deciphering module 123 is used for when the IMSI of described mobile phone 1 presently used mobile phone card is consistent with the IMSI of the mobile phone card 15 of described database 14 storages, the data of having encrypted that described needs read is decrypted as deciphering parameter by the IMSI that obtains described mobile phone card 15, to open corresponding data.
Described reminding module 121 is used for when the IMSI of the described mobile phone card 15 of the IMSI of described mobile phone 1 presently used mobile phone card and 14 storages of described database is inconsistent, the prompting user inputs the releasing password, with the IMSI of this mobile phone card 15 of removing in this database 14 storage encryption to data in this mobile phone 1.
Described judge module 120 is used for also judging that releasing password that the user inputs is whether consistent with the releasing password that described database 14 is preserved.
Described releasing module 122 is used for removing the encryption of the IMSI of the mobile phone card 15 of storage in the described database 14 to data in the described mobile phone 1 when the releasing password of user's input is consistent with the releasing password of described database 14 preservations.After data is encrypted releasing, can arbitrarily open and read the data of storage in this mobile phone 1.
Described opening module 124 is used for not removing password or during the encryption of data, open the data that described needs read in described releasing module 122 successfully being removed described mobile phone 1 when described database 14 stores.
Described reminding module 121 also is used for when the releasing password of the releasing password of user's input and 14 preservations of described database is inconsistent, and the password mistake of prompting user input needs to change correct mobile phone card ability unlatching data.
As shown in Figure 3, be the functional block diagram of formatting unit among Fig. 1.This formatting unit 13 comprises recognition module 130, contrast module 131 and formatting module 132.
Described recognition module 130 is used for when described mobile phone 1 receives note, and the form of this note is carried out identification, judges whether this note is the mobile phone format note of presetting.For example, the formative messaging format of this mobile phone can be set be " * # * # ", wherein " " is the releasing password of described setting, by such setting, when described mobile phone 1 was lost, for preventing the leakage of data, the user can send the SMS of above-mentioned form to this mobile phone 1, to delete the related data in this mobile phone 1, prevent the leakage of data.
Whether when the note that described contrast module 131 is used for receiving when described mobile phone 1 formats note for default mobile phone, it is consistent with the releasing password of storage in the described database 14 to contrast the releasing password that comprises in this mobile phone format note.
Described formatting module 132 is used for the releasing password stored when consistent in releasing password that above-mentioned mobile phone format note comprises and described database 14, delete the data in this mobile phone 1, and the setting of this mobile phone 1 is reverted to default setting when dispatching from the factory.This place it should be noted that, because described mobile phone 1 is when dispatching from the factory, some data that comprises in the system is to write data, can not be deleted, therefore, the data in the described mobile phone of herein deleting 1 only comprises that the user adds the data in this mobile phone 1 to after this mobile phone 1 dispatches from the factory.
As shown in Figure 4, be the flow chart of in the hand-set data leakage prevention method of the present invention hand-set data being encrypted.
The IMSI that step S10, described ciphering unit 11 obtain described this mobile phone 1 employed mobile phone card 15 encrypts the data in the described mobile phone 1 as the encryption parameter of the cryptographic algorithm of described mobile phone 1 support.
Step S11, described ciphering unit 11 are provided with one again and separate IMSI divided by this mobile phone card 15 as the password of encryption parameter to the encryption of data in the described mobile phone 1.
Step S12, described ciphering unit 11 is stored in the releasing password of above-mentioned setting and the IMSI of described mobile phone card 15 in the described database 14.
After by above method the data in the mobile phone 1 being encrypted, when needs read data in this mobile phone 1, after being decrypted encrypted data, the IMSI that this mobile phone 1 obtains described mobile phone card 15 automatically just can open corresponding data, stick into and exercise the time spent if change other mobile phone when this mobile phone 1, the releasing password that then needs to input above-mentioned setting is separated divided by this IMSI could read data in this mobile phone 1 after to the encryption of data normally as encryption parameter.
As shown in Figure 5, be the flow chart of in the hand-set data leakage prevention method of the present invention reading of hand-set data being controlled.
Step S20 chooses the data in the described mobile phone 1 that need read.
Step S21, described judge module 120 judges in the described database 14 whether store the releasing password, if store the releasing password, execution in step S22 then, otherwise, execution in step S28.
Whether the IMSI that step S22, described judge module 120 judge described mobile phone 1 presently used mobile phone card is consistent with the IMSI of described mobile phone card 15 of storage in the described database 14, if consistent, and execution in step S23 then, otherwise execution in step S24.
Step S23, described deciphering module 123 is decrypted the data that described needs read as deciphering parameter by the IMSI that obtains described mobile phone card 15, enters step S28.
Step S24, described reminding module 121 prompting users input the releasing password.
Whether the releasing password that step S26, described judge module 120 judge user input is consistent with the releasing password preserved in the described database 14, if consistent, and execution in step S27 then, otherwise, execution in step S29.
Step S27, described releasing module 122 is separated IMSI divided by the mobile phone card 15 of storage in the database 14 to the encryption of data in the described mobile phone 1, the releasing password and the IMSI of storage in the storehouse 14 if user need clear data, then this releasing module 122 releasing password and IMSI of clearing data and store in the storehouse 14 according to user's request.
Step S28, described opening module 124 is opened the data that need read, process ends.
Step S29, the password mistake of described reminding module 121 prompting user inputs, needing to change correct mobile phone card could the unlatching data.
In above-mentioned steps S26, if judge the releasing password bad of user's input, show that then described mobile phone 1 may be in the situation of losing, under the situation of losing, use this mobile phone 1 if change other mobile phone card, then need to input correct releasing password and remove the data that just can read after the encryption of IMSI that the IMSI of former mobile phone card also is storage in the database 14 in this mobile phone 1 data in this mobile phone 1, if this mobile phone 1 is not changed the mobile phone card, the user then can be by sending mobile phone format note to this mobile phone 1, delete the data in this mobile phone 1, to prevent the leakage of data, this flow process is seen Fig. 6.
As shown in Figure 6, be by receiving mobile phone format note mobile phone to be carried out formative flow chart in the hand-set data leakage prevention method of the present invention.
Step S30, when described mobile phone 1 received note, the form of 130 pairs of these notes of described recognition module carried out identification, judged that whether this note is the mobile phone format note of presetting, if mobile phone format note, execution in step S31 then, otherwise, execution in step S33.
Step S31, whether the releasing password that comprises in the mobile phone format note that 131 contrasts of described contrast module receive is consistent with the releasing password of storage in the described database 14, if consistent, execution in step S32 then, otherwise, execution in step S33.
Step S32, the data in the described mobile phone 1 of described formatting module 132 deletions, and the setting of this mobile phone 1 reverted to default setting when dispatching from the factory, process ends.
Step S33, described mobile phone 1 is stored the note that receives by general note.
Above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.