CN102202297B - Method and device for encrypting mobile terminals - Google Patents

Method and device for encrypting mobile terminals Download PDF

Info

Publication number
CN102202297B
CN102202297B CN201110164380.9A CN201110164380A CN102202297B CN 102202297 B CN102202297 B CN 102202297B CN 201110164380 A CN201110164380 A CN 201110164380A CN 102202297 B CN102202297 B CN 102202297B
Authority
CN
China
Prior art keywords
note
module
password
short message
user
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
CN201110164380.9A
Other languages
Chinese (zh)
Other versions
CN102202297A (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.)
Shenzhen Wuju Technology Co Ltd
Original Assignee
Shenzhen Wuju Technology 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 Shenzhen Wuju Technology Co Ltd filed Critical Shenzhen Wuju Technology Co Ltd
Priority to CN201110164380.9A priority Critical patent/CN102202297B/en
Publication of CN102202297A publication Critical patent/CN102202297A/en
Application granted granted Critical
Publication of CN102202297B publication Critical patent/CN102202297B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention belongs to the technical field of mobile terminals, and particularly relates to a method and device for encrypting the mobile terminals. The method comprises the following steps: step a. setting an encryption attribute value to a user number needs to be encrypted in a mobile terminal address list; step b. judging whether the encryption attribute value is set on a short message sending number or a calling number after the short message is received or the call is finished, if the encryption attribute value is not set on the short message sending number or the calling number, saving the short message content or the calling content in a short message list or calling record, and reminding users that a new short message reaches or a call is performed, and if the encryption attribute value is set on the short message sending number or the calling number, executing the step c; and step c; increasing an encryption bit zone in the short message or the calling attribution, and carrying out encryption processing on the content of the short messages or the calling record, a sender, a sending number or a calling person and the calling number. By utilizing the method and device, the condition that the private information of a user is checked or leaked by others at will is avoided, the information safety of the user is further protected, the humanized requirements of the user is satisfied, and the use experience of the user is improved.

Description

