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.
The present invention monitors current application program operation, if when the application program of current operation belongs to the list of standard oracle listener, and when the file privacy file producing in described application program operational process, carries out real-time encrypted to described privacy file.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
embodiment mono-
Fig. 1 shows the process flow diagram of the realization of the privacy file encrypting method that the embodiment of the present invention one provides, and details are as follows:
In S101, the operation of monitoring current application program;
In the present embodiment, described application program is the local application program of installing of terminal device, for example, and games, instant messaging program, voice procedure etc.
In S102, if when described application program belongs to the list of standard oracle listener, judge whether the file producing in described current application program operational process is privacy file;
Wherein, described standard oracle listener list storage application information to be monitored, described application information can comprise the information such as title, size of application program, in the time that described application program belongs to described standard oracle listener list, illustrate that this application program belongs to the application program that needs are monitored.
In the present embodiment, in described application program operational process, may produce a lot of files, wherein, can comprise privacy file and non-privacy file, wherein, privacy file is the file that needs encryption, and non-privacy file is the file that does not need encryption.
In S103, in the time that the file producing in described current application program operational process is privacy file, carry out real-time encrypted to described privacy file.
In the present embodiment, the operation of monitoring current application program, if when the application program of current operation belongs to the list of standard oracle listener, judge whether the file producing in described current application program operational process is privacy file, in the time that the file producing in described current application program operational process is privacy file, carry out real-time encrypted to described privacy file.Due in application program operational process, monitor the privacy file producing in described application program operational process, and privacy file is encrypted, manually encrypt without user, ciphering process is simple, convenient, and the privacy file producing due to real-time application programs operation is encrypted, therefore, can avoid owing to forgetting that encrypting the privacy file causing reveals.
embodiment bis-
Fig. 2 shows the process flow diagram of the realization of the privacy file encrypting method that the embodiment of the present invention two provides, and details are as follows:
In the present embodiment, can, after terminal device start, export the information whether privacy file being encrypted to user, if so, carry out S201.
In S201, generate the list of standard oracle listener;
Optionally, S201 in the following ways one mode realizes: encrypt file type corresponding to the application information to be encrypted of selecting according to user and each application program of setting generates the list of standard oracle listener, specifically can quick entrance be set in terminal, in the time clicking quick entrance, eject encipheror and select and arrange the list of encrypt file, described list shows local application program and the corresponding encrypt file type thereof that needs encryption of terminal device, user can select to need the application program of encryption and the encrypt file type corresponding to application program of selection in described list, according to user's selection and arrange generation standard monitor list.
Optionally, S201 adopts and can also adopt the mode of mode two to realize: the encrypt file type generation standard oracle listener list corresponding to each application program of monitoring the application information to be encrypted that obtains and analysis according to high in the clouds.Concrete: various application programs are regularly collected in high in the clouds, and the attribute of each application program is analyzed, according to analysis result, determine the file type that needs corresponding to this application program are monitored, for example, when application attribute is while taking pictures class software, or when application attribute is recorded program, this application program may produce the audio file of privacy, determine after the file type of monitoring, according to the application program of collecting and to the file type in requisition for monitoring, composition high in the clouds oracle listener list, in the time collecting new application program, need this new application program to analyze, judgement, and according to analyzing judged result, high in the clouds oracle listener list is upgraded.
Optionally, S201 further can adopt mode three realizations:
A, obtain the list of user's oracle listener and high in the clouds oracle listener list, application information to be encrypted and encrypt file type corresponding to each application program that described user's oracle listener list storage user arranges, the various application informations that oracle listener list storage high in the clouds, described high in the clouds obtains and encrypt file type corresponding to each application program;
Wherein, terminal device can directly obtain from high in the clouds the oracle listener list of described high in the clouds, also can local obtain pre-stored high in the clouds oracle listener list, now, need to monitor list to the high in the clouds of this locality storage and carry out regular update.
Wherein, the generation that described user monitors list can generate with reference to the mode of the implementation of S201 one, and the generation that list is monitored in described high in the clouds can generate with reference to the mode of the implementation of S201 two, does not repeat them here.
B, the list of described user's oracle listener and high in the clouds oracle listener list are combined, generate the list of standard oracle listener.
In the present embodiment, the application program of user's oracle listener list and high in the clouds oracle listener list are combined, the list of generation standard oracle listener, be that application program and the local application program that needs monitoring that high in the clouds need to be monitored have been combined in the list of described standard oracle listener, for example, the application program that the list of user's oracle listener need to be monitored is A, B, and the program that high in the clouds monitoring list need to be monitored is C, D, and standard monitoring list is the file that A, B, C, D and each program thereof need to be encrypted; The application program that the list of user's oracle listener need to be monitored is A, B, D, and the program that high in the clouds monitoring list need to be monitored is C, D, and standard monitoring list is the file that A, B, C, D and each program thereof need to be encrypted.
In S202, monitor the application program of current operation;
In S203, if when the application program of current operation belongs to the list of standard oracle listener, scan file storage directory corresponding to described application program, obtain the file of new generation in described current application program operational process and the file changing, described standard oracle listener list storage application information to be monitored;
In the present embodiment, file storage directory corresponding to described application program comprises installation file storage directory and associated documents storage directory, described installation file storage directory and described associated documents storage directory can be under identical file directorys, also can be under different file directorys.
In the present embodiment, in application program operational process, may produce the new file different from source document, also some file changing in program operation process, can judge that described file is the new file producing by the cryptographic hash of file (hash), and the file changing.
In S204, in the time that the file of described new generation and the file that changes belong to encrypt file type corresponding to default described current application program, judge the file of described new generation and the file that changes is privacy file.
In the present embodiment, preset encrypt file type corresponding to each application program, in the time of the file of new generation or encrypt file type corresponding to the default described current application program of file that changes, this file is privacy file.
Preferably, S204 can adopt following form to realize:
In the time that the file of described new generation and file type corresponding to file that change belong to encrypt file type corresponding to the described current application program of described standard oracle listener list storage, the file of judging the file of described new generation and change is privacy file, wherein, encrypt file type corresponding to each application program to be encrypted also stored in the list of described standard oracle listener.
In S205, in the time that the file producing in described current application program operational process is privacy file, carry out real-time encrypted to described privacy file.
For the ease of understanding, with a concrete realization example, the privacy file encryption process of the present embodiment is described below, but be not limited with the situation of the present embodiment: for example, tentative standard oracle listener list storage micro-letter, and the encrypt file type that micro-letter is corresponding is audio frequency, picture, video, in the time having started application program encryption function, and when the application program that monitors terminal device local runtime is micro-letter, monitor the file producing in micro-letter operational process, in the time judging that the file producing is audio frequency, this file is the privacy file that needs encryption, now, calling encipheror is encrypted this audio file, be voice-enabled chat information and the photo of sending and receiving in micro-letter operational process, the privacy files such as video, all can be by real-time encrypted, when described file is not audio frequency, when picture or video, described file is not encrypted.
In the present embodiment, the operation of monitoring current application program, if when the application program of current operation belongs to the list of standard oracle listener, scan file storage directory corresponding to described application program, obtain the file of new generation in described current application program operational process and the file changing, in the time that the file of described new generation and the file that changes belong to encrypt file type corresponding to default described current application program, the file of judging the file of described new generation and change is privacy file, carries out real-time encrypted to described privacy file.Just can be encrypted privacy file without the manual encryption of user, ciphering process is simple, convenient, and because the privacy file of real-time application programs operation generation is encrypted, therefore, can avoid owing to forgetting that encrypting the privacy file causing reveals.
embodiment tri-
The structural drawing of the privacy document encrypting apparatus that when Fig. 3, the embodiment of the present invention three provides, for convenience of explanation, only show the part relevant to the embodiment of the present invention, this device can be software unit, hardware cell or the soft or hard combining unit being built in terminal device.
Described device comprises: monitoring means 31, judging unit 32 and ciphering unit 33.
Monitoring means 31, for monitoring the application program of current operation;
Judging unit 32, if while belonging to the list of standard oracle listener for described application program, judges whether the file producing in described current application program operational process is privacy file, described standard oracle listener list storage application information to be monitored;
Ciphering unit 33, while being privacy file, carries out real-time encrypted to described privacy file for the file producing when described current application program operational process.
The privacy document encrypting apparatus that the embodiment of the present invention provides can use in the embodiment of the method one of aforementioned correspondence, and details, referring to the description of above-described embodiment one, do not repeat them here.
embodiment tetra-
The structural drawing of the privacy document encrypting apparatus that when Fig. 4, the embodiment of the present invention four provides, for convenience of explanation, only show the part relevant to the embodiment of the present invention, this device can be software unit, hardware cell or the soft or hard combining unit being built in terminal device.
Described device comprises: generation unit 41, monitoring means 42, judging unit 43 and ciphering unit 44.
The difference of the present embodiment and embodiment tri-is:
Optionally, described judging unit 43 comprises: acquisition module 431 and determination module 432.
File acquisition module 431, for scanning file storage directory corresponding to described application program, obtains the file of new generation in described current application program operational process and the file changing;
Determination module 432, when belong to encrypt file type corresponding to default described current application program when the file of described new generation and the file that changes, judges the file of described new generation and the file that changes is privacy file.
Optionally, encrypt file type corresponding to each application program to be encrypted also stored in the list of described standard oracle listener; Described determination module 432, when belong to encrypt file type corresponding to the described current application program of described standard oracle listener list storage when the file of described new generation and file type corresponding to file that change, judge the file of described new generation and the file that changes is privacy file.
Optionally, described device also comprises: generation unit 41, and for generating the list of standard oracle listener.
Optionally, described generation unit 41, for generating the list of standard oracle listener according to encrypt file type corresponding to each application program of the application information to be encrypted of user's selection and setting.
Optionally, described generation unit 41, generates the list of standard oracle listener for encrypt file type corresponding to each application program of monitoring the application information to be encrypted that obtains and analysis according to high in the clouds.
Optionally, described generation unit 41 comprises: acquisition module 411 and composite module 412.
List acquisition module 411, be used for obtaining the list of user's oracle listener and high in the clouds oracle listener list, application information to be encrypted and encrypt file type corresponding to each application program that described user's oracle listener list storage user arranges, the various application informations that oracle listener list storage high in the clouds, described high in the clouds obtains and encrypt file type corresponding to each application program;
Composite module 412, for the list of described user's oracle listener and high in the clouds oracle listener list are combined, generates the list of standard oracle listener.
The privacy document encrypting apparatus that the embodiment of the present invention provides can use in the embodiment of the method two of aforementioned correspondence, and details, referring to the description of above-described embodiment two, do not repeat them here.
It should be noted that in above-described embodiment, included unit is just divided according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit also, just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realizing in the various embodiments described above method is can carry out the hardware that instruction is relevant by program to complete, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments 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.