Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Fig. 1 shows the implementation process of the management method of mobile terminal collection provided in an embodiment of the present invention, is described in detail such as
Under:
In S101, the data message that data are collected in the mobile terminal collection is obtained.
Wherein, the mobile terminal collection, can be to be arranged on the file under a certain store path of mobile terminal,
During mobile terminal use, it can be accessed by the application installed in the terminal, management (including is added, deletes, repaiied
Change) data in this document folder, for example, opening collection by browser, or by cell phone managing application download pictures simultaneously
Picture is added in collection.
The collection data, including but not limited to application program, game, picture, audio and video.
In the present embodiment, by traveling through the collection data in collection, the data message of collection data is got, its
In, data message includes but is not limited to collect filename, store path of data, etc..
In S102, the collection data are classified according to the data message.
As shown in Fig. 2 S102 can realize especially by the following manner:
In S201, the data characteristics of the collection data is parsed according to the data message.
Data message based on the S101 collection data got is parsed, special so as to parse the data of collection data
Sign, the data characteristics include following at least one:Data type, collection time or collection mark.
By taking data type as an example:
As one embodiment of the present of invention, when filename of the data message for collection data, solution can be passed through
The file name suffix of analysis collection data, know the data type of collection data.For example, file name suffix is .jpg collection number
According to its data type is picture;File name suffix is .mpg collection data, and its data type is video;File name suffix is
.mp3 collection data, its data type are audio.
As another embodiment of the present invention, when the data message is to collect data in the mobile terminal collection
During affiliated sub-folder title, it can determine to collect the data type of data according to the sub-folder title.It is for example, mobile
Terminal system can be given tacit consent to sets music, game, picture, video these sub-folders in collection, in order to collecting number
According to carry out classification storage, management, therefore, if collection data belong in mobile terminal collection " music " sub-folder it
Under, then the data type that can know the collection data is music;If collection data belong in mobile terminal collection
Under " game " sub-folder, then the data type that can know the collection data is game class application program;If collect number
Belong to according in mobile terminal collection under " picture " sub-folder, then the data type of the collection data can be known
For picture.
As another embodiment of the present invention, when store path of the data message for collection data, due to Ziwen
The store path of part folder also contains sub-folder title, therefore, can extract collection from the store path of collection data
The sub-folder title of sub-folder where data, and thereby determine that out the data type of collection data.
If data characteristics is the collection time, the creation times of collection data can be directly read to determine to collect data
Collect the time;
, can be by reading mobile terminal user as collection of collection data markers etc. if data characteristics marks for collection
Level determines.
In S202, the data characteristics parsed is clustered.
The data characteristics of the cluster of progress possesses common or similar characteristic mostly, for example, will be collected a certain the time
Collection data in period are classified as one kind, or will collect mark is five-pointed star (star is used for the grade for marking collection data)
Collection data be classified as one kind.
In S203, according to cluster result, the collection data are classified.
In S103, the sorted collection data are encrypted.
, can be to all collection data in collection according to unified encryption side as one embodiment of the present of invention
Formula is encrypted.
As another embodiment of the present invention, the S103 can also be realized by mode as shown in Figure 3:
In S301, the generic of the collection data is determined.
In S302, according to predetermined encryption mode corresponding to the generic, place is encrypted to the collection data
Reason.
In the present embodiment, different cipher modes is respectively adopted to different classes of collection data, to strengthen collection number
According to security.Wherein it is possible to by setting a kind of AES respectively for each classification to realize sub-category encryption, can also
By setting a kind of key generating mode to realize sub-category encryption respectively for each classification.
Further, can also be according to user's account of the mobile terminal during collection data are encrypted
Family generates corresponding key, i.e. the generation of key can with the entitled foundation of the user of user account, or, can be by each use
Family account is respectively slated for the key of encryption, can so realize the data isolation between different user account, further protects
The information security of mobile terminal is demonstrate,proved.
In S104, by the collection data storage of encryption to designated memory space.
Finally, by the collection data storage after encryption into specified memory space, the memory space specified can be with
To collect the file where data before encryption, or that specifies in addition encrypts the storage of collection data dedicated for storage
Among space, when mobile terminal need access collection data when, by the collection data of encryption by decrypted in dedicated memory space to
In collection, for mobile terminal accessing, and the collection data after the decryption are deleted from collection after access, 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, is effectively guaranteed
Mobile terminal collects the privacy and security of data.
Corresponding to the management method of the mobile terminal collection described in foregoing embodiments, Fig. 4 shows the embodiment of the present invention
The structured flowchart of the managing device of the mobile terminal collection of offer, for convenience of description, it illustrate only related to the present embodiment
Part.
Reference picture 4, the device include:
Acquiring unit 41, obtain the data message that data are collected in the mobile terminal collection.
Taxon 42, the collection data are classified according to the data message.
Ciphering unit 43, the sorted collection data are encrypted.
Memory cell 44, by the collection data storage of encryption to designated memory space.
Alternatively, the ciphering unit 43 is specifically used for:
Consistent predetermined encryption mode is used to all collection data.
Alternatively, the ciphering unit 43 includes:
Determination subelement, determine the generic of the collection data.
Encryption sub-unit operable, according to predetermined encryption mode corresponding to the generic, the collection data are encrypted
Processing.
Alternatively, the ciphering unit 43 is specifically used for:
Corresponding key is generated according to the user account of the mobile terminal.
Alternatively, the taxon 42 includes:
Subelement is parsed, the data characteristics of the collection data is parsed according to the data message;
Subelement is clustered, the data characteristics parsed is clustered;
Classification subelement, according to cluster result, the collection data are classified.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.