The method and apparatus that a kind of mobile terminal is encrypted
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to the method and apparatus that a kind of mobile terminal is encrypted.
Background technology
Development along with mobile terminal technology; current most of mobile terminal can be set the information security that startup password is protected user; but after entering mobile terminal, other functional module does not but have the function of setting code, cause user's personal information can not obtain finer protection.For example: some are with the information of certain privacy, if wage SMS Tip, good friend's private information, user's communication record and other inconvenience are the information known to other people etc., once mobile phone is to other people use of taking away, be just easy to leak out.In order not reveal these information, existing operation is exactly at mobile terminal, by other people, to be taken away before using first manually to delete the information of these secrets, but the content that is necessary storage for some will cannot be recovered forever, for using, user makes troubles, cannot meet user's hommization demand, affect user's experience.
Summary of the invention
The invention provides the method and apparatus that a kind of mobile terminal is encrypted, be intended to solve the function that there is no setting code in prior art due to the functional module in mobile terminal, make user profile can not obtain the problem of finer protection.
The present invention is achieved in that a kind of method that mobile terminal is encrypted, and comprising:
Step a: the Subscriber Number that needs in mobile terminal addressbook to encrypt is set to cryptographic attributes value, wherein, setting cryptographic attributes value specifically comprises: user inputs word string, by input word string variable packet concatenation, grouping variable is carried out to recurrent nonlinearity functional operation, the word string that output is encrypted, it comprises: by algorithm output by four 32 packet concatenation, form 128 hashed values; Four 32 grouping variablees are carried out to initialization; Filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just; Four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d; Carry out the major cycle of algorithm, the number of times of circulation is the number of 512 message groupings in message, wherein, major cycle has four-wheel, after four-wheel has circulated, by A, B, C, D adds respectively a, b, c, d, then by next grouped data, continue executing arithmetic, last output is A, B, the cascade of C and D, the word string of encrypting;
Step b: receive note or after end of conversation, judge whether this SMS sender number or conversation number have set cryptographic attributes value, if this SMS sender number or conversation number are not set cryptographic attributes value, this short message content or dialog context are kept to message list or message registration, and prompting user has fresh information to arrive or carried out call; If this SMS sender number or conversation number have been set cryptographic attributes value, execution step c;
Step c: in this note or call, increase an encryption indicator position in attribute, and by this note or message registration content, sender and send number or telephone user and conversation number and be encrypted.
Technical scheme of the present invention also comprises: described step b also comprises, short message reading sends number, traversal is searched all address list records, judge and in address list, whether have the record mating with this SMS sender number, if the record not mating with this SMS sender number in address list, short message content is kept to message list, and prompting user has fresh information to arrive; If there is the record mating with this SMS sender number in address list, judge whether this SMS sender number has set cryptographic attributes value.
Technical scheme of the present invention also comprises: described step c also comprises, this Encrypted short message is kept to message list, and points out user to have fresh information to arrive; Wherein, the note after encryption only shows time of reception.
Technical scheme of the present invention also comprises: after described step c, also comprise, enter message list, the note that click need to be checked.
Technical scheme of the present invention also comprises: after described step c, also comprise, read this note attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, eject Password Input frame prompting user and input password; If this note does not have encryption indicator position, short message reading content, sender and transmission number, normally show note.
Technical scheme of the present invention also comprises: after described step c, also comprise, read the password of user's input, and read the cryptographic attributes value of setting in address list, whether the password that judges user's input is consistent with the cryptographic attributes value of setting in address list, if the cryptographic attributes value of setting in the password of user's input and address list is inconsistent, prompting user cipher is incorrect, need re-enter password; If the password of user's input is consistent with the cryptographic attributes value of setting in address list, short message reading content, sender and transmission number, normally show note.
Another technical scheme of the present invention: the device that a kind of mobile terminal is encrypted, comprise note receiver module, note memory module, note is checked module, note acquisition module, setup of attribute module, determined property module and SMS encryption module, described note receiver module is used for receiving note and short message reading sends number, described note memory module is for being kept at message list by all short message contents, described note is checked the note that module need to be checked for entering message list click, described note acquisition module normally shows note for short message reading content, described setup of attribute module is set cryptographic attributes value for the number that mobile terminal addressbook is needed encrypt, wherein, setting cryptographic attributes value specifically comprises: user inputs word string, by input word string variable packet concatenation, grouping variable is carried out to recurrent nonlinearity functional operation, the word string that output is encrypted, it comprises: by algorithm output by four 32 packet concatenation, form 128 hashed values, four 32 grouping variablees are carried out to initialization, filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just, four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d, carry out the major cycle of algorithm, the number of times of circulation is the number of 512 message groupings in message, and wherein, major cycle has four-wheel, after four-wheel has circulated, by A, B, C, D adds respectively a, b, c, d, then by next grouped data, continue executing arithmetic, last output is A, B, the cascade of C and D, the word string of encrypting, described determined property module is used for judging whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, by note memory module storage short message content, if this SMS sender number has been set cryptographic attributes value, by SMS encryption module, process for this SMS encryption, described SMS encryption module is for increasing an encryption indicator position at this note attribute, this short message content, sender and transmission number are encrypted, and by note memory module storage note.
Technical scheme of the present invention also comprises: also comprise number judge module, described number judge module is searched all address list records for traversal, judge and in address list, whether have the record mating with this SMS sender number, if the record not mating with this SMS sender number in address list, by note memory module storage short message content; If there is the record mating with this SMS sender number in address list, by determined property module, judge whether this SMS sender number sets cryptographic attributes value.
Technical scheme of the present invention also comprises: also comprise and encrypt judge module and Password Input module, described encryption judge module is for short message reading attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, by Password Input module prompting user, input password; If this note does not have encryption indicator position, by note acquisition module, obtain short message content; Described Password Input module is used for ejecting Password Input frame prompting user and inputs password.
Technical scheme of the present invention also comprises: also comprise password read module and password judge module, described password read module is for reading the password of user's input, and read the property value of setting in address list, whether described password judge module is consistent for the cryptographic attributes value that judges password that user inputs and set with address list, if the cryptographic attributes value of setting in the password of user's input and address list is inconsistent, prompt cipher is incorrect, and re-enters password by Password Input module; If the password of user's input is consistent with the property value of setting in address list, by note acquisition module, obtain short message content.
Technical scheme tool of the present invention has the following advantages or beneficial effect: whether the method that mobile terminal of the present invention is encrypted and device need the setup of attribute of password by increase a viewing content in mobile terminal addressbook, the number that user can encrypt needs is set property value, and the relevant information that agreement sends encrypting user is carried out corresponding encryption, while checking this user profile, input password is verified, avoid user's private information arbitrarily checked or leak by other people, further protected user's information security, and met user's hommization demand, improve user's experience.
Accompanying drawing explanation
Accompanying drawing 1 is the flow chart of the mobile terminal of the first embodiment of the invention method of encrypting;
Accompanying drawing 2 is flow charts of the mobile terminal of the second embodiment of the invention method of encrypting;
Accompanying drawing 3 is flow charts of the mobile terminal of the third embodiment of the invention method of encrypting;
Accompanying drawing 4 is structural representations of the device encrypted of the mobile terminal of first embodiment of the invention;
Accompanying drawing 5 is structural representations of the device encrypted of the mobile terminal of second embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, is the flow chart of the mobile terminal of the first embodiment of the invention method of encrypting.The method that the mobile terminal of first embodiment of the invention is encrypted comprises the following steps:
Step 100: the Subscriber Number that needs in mobile terminal addressbook to encrypt is set to cryptographic attributes value;
In step 100, an attribute of address list expansion at mobile terminal, it is the attribute that functional module is encrypted, under default situations, this property value is empty, representing does not need the related content of this number to be encrypted demonstration, once set cryptographic attributes value, the related content of all these numbers that receive all can be encrypted; Wherein, property value is password value, and user can set different property values for different numbers, also can set unified property value by all numbers.
Wherein, the concrete grammar of setting cryptographic attributes value is: user inputs a word string, and this word string can be numeral, character, English or its combination, and the word string of user's input, after steps of processing, becomes the word string of an encryption, and its step comprises:
By algorithm output by four 32 packet concatenation, form 128 hashed values;
Four 32 grouping variablees are carried out to initialization, be specially: A=001234567, B=0x89abcdef, C=0xfedcba98, D=0 * 76543210.
Filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just;
Four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d;
Carry out the major cycle of algorithm, the number of times of circulation is the numbers of 512 message grouping in message, and wherein, major cycle has four-wheel, often takes turns very similarly, and the first round is carried out 16 operations.Operate a at every turn, b, the nonlinear function computing of wherein three dos in c and d, then adds acquired results the 4th variable, a subgroup and a constant of text.One of again acquired results is encircled to the right and moves an indefinite number, and add a, b, in c or d, one of finally by this result, replace a, b, in c or d, second takes turns, third round, fourth round circulation, after these complete, by A, B, C, D adds respectively a, b, c, d, then continues executing arithmetic by next grouped data, and last output is A, B, the cascade of C and D, the word string of encrypting.
Embodiment of the present invention is only encrypted as example with SMS module, the note of encrypted number is encrypted, in another execution mode of the present invention, can also be encrypted message registration, picture module or other functional modules, only need to carry out above-mentioned processing at interface corresponding to this functional module.
Step 110: receive note, judge whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, execution step 120; If this SMS sender number has been set cryptographic attributes value, execution step 130;
Step 120: this short message content is kept in message list, and prompting user has fresh information to arrive;
Step 130: increase an encryption indicator position in this note attribute, and this short message content, sender and transmission number are encrypted.
Referring to Fig. 2, is the flow chart of the mobile terminal of the second embodiment of the invention method of encrypting.The method that the mobile terminal of second embodiment of the invention is encrypted comprises the following steps:
Step 140: the Subscriber Number that needs in mobile terminal addressbook to encrypt is set to cryptographic attributes value;
In step 140, an attribute of address list expansion at mobile terminal, it is the attribute that functional module is encrypted, under default situations, this property value is empty, representing does not need the related content of this number to be encrypted demonstration, once set cryptographic attributes value, the related content of all these numbers that receive all can be encrypted; Wherein, property value is password value, and user can set different property values for different numbers, also can set unified property value by all numbers.
Wherein, the concrete grammar of setting cryptographic attributes value is: user inputs a word string, and this word string can be numeral, character, English or its combination, and the word string of user's input, after steps of processing, becomes the word string of an encryption, and its step comprises:
By algorithm output by four 32 packet concatenation, form 128 hashed values;
Four 32 grouping variablees are carried out to initialization, be specially: A=001234567, B=0x89abcdef, C=0xfedcba98, D=0 * 76543210.
Filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just;
Four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d;
Carry out the major cycle of algorithm, the number of times of circulation is the numbers of 512 message grouping in message, and wherein, major cycle has four-wheel, often takes turns very similarly, and the first round is carried out 16 operations.Operate a at every turn, b, the nonlinear function computing of wherein three dos in c and d, then adds acquired results the 4th variable, a subgroup and a constant of text.One of again acquired results is encircled to the right and moves an indefinite number, and add a, b, in c or d, one of finally by this result, replace a, b, in c or d, second takes turns, third round, fourth round circulation, after these complete, by A, B, C, D adds respectively a, b, c, d, then continues executing arithmetic by next grouped data, and last output is A, B, the cascade of C and D, the word string of encrypting.
Step 150: end of conversation, judge whether conversation number has set cryptographic attributes value, if this conversation number is not set cryptographic attributes value, execution step 160; If this conversation number has been set cryptographic attributes value, execution step 170;
Step 160: dialog context is kept in message registration, and prompting user carried out call;
Step 170: increase an encryption indicator position in this call attribute, and this message registration content, telephone user and conversation number are encrypted.
Referring to Fig. 3, is the flow chart of the mobile terminal of the third embodiment of the invention method of encrypting.The method that the mobile terminal of third embodiment of the invention is encrypted comprises the following steps:
Step 200: the Subscriber Number that needs in mobile terminal addressbook to encrypt is set to cryptographic attributes value;
In step 200, an attribute of address list expansion at mobile terminal, it is the attribute that functional module is encrypted, under default situations, this property value is empty, representing does not need the related content of this number to be encrypted demonstration, once set cryptographic attributes value, the related content of all these numbers that receive all can be encrypted; Wherein, property value is password value, and user can set different property values for different numbers, also can set unified property value by all numbers.
Embodiment of the present invention is only encrypted as example with SMS module, the note of encrypted number is encrypted, in another execution mode of the present invention, can also be encrypted message registration, picture module or other functional modules, only need to carry out above-mentioned processing at interface corresponding to this functional module.
Step 210: receive note, and short message reading sends number;
Step 220: traversal is searched all address list records, judges in address list whether have the record mating with this SMS sender number, if the record mating with this SMS sender number in address list performs step 230; If there is the record mating with this SMS sender number in address list, execution step 240;
Step 230: this short message content is kept to message list, and prompting user has fresh information to arrive, and performs step 270;
Step 240: judge whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, execution step 230; If this SMS sender number has been set cryptographic attributes value, execution step 250;
In step 240, if this SMS sender number has been set cryptographic attributes value, represent that this note need to be encrypted, otherwise, represent that this note does not need encryption.
Step 250: increase an encryption indicator position in this note attribute, and this short message content, sender and transmission number are encrypted;
In step 250, while increasing encryption indicator position for short message reading, judge whether this note is Encrypted short message, and the note of encryption only shows time of reception, short message content, sender and transmission number can replace showing with * * * or other symbols.
Step 260: this Encrypted short message is kept to message list, and points out user to have fresh information to arrive;
Step 270: enter message list, the note that click need to be checked;
Step 280: read this note attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, execution step 290; If this note does not have encryption indicator position, execution step 330;
Step 290: eject Password Input frame prompting user and input password;
Step 300: read the password of user's input, and read the cryptographic attributes value of setting in address list;
Step 310: whether the password that judges user's input is consistent with the property value of setting in address list, if the property value of setting in the password of user's input and address list is inconsistent, execution step 320; If the password of user's input is consistent with the property value of setting in address list, execution step 330;
In step 310, user inputs a string character, draws a string input character through cryptographic algorithm, and relatively whether this output character equates with the input character that the character of user preset draws after encryption, judges that whether the password that user inputs is correct.
Wherein, user inputs the concrete grammar that word string obtains a string input character through cryptographic algorithm: user inputs a word string, and this word string can be that numeral, character, English or its combine, and the word string that user inputs is after steps of processing, become the word string of an encryption, its step comprises:
By algorithm output by four 32 packet concatenation, form 128 hashed values;
Four 32 grouping variablees are carried out to initialization, are specially:
A=001234567,B=0x89abcdef,C=0xfedcba98,D=0×76543210.
Filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just;
Four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d;
Carry out the major cycle of algorithm, the number of times of circulation is the numbers of 512 message grouping in message, and wherein, major cycle has four-wheel, often takes turns very similarly, and the first round is carried out 16 operations.Operate a at every turn, b, the nonlinear function computing of wherein three dos in c and d, then adds acquired results the 4th variable, a subgroup and a constant of text.One of again acquired results is encircled to the right and moves an indefinite number, and add a, b, in c or d, one of finally by this result, replace a, b, in c or d, second takes turns, third round, fourth round circulation, after these complete, by A, B, C, D adds respectively a, b, c, d, then continues executing arithmetic by next grouped data, and last output is A, B, the cascade of C and D, the word string of encrypting.
Step 320: prompting user cipher is incorrect, and again performs step 290;
Step 330: short message reading content, sender and transmission number, normally show note;
In step 330, the short message content of encryption, sender and transmission number can show back normal value.
Step 340: finish this encryption.
Referring to Fig. 4, is the structural representation of the device encrypted of the mobile terminal of first embodiment of the invention.The device that the mobile terminal of first embodiment of the invention is encrypted comprises that note receiver module, note memory module, note check module, note acquisition module, setup of attribute module, determined property module and SMS encryption module,
Note receiver module is used for receiving note and short message reading sends number;
Note memory module is for being kept at message list by all short message contents;
Note is checked the note that module need to be checked for entering message list click;
Note acquisition module normally shows note for short message reading content;
Setup of attribute module is set cryptographic attributes value for the number that mobile terminal addressbook is needed encrypt;
Wherein, an attribute of address list expansion at mobile terminal, it is the attribute that functional module is encrypted, under default situations, this property value is empty, representing does not need the related content of this number to be encrypted demonstration, once set cryptographic attributes value, the related content of all these numbers that receive all can be encrypted; Wherein, property value is password value, and user can set different property values for different numbers, also can set unified property value by all numbers.
Determined property module is used for judging whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, by note memory module storage short message content; If this SMS sender number has been set cryptographic attributes value, by SMS encryption module, process for this SMS encryption;
SMS encryption module, for increasing an encryption indicator position at this note attribute, is encrypted this short message content, sender and transmission number, and by note memory module storage note.
Referring to Fig. 5, is the structural representation of the device encrypted of the mobile terminal of second embodiment of the invention.The device that the mobile terminal of second embodiment of the invention is encrypted comprises: setup of attribute module, note receiver module, number judge module, note memory module, determined property module, SMS encryption module, note are checked module, encrypted judge module, Password Input module, password read module, password judge module and note acquisition module.
Setup of attribute module is set cryptographic attributes value for the number that mobile terminal addressbook is needed encrypt; Wherein, an attribute of address list expansion at mobile terminal, it is the attribute that functional module is encrypted, under default situations, this property value is empty, representing does not need the related content of this number to be encrypted demonstration, once set cryptographic attributes value, the related content of all these numbers that receive all can be encrypted; Property value is password value, and user can set different cryptographic attributes values for different numbers, also can set unified cryptographic attributes value by all numbers; Embodiment of the present invention is only encrypted as example with SMS module, the note of encrypted number is encrypted, in another execution mode of the present invention, can also be encrypted message registration or other functional modules, only need to carry out above-mentioned processing at interface corresponding to this functional module.
Note receiver module is used for receiving note, and short message reading sends number;
Number judge module is searched all address list records for traversal, judge and in address list, whether have the record mating with this SMS sender number, if the record not mating with this SMS sender number in address list, by note memory module storage short message content; If there is the record mating with this SMS sender number in address list, by determined property module, judge whether this SMS sender number sets cryptographic attributes value;
Note memory module is used for all short message contents to be kept at message list, and points out user to have fresh information to arrive; In embodiment of the present invention, note memory module is also for being kept at message list by Encrypted short message.
Determined property module is used for judging whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, by note memory module storage short message content; If this SMS sender number has been set cryptographic attributes value, by SMS encryption module, process for this SMS encryption; Wherein, if this SMS sender number has been set cryptographic attributes value, represent that this note need to be encrypted, otherwise, represent that this note does not need encryption.
SMS encryption module, for increasing an encryption indicator position at this note attribute, is encrypted this short message content, sender and transmission number, and by note memory module storage note; Wherein, while increasing encryption indicator position for short message reading, judge whether this note is Encrypted short message, and the note of encryption only shows time of reception, short message content, sender and transmission number can replace showing with * * * or other symbols.
Note checks that module is for entering message list, the note that click need to be checked;
Encrypt judge module and be used for reading this note attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, by Password Input module prompting user, input password; If this note does not have encryption indicator position, by note acquisition module, obtain short message content;
Password Input module is used for ejecting Password Input frame prompting user and inputs password;
The password that password read module is inputted for reading user, and read the property value of setting in address list;
Whether password judge module is consistent for the cryptographic attributes value that judges password that user inputs and set with address list, if the cryptographic attributes value of setting in the password of user's input and address list is inconsistent, prompt cipher is incorrect, and re-enters password by Password Input module; If the password of user's input is consistent with the cryptographic attributes value of setting in address list, by note acquisition module, obtain short message content;
Note acquisition module is for short message reading content, sender and send number, normally shows note; Wherein, the short message content of encryption, sender and transmission number can show back normal value.
Whether the method that mobile terminal of the present invention is encrypted and device need the setup of attribute of password by increase a viewing content in mobile terminal addressbook; the number that user can encrypt needs is set property value; and the relevant information that agreement sends encrypting user is carried out corresponding encryption; while checking this user profile, input password is verified; avoid user's private information arbitrarily checked or leak by other people; further protected user's information security; and met user's hommization demand, improve user's experience.
The present invention can be encrypted the SMS module of mobile terminal, message registration module, picture module or other functional modules, only need to carry out corresponding attribute at interface corresponding to this functional module and set and can realize.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any modifications of doing within the spirit and principles in the present invention, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.

