Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, 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, be not intended to limit the present invention.
Fig. 1 shows the realization flow of the management method of the mobile terminal collection that the embodiment of the present invention provides, and details are as follows:
In S101, obtain the data message collecting data in described mobile terminal collection.
Wherein, described mobile terminal collection, can for being arranged on the file under a certain store path of mobile terminal, in mobile terminal use procedure, can by the data in installation application access in the terminal, management (comprising interpolation, deletion, amendment) this file, such as, open collection by browser, or picture is added in collection by cell phone managing application download pictures.
Described collection data, include but not limited to application program, game, picture, audio frequency and video.
In the present embodiment, by the collection data in traversal collection, get the data message of collection data, wherein, data message comprises but is not limited to collect filename, the store path of data, etc.
In S102, according to described data message, described collection data are classified.
As shown in Figure 2, S102 can realize especially by with under type:
In S201, parse the data characteristics of described collection data according to described data message.
The data message of the collection data got based on S101 is resolved, thus parses the data characteristics of collection data, and described data characteristics comprises following at least one: data type, collection time or collection mark.
For data type:
As one embodiment of the present of invention, when described data message is the filename of collection data, by resolving the file name suffix of collection data, the data type of collection data can be known.Such as, file name suffix is the collection data of .jpg, and its data type is picture; File name suffix is the collection data of .mpg, and its data type is video; File name suffix is the collection data of .mp3, and its data type is audio frequency.
As another embodiment of the present invention, when described data message be collection data in described mobile terminal collection belonging to sub-folder title time, can determine to collect the data type of data according to this sub-folder title.Such as, mobile terminal system can be given tacit consent to set music, game, picture, these sub-folders of video in collection, store so that carry out classification to collection data, manage, therefore, if collection data belong under " music " sub-folder in mobile terminal collection, so can know that the data type of these collection data is music; If collection data belong under " game " sub-folder in mobile terminal collection, so can know that the data type of these collection data is game class application program; If collection data belong under " picture " sub-folder in mobile terminal collection, so can know that the data type of these collection data is picture.
As another embodiment of the present invention, when described data message is the store path of collection data, store path due to sub-folder also contains sub-folder title, therefore, the sub-folder title of collection data place sub-folder can be extracted from the store path of collection data, and determine the data type of collection data thus.
If data characteristics is the collection time, then the creation-time that directly can read collection data determines to collect the collection time of data;
If data characteristics is collection mark, then can be that the collection grade of collecting data markers is determined by reading mobile phone users.
In S202, cluster is carried out to the described data characteristics parsed.
The data characteristics of the cluster of carrying out possesses common or similar characteristic mostly, such as, the collection time is classified as a class in the collection data in section sometime, or collection data collection mark being five-pointed star (star is for marking the grade of collection data) are classified as a class.
In S203, according to cluster result, described collection data are classified.
In S103, sorted described collection data are encrypted.
As one embodiment of the present of invention, can all collection data in collection be all encrypted according to unified cipher mode.
As another embodiment of the present invention, described S103 also can be realized by mode as shown in Figure 3:
In S301, determine the generic of described collection data.
In S302, the predetermined encryption mode corresponding according to described generic, is encrypted described collection data.
In the present embodiment, different cipher modes is adopted respectively to different classes of collection data, to strengthen the security of collection data.Wherein, by realizing sub-category encryption for each classification arranges a kind of cryptographic algorithm respectively, also sub-category encryption can be realized by arranging a kind of secret generating mode respectively for each classification.
Further, in the process that collection data are encrypted, corresponding key can also be generated according to the user account of described mobile terminal, namely, the generation of key can be called foundation with the user of user account, or, key for encrypting can be specified respectively by each user account, the data isolation between different user account can be realized like this, further ensure the information security of mobile terminal.
In S104, the described collection data of encryption are stored to designated memory space.
Finally, collection data after encryption are stored in the storage space of specifying, described storage space of specifying, it can be the file at collection data place before encryption, also can collect among the storage space of data for the storage encryption that is specifically designed to of specifying in addition, when mobile terminal needs access collection data, by the collection data of encryption by deciphering in collection in dedicated memory space, for mobile terminal accessing, and the collection data delete this deciphering from collection after access after, to ensure the security of data.
The embodiment of the present invention carries out classification encryption handling to the collection data in mobile terminal collection, effectively ensure that privacy and the security of mobile terminal collection data.
Corresponding to the management method of the mobile terminal collection described in foregoing embodiments, Fig. 4 shows the structured flowchart of the management devices of the mobile terminal collection that the embodiment of the present invention provides, and for convenience of explanation, illustrate only part related to the present embodiment.
With reference to Fig. 4, this device comprises:
Acquiring unit 41, obtains the data message collecting data in described mobile terminal collection.
Taxon 42, classifies to described collection data according to described data message.
Ciphering unit 43, is encrypted sorted described collection data.
The described collection data of encryption are stored to designated memory space by storage unit 44.
Alternatively, described ciphering unit 43 specifically for:
To the consistent predetermined encryption mode of all described collection data acquisitions.
Alternatively, described ciphering unit 43 comprises:
Determine subelement, determine the generic of described collection data.
Encryption sub-unit operable, the predetermined encryption mode corresponding according to described generic, is encrypted described collection data.
Alternatively, described ciphering unit 43 specifically for:
Corresponding key is generated according to the user account of described mobile terminal.
Alternatively, described taxon 42 comprises:
Resolve subelement, parse the data characteristics of described collection data according to described data message;
Cluster subelement, carries out cluster to the described data characteristics parsed;
Classification subelement, according to cluster result, classifies to described collection data.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.