Summary of the invention
The object of the embodiment of the present invention is to provide a kind of document protection method and device, to improve the security of file.
For achieving the above object, the embodiment of the invention discloses a kind of document protection method, comprising:
When file destination current be in allow browse state, the state of file destination is monitored;
After the state monitoring described file destination meets default locking condition, the state of file destination is switched to and forbids browse state.
Preferably, after the state of file destination is switched to forbidding browse state, also comprise:
Prompting user inputs file destination solution lock password, and when the file destination solution lock password of user's input is correct, by the recovering state of file destination for allowing browse state.
Preferably, described in monitor described file destination state meet default locking condition, comprising:
The duration of opening monitoring file destination exceedes default first threshold;
Or monitor the do not operate lasting duration of user to file destination and exceed default Second Threshold;
Or monitor user and manually file destination is conducted the locking operations.
Preferably, the described state by file destination switches to forbids browse state, comprising:
Window residing for file destination is minimized to taskbar;
Or by close residing for file destination;
Or use locking interface to be blocked by window residing for file destination.
Preferably, also comprise:
The state of the listed files residing for file destination is monitored;
After the state monitoring described listed files meets its condition hidden, listed files is hidden.
Preferably, after listed files is hidden, also comprise:
Prompting user-in file list display password, and when the listed files display password of user's input is correct, listed files is recovered display.
Preferably, described in monitor described listed files state meet its condition hidden, comprising:
The display duration monitoring listed files exceedes the 3rd default threshold value;
Or monitor the do not operate lasting duration of user to listed files and exceed the 4th default threshold value;
Or monitor user manually to listed files carry out hide operation.
For achieving the above object, the embodiment of the invention discloses a kind of file protection device, comprising:
First monitoring modular, for when file destination current be in allow browse state, the state of file destination is monitored;
State handover module, after meeting default locking condition when the state monitoring described file destination, switches to the state of file destination and forbids browse state.
Preferably, also comprise:
Recovering state module, for pointing out user to input file destination solution lock password, and when the file destination solution lock password of user's input is correct, by the recovering state of file destination for allowing browse state.
Preferably, described in monitor described file destination state meet default locking condition, comprising:
The duration of opening monitoring file destination exceedes default first threshold;
Or monitor the do not operate lasting duration of user to file destination and exceed default Second Threshold;
Or monitor user and manually file destination is conducted the locking operations.
Preferably, the described state by file destination switches to forbids browse state, comprising:
Window residing for file destination is minimized to taskbar;
Or by close residing for file destination;
Or use locking interface to be blocked by window residing for file destination.
Preferably, also comprise:
Second monitoring modular, for monitoring the state of the listed files residing for file destination;
Hide module, for meet its condition hidden when the state monitoring described listed files after, listed files is hidden.
Preferably, also comprise:
Display module, for pointing out user-in file list to show password, and when the listed files display password of user's input is correct, recovers display by listed files.
Preferably, described in monitor described listed files state meet its condition hidden, comprising:
The display duration monitoring listed files exceedes the 3rd default threshold value;
Or monitor the do not operate lasting duration of user to listed files and exceed the 4th default threshold value;
Or monitor user manually to listed files carry out hide operation.
As seen from the above technical solutions, when user leaves the closing of a file account do not exited or will not open, automatically the file status opened can be switched to and forbid browse state, prevent other people browser document, improve the security of file.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of document protection method and device, in the program when file destination current be in allow browse state, the state of file destination is monitored; After the state monitoring described file destination meets default locking condition, the state of file destination is switched to and forbids browse state.
Below by specific embodiment, the present invention is described in detail.
The schematic flow sheet of the first document protection method that Fig. 1 provides for the embodiment of the present invention, comprises the steps:
S101: when file destination current be in allow browse state, the state of file destination is monitored;
S102: after the state monitoring described file destination meets default locking condition, switches to the state of file destination and forbids browse state.
Allow the file destination T of browse state to monitor to current being in, when monitoring after T meets default locking condition, the state of T being switched to and forbids browse state.
In actual applications, the duration that T opens can be monitored and whether exceed default first threshold, after exceeding default first threshold, the state of T is switched to and forbids browse state, suppose that the first threshold preset is 3 minutes, when monitoring duration that T opens more than 3 minutes, the state of T being switched to and forbids browse state.
In actual applications, can also monitor user ' not operating lasting duration and whether exceed default Second Threshold T, after exceeding default Second Threshold, the state of T is switched to and forbids browse state, suppose that the Second Threshold preset is 1 minute, when monitoring within 1 minute, user does not operate T file, the state of T is switched to and forbids browse state.
In actual applications, can also whether monitor user ' be manual locks T, after monitoring user and manually line-locked operation being entered to T, the state of T is switched to and forbids browse state.
In actual applications, the state of T is switched to and forbids browse state, can for residing for T window minimize to taskbar or by close residing for T or use locking interface to be blocked by window residing for T, such as eject log-in interface to be blocked by window residing for T, log-in interface is now locking interface.
The present invention is embodiment illustrated in fig. 1 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.
Consider in actual applications, the situation that also there are needs to switching to the file forbidding browse state and continue to browse, the embodiment of the present invention provides the second document protection method, shown in Figure 2,
The present invention is embodiment illustrated in fig. 2 on basis embodiment illustrated in fig. 1, increase S103: prompting user inputs file destination solution lock password, and when the file destination solution lock password of user's input is correct, by the recovering state of file destination for allowing browse state.
After T is switched to and forbids browse state, user file can be pointed out to be locked, to browse the solution lock password that please input T as continued, when the T of user's input separate lock password correct, T is reverted to permission browse state.
After residing for T, window is minimized to taskbar, when recovery window continues to browse T, need to input the solution lock password of T, after window is closed residing for T, open T when checking, need the solution lock password inputting T, solution lock password be now T open password, after window residing for T is blocked by log-in interface, recover window when continuing to browse T, need to input the solution lock password of T, solution lock password be now user log in password.
The present invention is embodiment illustrated in fig. 2 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.When user needs to continue browser document time, input the solution lock password of correct file, by file access pattern for allowing browse state.
In order to improve the security of file, the embodiment of the present invention also provides the third document protection method, shown in Figure 3,
The present invention is embodiment illustrated in fig. 3 on basis embodiment illustrated in fig. 1, increases S104: monitor the state of the listed files residing for file destination; S105: after the state monitoring described listed files meets its condition hidden, listed files is hidden.
Also there is file A, B, C under supposing the listed files list residing for T file, the state of list is monitored, after the state monitoring list meets its condition hidden, list is hidden, makes file A, B, C and T all invisible, cannot be opened and browse.
In actual applications, whether the duration can monitoring list display exceedes the 3rd default threshold value, after exceeding the 3rd default threshold value, list is hidden, suppose preset the 3rd threshold value be 3 minutes, when monitor list display duration more than 3 minutes time, list is hidden.
In actual applications, can also monitor user ' not operating lasting duration and whether exceed the 4th default threshold value list, after exceeding default 4th threshold value, list is hidden, suppose that the 4th threshold value preset is 1 minute, when monitoring within 1 minute, user does not operate list, is hidden by list.
In actual applications, monitor user ' whether can also carry out manually hiding operation to list, if monitor user manually carried out hiding operation to list, list has been hidden.
The present invention is embodiment illustrated in fig. 3 in application, when user leaves the closing of a file account do not exited or will not open, automatically the file status opened can be switched to and forbid browse state, prevent other people browser document, improve the security of file, and listed files is hidden, make it not visible to other users, avoid other file to be checked by other users, improve the security of other file.
In actual applications, in order to make user can check the file hidden, the embodiment of the present invention also provides the 4th kind of document protection method, shown in Figure 4,
The present invention is embodiment illustrated in fig. 4 on basis embodiment illustrated in fig. 3, increases S106: prompting user-in file list display password, and when the listed files display password of user's input is correct, listed files is recovered display.
After list is hidden, user can be pointed out to input list and show password, when the list display password of user's input is correct, list is recovered display, and now file A, B, C, T is all visible, and user can browse each File Open.
The present invention is embodiment illustrated in fig. 4 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.After listed files is hidden, need the display password of input file list, listed files just can be made to show, file wherein can viewedly be checked.
The first file protection device that Fig. 5 provides for the embodiment of the present invention, comprising: the first monitoring modular 501 and state handover module 502,
Wherein, the first monitoring modular 501, for when file destination current be in allow browse state, the state of file destination is monitored;
State handover module 502, after meeting default locking condition when the state monitoring described file destination, switches to the state of file destination and forbids browse state.
Wherein, described in monitor described file destination state meet default locking condition, comprising: the duration of opening monitoring file destination exceedes default first threshold; Or monitor the do not operate lasting duration of user to file destination and exceed default Second Threshold; Or monitor user and manually file destination is conducted the locking operations.
The described state by file destination switches to forbids browse state, comprising: window residing for file destination is minimized to taskbar; Or by close residing for file destination; Or use locking interface to be blocked by window residing for file destination.
The present invention is embodiment illustrated in fig. 5 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.
The second file protection device that Fig. 6 provides for the embodiment of the present invention, comprising: the first monitoring modular 501, state handover module 502 and recovering state module 503,
Wherein, recovering state module 503, for pointing out user to input file destination solution lock password, and when the file destination solution lock password of user's input is correct, by the recovering state of file destination for allowing browse state.
The present invention is embodiment illustrated in fig. 6 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.When user needs to continue browser document time, input the solution lock password of correct file, by file access pattern for allowing browse state.
The third file protection device that Fig. 7 provides for the embodiment of the present invention, comprising: the first monitoring modular 501, state handover module 502, second monitoring modular 504 and hiding module 505,
Wherein, the second monitoring modular 504, for monitoring the state of the listed files residing for file destination;
Hide module 505, for meet its condition hidden when the state monitoring described listed files after, listed files is hidden;
The described state monitoring described listed files meets its condition hidden, and comprising: the display duration monitoring listed files exceedes the 3rd default threshold value; Or monitor the do not operate lasting duration of user to listed files and exceed the 4th default threshold value; Or monitor user manually to carry out hiding operation to listed files.
The present invention is embodiment illustrated in fig. 7 in application, when user leaves the closing of a file account do not exited or will not open, automatically the file status opened can be switched to and forbid browse state, prevent other people browser document, improve the security of file, and listed files is hidden, make it not visible to other users, avoid other file to be checked by other users, improve the security of other file.
The 4th kind of file protection device that Fig. 8 provides for the embodiment of the present invention, comprising: the first monitoring modular 501, state handover module 502, second monitoring modular 504, hiding module 505 and display module 506,
Wherein, display module 506, for pointing out user-in file list to show password, and when the listed files display password of user's input is correct, recovers display by listed files.
The present invention is embodiment illustrated in fig. 8 in application, when user leaves the closing of a file account do not exited or will not open, automatically can be switched to by the file status opened and forbid browse state, prevent other people browser document, improve the security of file.After listed files is hidden, need the display password of input file list, listed files just can be made to show, file wherein can viewedly be checked.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this instructions all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
One of ordinary skill in the art will appreciate that all or part of step realized in said method embodiment is that the hardware that can carry out instruction relevant by program has come, described program can be stored in computer read/write memory medium, here the alleged storage medium obtained, as: ROM/RAM, magnetic disc, CD etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.