Claims (10)

1. the method that mobile terminal is encrypted, comprising:
Step a: the Subscriber Number that needs in mobile terminal addressbook to encrypt is set to cryptographic attributes value, wherein, setting cryptographic attributes value specifically comprises: user inputs word string, by input word string variable packet concatenation, grouping variable is carried out to recurrent nonlinearity functional operation, the word string that output is encrypted, it comprises: by algorithm output by four 32 packet concatenation, form 128 hashed values; Four 32 grouping variablees are carried out to initialization; Filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just; Four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d; Carry out the major cycle of algorithm, the number of times of circulation is the number of 512 message groupings in message, wherein, major cycle has four-wheel, after four-wheel has circulated, by A, B, C, D adds respectively a, b, c, d, then by next grouped data, continue executing arithmetic, last output is A, B, the cascade of C and D, the word string of encrypting;
Step b: receive note or after end of conversation, judge whether this SMS sender number or conversation number have set cryptographic attributes value, if this SMS sender number or conversation number are not set cryptographic attributes value, this short message content or dialog context are kept to message list or message registration, and prompting user has fresh information to arrive or carried out call; If this SMS sender number or conversation number have been set cryptographic attributes value, execution step c;
Step c: in this note or call, increase an encryption indicator position in attribute, and by this note or message registration content, sender and send number or telephone user and conversation number and be encrypted.
2. the method that mobile terminal according to claim 1 is encrypted, it is characterized in that, described step b also comprises: short message reading sends number, traversal is searched all address list records, judge and in address list, whether have the record mating with this SMS sender number, if the record not mating with this SMS sender number in address list, is kept at message list by short message content, prompting user has fresh information to arrive; If there is the record mating with this SMS sender number in address list, judge whether this SMS sender number has set cryptographic attributes value.
3. the method that mobile terminal according to claim 1 is encrypted, is characterized in that, described step c also comprises: this Encrypted short message is kept to message list, and points out user to have fresh information to arrive; Wherein, the note after encryption only shows time of reception.
4. the method for encrypting according to the mobile terminal described in claim 2 or 3, is characterized in that, also comprises: enter message list, the note that click need to be checked after described step c.
5. the method that mobile terminal according to claim 4 is encrypted, it is characterized in that, after described step c, also comprise: read this note attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, eject Password Input frame prompting user and input password; If this note does not have encryption indicator position, short message reading content, sender and transmission number, normally show note.
6. the method that mobile terminal according to claim 5 is encrypted, it is characterized in that, after described step c, also comprise: the password that reads user's input, and read the cryptographic attributes value of setting in address list, whether the password that judges user's input is consistent with the cryptographic attributes value of setting in address list, if the cryptographic attributes value of setting in the password of user's input and address list is inconsistent, prompting user cipher is incorrect, need re-enter password; If the password of user's input is consistent with the cryptographic attributes value of setting in address list, short message reading content, sender and transmission number, normally show note.
7. the device that a mobile terminal is encrypted, comprise note receiver module, note memory module, note is checked module and note acquisition module, described note receiver module is used for receiving note and short message reading sends number, described note memory module is for being kept at message list by all short message contents, described note is checked the note that module need to be checked for entering message list click, described note acquisition module normally shows note for short message reading content, it is characterized in that, also comprise setup of attribute module, determined property module and SMS encryption module, described setup of attribute module is set cryptographic attributes value for the number that mobile terminal addressbook is needed encrypt, wherein, setting cryptographic attributes value specifically comprises: user inputs word string, by input word string variable packet concatenation, grouping variable is carried out to recurrent nonlinearity functional operation, the word string that output is encrypted, it comprises: by algorithm output by four 32 packet concatenation, form 128 hashed values, four 32 grouping variablees are carried out to initialization, filling encrypting messages, to make its length be the number of only little 64 of the multiple of 512 of ratios just, four variablees are above copied in not outer variable: A is to a, and B is to b, and C is to c, and D is to d, carry out the major cycle of algorithm, the number of times of circulation is the number of 512 message groupings in message, wherein, major cycle has four-wheel, after four-wheel has circulated, by A, B, C, D adds respectively a, b, c, d, then by next grouped data, continue executing arithmetic, last output is A, B, the cascade of C and D, the word string of encrypting, described determined property module is used for judging whether this SMS sender number has set cryptographic attributes value, if this SMS sender number is not set cryptographic attributes value, by note memory module storage short message content, if this SMS sender number has been set cryptographic attributes value, by SMS encryption module, process for this SMS encryption, described SMS encryption module, for increasing an encryption indicator position at this note attribute, is encrypted this short message content, sender and transmission number, and by note memory module storage note.
8. the device that mobile terminal according to claim 7 is encrypted, it is characterized in that, also comprise number judge module, described number judge module is searched all address list records for traversal, judge and in address list, whether have the record mating with this SMS sender number, if the record not mating with this SMS sender number in address list, by note memory module storage short message content; If there is the record mating with this SMS sender number in address list, by determined property module, judge whether this SMS sender number sets cryptographic attributes value.
9. the device that mobile terminal according to claim 7 is encrypted, it is characterized in that, also comprise and encrypt judge module and Password Input module, described encryption judge module is for short message reading attribute, judge whether this note has encryption indicator position, if this note has encryption indicator position, by Password Input module prompting user, input password; If this note does not have encryption indicator position, by note acquisition module, obtain short message content; Described Password Input module is used for ejecting Password Input frame prompting user and inputs password.
10. the device that mobile terminal according to claim 9 is encrypted, it is characterized in that, also comprise password read module and password judge module, described password read module is for reading the password of user's input, and read the cryptographic attributes value of setting in address list, whether described password judge module is consistent for the cryptographic attributes value that judges password that user inputs and set with address list, if the cryptographic attributes value of setting in the password of user's input and address list is inconsistent, prompt cipher is incorrect, and re-enters password by Password Input module; If the password of user's input is consistent with the cryptographic attributes value of setting in address list, by note acquisition module, obtain short message content.
CN201110164380.9A 2011-06-17 2011-06-17 Method and device for encrypting mobile terminals Expired - Fee Related CN102202297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110164380.9A CN102202297B (en) 2011-06-17 2011-06-17 Method and device for encrypting mobile terminals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110164380.9A CN102202297B (en) 2011-06-17 2011-06-17 Method and device for encrypting mobile terminals

Publications (2)

Publication Number Publication Date
CN102202297A CN102202297A (en) 2011-09-28
CN102202297B true CN102202297B (en) 2014-04-09

Family

ID=44662615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110164380.9A Expired - Fee Related CN102202297B (en) 2011-06-17 2011-06-17 Method and device for encrypting mobile terminals

Country Status (1)

Country Link
CN (1) CN102202297B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572750A (en) * 2011-12-26 2012-07-11 中兴通讯股份有限公司 Method and terminal for protecting short messages
CN103458101B (en) * 2013-05-23 2016-03-30 深圳市中易通网络技术有限公司 The hardware encryption storage method of a kind of mobile phone privacy contact person and system
CN103475781A (en) * 2013-09-12 2013-12-25 上海斐讯数据通信技术有限公司 Information protective method and mobile terminal
CN104683555B (en) * 2013-11-29 2018-10-12 腾讯科技(深圳)有限公司 Message management method and device
CN104955029A (en) * 2014-03-24 2015-09-30 中兴通讯股份有限公司 Address book protection method, address book protection device and communication system
CN105320892B (en) * 2014-06-16 2022-01-04 腾讯科技(深圳)有限公司 Communication record storage method and related system for social communication application
CN105099670A (en) * 2015-07-13 2015-11-25 深圳市金立通信设备有限公司 Encryption method and terminal
CN107181873B (en) * 2017-06-22 2020-11-03 上海传英信息技术有限公司 Method, device and terminal for displaying short message session

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101252748A (en) * 2008-04-11 2008-08-27 北京北纬通信科技股份有限公司 System and method for realizing privacy SMS on mobile terminal
GB0816062D0 (en) * 2008-09-03 2008-10-08 Symbian Software Ltd Message storage and retrieval
CN101951570A (en) * 2010-08-25 2011-01-19 惠州Tcl移动通信有限公司 Short message box encrypting method for mobile phone and mobile phone

Also Published As

Publication number Publication date
CN102202297A (en) 2011-09-28

Similar Documents

Publication Publication Date Title
CN102202297B (en) Method and device for encrypting mobile terminals
CN103065080B (en) A kind of application program login method and device
CN103002124B (en) A kind of processing method of communication data, device
US20190317954A1 (en) Method and apparatus for processing text information
US10461934B2 (en) Authentication-based message display method and communication terminal thereof
CN103249014B (en) Method for encrypting short message of mobile communication
CN101815128A (en) Method and device for destroying terminal data
CN103078993A (en) Contact information exchange method, contact information exchange device and mobile terminals
CN103489025A (en) Method and device for sending contact information
CN103916527A (en) Method for achieving multi-user log-in mode and mobile terminal
CN112307454A (en) Data encryption method and device, storage medium and electronic equipment
CN103532960A (en) Text encryption interaction method, encryption method and device, decryption method and device
CN102572750A (en) Method and terminal for protecting short messages
CN111818469A (en) Calling method, calling device, electronic equipment and network equipment
CN107315934A (en) Communication message processing method, mobile terminal and storage device
CN101242273A (en) Signature data generation method, system and mobile terminal for mobile terminal
CN202014304U (en) Mobile phone privacy protection system based on code authentication
US20150156173A1 (en) Communication system utilizing fingerprint information and use thereof
CN104869210B (en) A kind of communication information extracting method and information extraction terminal
CN101369895B (en) Method and mobile terminal for establishing connection with PC terminal
CN104796525A (en) Short message display method and device
WO2016188079A1 (en) Data storage method for terminal device and terminal device
CN113873450B (en) Short message configuration method, device, computer equipment and storage medium
CN105635100A (en) Information encryption method, information decryption method and terminal
CN103942484A (en) Security auxiliary device using mobile phone as carrier and identity authentication method

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

Granted publication date: 20140409

Termination date: 20150617

EXPY Termination of patent right or utility model