[go: up one dir, main page]

CN105516056A - Encrypted file protection system and protection method thereof - Google Patents

Encrypted file protection system and protection method thereof Download PDF

Info

Publication number
CN105516056A
CN105516056A CN201410493178.4A CN201410493178A CN105516056A CN 105516056 A CN105516056 A CN 105516056A CN 201410493178 A CN201410493178 A CN 201410493178A CN 105516056 A CN105516056 A CN 105516056A
Authority
CN
China
Prior art keywords
file
client
server
client device
encrypted file
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.)
Granted
Application number
CN201410493178.4A
Other languages
Chinese (zh)
Other versions
CN105516056B (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.)
Atus Technology LLC
Original Assignee
Atus Technology LLC
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 Atus Technology LLC filed Critical Atus Technology LLC
Priority to CN201410493178.4A priority Critical patent/CN105516056B/en
Publication of CN105516056A publication Critical patent/CN105516056A/en
Application granted granted Critical
Publication of CN105516056B publication Critical patent/CN105516056B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention provides an encrypted file protection system and a protection method thereof, which are applied between client equipment and a server. When the client device requires to download the file, the server encrypts the file according to the key corresponding to the client device after verifying that the client device has the download authority, and enables the client device to download the file. When the client device wants to open the encrypted file, the information of the client device is transmitted to the server so as to confirm that the client device is an authorized client capable of opening the encrypted file. If the client device is indeed the authorized client, the encrypted file is decrypted by using the key held by the client device, and the decrypted file is opened according to the use rule recorded by the server. Therefore, the file can be prevented from being illegally downloaded and illegally copied to an unauthorized client for use after being downloaded.

Description

加密文件保护系统及其保护方法Encrypted file protection system and its protection method

技术领域technical field

本发明涉及一种保护系统与保护方法,尤其是涉及一种加密文件的保护系统以及保护方法。The invention relates to a protection system and a protection method, in particular to a protection system and a protection method for encrypted files.

背景技术Background technique

由于数字数据,例如文件、档案、影音数据等易于经由网络、光盘或随身碟等媒介被非法传递与下载,因此一直以来,如何对重要的数字数据进行有效的防护,实为本技术领域中相当重要的研发课题。Because digital data, such as documents, files, audio-visual data, etc. are easy to be illegally transmitted and downloaded through media such as networks, CDs, and flash drives, how to effectively protect important digital data has always been an important issue in this technical field. important research and development topics.

一般来说,重要的数字数据本身可经由密钥进行加密,以确保只有密钥的持有人可以开启加密后的数字数据。然而,随着科技的迅速发展,市面上实已存在着许多技术可以协助第三人对加密数据进行非法破解,换句话说,单纯以密钥对数字数据进行加密的保护方式,已无法满足使用者的需求。Generally speaking, important digital data itself can be encrypted by a key to ensure that only the holder of the key can open the encrypted digital data. However, with the rapid development of science and technology, there are already many technologies on the market that can assist third parties to illegally decrypt encrypted data. needs of the reader.

再者,一般公司与企业为了确保机密文件的安全性,因此用来储存机密文件的服务器通常都会经过加密。然而,当该些机密文件提供给内部的员工或是外部的客户、供货商进行下载后,该服务器即无法对该些被下载的机密文件进行管控与追踪。如此一来,该些下载后的机密文件容易被第三人非法取得并使用,导致企业遭受严重的损害。Furthermore, in order to ensure the security of confidential documents, general companies and enterprises generally encrypt servers used to store confidential documents. However, when these confidential files are provided to internal employees or external customers and suppliers for downloading, the server cannot control and track the downloaded confidential files. As a result, these downloaded confidential files are likely to be illegally obtained and used by a third party, causing serious damage to the enterprise.

发明内容Contents of the invention

本发明的主要目的,在于提供一种加密文件的保护系统以及保护方法,可依据请求下载文件的客户端设备所对应的密钥来为文件进行实时加密,借以令加密文件与请求下载的客户端设备绑定在一起。The main purpose of the present invention is to provide a protection system and protection method for encrypted files, which can encrypt files in real time according to the key corresponding to the client device requesting to download the file, so that the encrypted file and the client device requesting download The devices are bonded together.

本发明的另一主要目的,在于提供一种加密文件的保护系统以及保护方法,可于客户端设备要开启文件时,验证客户端设备是否为授权客户端,并且判断客户端设备是否持有正确的密钥可为加密文件进行解密,借以避免文件下载后被非法复制到其它客户端设备上使用。Another main purpose of the present invention is to provide a protection system and protection method for encrypted files, which can verify whether the client device is an authorized client when the client device wants to open the file, and determine whether the client device holds the correct file. The encrypted key can be used to decrypt encrypted files, so as to prevent files from being illegally copied to other client devices after downloading.

为了实现上述的目的,本发明揭示了一种加密文件保护方法,运用于一客户端设备与一服务器,其中该客户端设备具有一客户端代理软件,该伺服器具有一服务器端管理软件,包括:In order to achieve the above object, the present invention discloses an encrypted file protection method, which is applied to a client device and a server, wherein the client device has a client agent software, and the server has a server management software, including :

a)该客户端代理软件取得一加密文件并进行本地端开启;a) The client agent software obtains an encrypted file and opens it locally;

b)传送该客户端设备的信息至该服务器;b) sending the information of the client device to the server;

c)该服务器端管理软件依据接收的该信息,判断该客户端设备是否为可开启该加密文件的一授权客户端;c) The server-side management software judges whether the client device is an authorized client that can open the encrypted file according to the received information;

d)若该客户端设备为该授权客户端,该客户端代理软件判断本身持有的一客户端密钥是否可为该加密文件进行解密;d) If the client device is the authorized client, the client agent software judges whether a client key held by itself can decrypt the encrypted file;

e)若该客户端代理软件持有的该客户端密钥可为该加密文件解密,进一步向该服务器端管理软件提出询问,以确认该客户端设备目前的开启动作是否符合该加密文件被设定的一使用规则;及e) If the client key held by the client agent software can decrypt the encrypted file, further query the server-side management software to confirm whether the current opening action of the client device conforms to the encrypted file is set prescribed rules of use; and

f)若该开启动作符合该使用规则,解密该加密文件为一文件,并依据该使用规则开启该文件。f) If the opening action complies with the usage rule, decrypt the encrypted file into a file, and open the file according to the usage rule.

如上所述,其中还包括一步骤g:若该客户端设备不是该授权客户端,或该客户端代理软件持有的该客户端密钥无法为该加密文件解密,或该开启动作不符合该使用规则,则响应该开启动作被禁止的消息。As mentioned above, a step g is also included: if the client device is not the authorized client, or the client key held by the client agent software cannot decrypt the encrypted file, or the opening action does not comply with the Using a rule, respond to a message that the opening action is prohibited.

如上所述,其中该客户端设备的该信息为该客户端设备的媒体存取控制地址(MediaAccessControlAddress,MACAddress),以及该客户端代理软件的授权代码。As mentioned above, the information of the client device is the media access control address (MediaAccessControlAddress, MACAddress) of the client device and the authorization code of the client agent software.

如上所述,其中该步骤f中,由该客户端代理软件允许该客户端设备中的应用程序开启该文件。As mentioned above, in the step f, the client agent software allows the application program in the client device to open the file.

如上所述,其中该步骤c中,该服务器端管理软件比对所接收的该信息,以及该加密文件预先设定的一授权权限数据,以判断该客户端设备是否为该授权客户端,其中该授权权限数据记录了该加密文件可被共享的一共享对象以及该使用规则。As mentioned above, in step c, the server-side management software compares the received information with an authorization authority data preset in the encrypted file to determine whether the client device is the authorized client, wherein The authorization authority data records a sharing object and the usage rule that the encrypted file can be shared with.

如上所述,其中该步骤a之前还包括下列步骤:As mentioned above, wherein the step a also includes the following steps before:

a01)向该服务器端管理软件提出一文件共享请求;a01) making a file sharing request to the server-side management software;

a02)选择要进行共享的该文件;a02) Select the file to be shared;

a03)设定该文件的该共享对象;a03) setting the shared object of the file;

a04)设定该文件的该使用规则;及a04) setting the usage rules for the document; and

a05)将该共享对象及该使用规则储存为该文件的该授权权限数据。a05) storing the shared object and the usage rule as the authorization permission data of the file.

如上所述,其中该步骤a之前还包括下列步骤:As mentioned above, wherein the step a also includes the following steps before:

a11)该客户端代理软件向该服务器端管理软件提出该文件的下载请求;a11) The client agent software makes a download request of the file to the server management software;

a12)该服务器端管理软件依据该客户端代理软件的登录信息取出对应的一使用者数据,其中该使用者数据储存于该服务器;a12) The server management software retrieves a corresponding user data according to the login information of the client agent software, wherein the user data is stored in the server;

a13)该服务器端管理软件取得该文件的该授权权限数据;a13) The server-side management software obtains the authorization permission data of the file;

a14)比对该使用者数据与该授权权限数据,以判断该客户端代理软件是否具有该文件的下载权限;a14) comparing the user data with the authorization authority data to determine whether the client agent software has the download authority of the file;

a15)若该客户端代理软件具有该文件的下载权限,该服务器端管理软件依据该使用者数据取得对应的该客户端密钥,其中该客户端密钥储存于该服务器;a15) If the client agent software has the download authority of the file, the server management software obtains the corresponding client key according to the user data, wherein the client key is stored in the server;

a16)使用该客户端密钥对该文件进行加密,以产生该加密文件;及a16) encrypting the file using the client key to generate the encrypted file; and

a17)提供该加密文件供该客户端代理软件进行下载。a17) providing the encrypted file for the client agent software to download.

如上所述,其中该服务器端管理软件产生该加密文件时,将该客户端设备的信息与请求下载的时间放入该加密文件中,并且该加密文件保护方法还包括一步骤h:将该客户端设备的信息与请求下载的时间以水印方式动态显示于被开启该文件上。As mentioned above, when the server-side management software generates the encrypted file, it puts the information of the client device and the time of requesting download into the encrypted file, and the encrypted file protection method further includes a step h: the client The information of the end device and the time of the requested download are dynamically displayed on the opened file as a watermark.

如上所述,其中该步骤a之前还包括下列步骤:As mentioned above, wherein the step a also includes the following steps before:

a21)安装该客户端代理软件于该客户端设备;a21) installing the client agent software on the client device;

a22)该客户端代理软件启动后连接至该服务器进行首次登录;a22) After the client agent software is started, it connects to the server to log in for the first time;

a23)该服务器端管理软件将该客户端代理软件的登录信息储存为该使用者数据,并依据该使用者数据产生该客户端代理软件专属的该客户端密钥;a23) The server-side management software stores the login information of the client agent software as the user data, and generates the client key exclusive to the client agent software according to the user data;

a24)该服务器端管理软件记录该客户端密钥,并令该客户端密钥与该使用者数据产生关联;及a24) The server-side management software records the client key, and associates the client key with the user data; and

a25)该客户端代理软件记录该客户端密钥。a25) The client agent software records the client key.

如上所述,其中还包括一步骤i:步骤f后,该客户端代理软件回传一开启信息至该服务器端管理软件。As mentioned above, a step i is also included: after step f, the client agent software returns an opening message to the server management software.

为了达到上述目的,本发明还揭示了一种加密文件保护系统,包括:In order to achieve the above object, the present invention also discloses an encrypted file protection system, comprising:

一客户端代理软件,安装于一客户端设备,包括:A client agent software installed on a client device, including:

一权限过滤模块,于该客户端设备欲开启一加密文件时传送该客户端设备的信息至一服务器,以确认该客户端设备为被允许开启该加密文件的一授权客户端;及A permission filtering module, when the client device intends to open an encrypted file, the information of the client device is sent to a server to confirm that the client device is an authorized client that is allowed to open the encrypted file; and

一文件解密执行模块,于确认该客户端设备为该授权客户端后,采用该客户端代理软件持有的一客户端密钥解密该加密文件为一文件,并于目前的开启动作符合该文件被设定的一使用规则时开启该文件,其中该使用规则储存于该服务器;A file decryption execution module, after confirming that the client device is the authorized client, uses a client key held by the client agent software to decrypt the encrypted file into a file, and the current opening action conforms to the file Open the file when a usage rule is set, wherein the usage rule is stored in the server;

一服务器端管理软件,安装于与该客户端设备通过网络连接的该服务器,包括:A server-side management software installed on the server connected to the client device through the network, including:

一权限过滤管理模块,与该权限过滤模块沟通,以通过接收的该信息确认该客户端设备是否为该授权客户端;An authority filtering management module, communicating with the authority filtering module to confirm whether the client device is the authorized client through the received information;

一密钥管理模块,于该客户端代理软件首次向该服务器进行登录时,依据该客户端代理软件的登录信息制作专属的该客户端密钥,其中该客户端密钥同时记录于该客户端代理软件与该服务器端管理软件;A key management module, when the client agent software logs in to the server for the first time, according to the login information of the client agent software, an exclusive client key is produced, wherein the client key is simultaneously recorded in the client Agent software and the server-side management software;

一加解密控制模块,具有一下载加密模块,于接收该客户端代理软件对该文件的下载请求时,取得该客户端代理软件对应的该客户端密钥对该文件进行加密,以产生该加密文件;及An encryption and decryption control module has a download encryption module. When receiving the download request of the client agent software for the file, it obtains the client key corresponding to the client agent software and encrypts the file to generate the encrypted file. documents; and

一数据控制枢纽,用以处理、整合与转换该权限过滤管理模块、该密钥管理模块及该加解密控制模块的数据与指令。A data control hub is used for processing, integrating and converting the data and instructions of the authority filtering management module, the key management module and the encryption and decryption control module.

如上所述,其中该文件经该服务器的一服务器密钥加密,该加解密控制模块还具有一下载解密模块,于接收该客户端代理软件对该文件的下载请求时,取得该服务器密钥对该文件进行解密以产生一原始文件,并令该下载加密模块以该客户端密钥对该原始文件进行加密,以产生该加密文件。As mentioned above, wherein the file is encrypted by a server key of the server, the encryption and decryption control module also has a download decryption module, which obtains the server key pair when receiving the download request of the file from the client agent software. The file is decrypted to generate an original file, and the download encryption module encrypts the original file with the client key to generate the encrypted file.

如上所述,其中该客户端代理软件还包括一客户端加密模块,于该客户端设备编辑完成一文件档案后,采用该客户端代理软件持有的该客户端密钥对该文件档案进行加密,并且该客户端设备将加密后的该文件档案上传至该服务器储存。As mentioned above, wherein the client agent software also includes a client encryption module, after the client device edits a file file, the client key held by the client agent software is used to encrypt the file file , and the client device uploads the encrypted file to the server for storage.

如上所述,其中该加解密控制模块还具有:As mentioned above, the encryption and decryption control module also has:

一上传解密模块,于接收该文件档案后,取得该客户端设备对应的该客户端密钥对该文件档案进行解密,以产生一原始文件档案;及An upload decryption module, after receiving the file, obtains the client key corresponding to the client device to decrypt the file to generate an original file; and

一上传加密模块,取得该服务器预设的一服务器密钥对该原始文件档案进行加密,以产生该文件。An upload encryption module obtains a server key preset by the server to encrypt the original file file to generate the file.

如上所述,其中该服务器储存有一使用记录数据,该使用记录数据记录该客户端设备对该加密文件的开启信息。As mentioned above, the server stores a usage record data, and the usage record data records the opening information of the encrypted file by the client device.

如上所述,其中该服务器储存有该文件的一授权权限数据,该授权权限数据记录该文件的该使用规则及一共享对象,其中该权限过滤管理模块将该客户端设备的该信息与该文件的该共享对象进行比对,以确认该客户端设备是否为该授权客户端。As mentioned above, wherein the server stores an authorization authority data of the file, and the authorization authority data records the use rule of the file and a shared object, wherein the authority filtering management module combines the information of the client device with the file The shared object is compared to confirm whether the client device is the authorized client.

本发明对照现有技术所能达到的技术效果为,该服务器在收到下载文件的请求时,会先确认发出请求的客户端设备是否具有该文件的下载权限,借此避免该文件遭到非法的下载。另外,该服务器会使用与请求下载的客户端设备相对应的密钥来为该文件进行加密并产生该加密文件。借此,可将该加密文件与请求下载的该客户端设备绑定在一起,杜绝其它的设备复制使用该加密文件。The technical effect achieved by the present invention compared with the prior art is that when the server receives a request for downloading a file, it will first confirm whether the requesting client device has the download authority of the file, thereby preventing the file from being illegally downloaded. download. In addition, the server encrypts the file using a key corresponding to the client device requesting the download and generates the encrypted file. In this way, the encrypted file can be bound together with the client device requesting to download, preventing other devices from copying and using the encrypted file.

进一步,当客户端设备要开启该加密文件时,需由该服务器判断该客户端设备是否为被允许开启该加密文件的授权客户端,并且该客户端设备还需通过预先持有的密钥来对该加密文件进行解密。如此一来,可进一步排除该加密文件被非法使用的可能性。Further, when the client device wants to open the encrypted file, the server needs to judge whether the client device is an authorized client that is allowed to open the encrypted file, and the client device also needs to use the pre-held key to open the encrypted file. Decrypt the encrypted file. In this way, the possibility of illegal use of the encrypted file can be further excluded.

另外,该文件在该服务器上被要求共享时,还可于该服务器上设定该文件的使用规则。如此一来,当该客户端设备开启该加密文件时,还需遵守预先设定的该使用规则,如此可避免该文件遭到无限制的滥用。In addition, when the file is required to be shared on the server, usage rules for the file can also be set on the server. In this way, when the client device opens the encrypted file, it also needs to abide by the preset usage rules, so as to prevent the file from being abused without restriction.

附图说明Description of drawings

图1为本发明的第一具体实施例的系统架构图;Fig. 1 is a system architecture diagram of the first specific embodiment of the present invention;

图2为本发明的第一具体实施例的系统方块图;Fig. 2 is the system block diagram of the first specific embodiment of the present invention;

图3为本发明的第一具体实施例的客户端代理软件示意图;Fig. 3 is the schematic diagram of client agent software of the first specific embodiment of the present invention;

图4为本发明的第一具体实施例的服务器端管理软件示意图;Fig. 4 is a schematic diagram of the server-side management software of the first embodiment of the present invention;

图5为本发明的第一具体实施例的注册流程图;Fig. 5 is the registration flowchart of the first specific embodiment of the present invention;

图6为本发明的第一具体实施例的文件共享申请流程图;FIG. 6 is a flow chart of file sharing application in the first embodiment of the present invention;

图7为本发明的第一具体实施例的加密文件下载流程图;Fig. 7 is the encrypted file download flow chart of the first specific embodiment of the present invention;

图8为本发明的第二具体实施例的加密文件下载流程图;Fig. 8 is the encrypted file download flow chart of the second specific embodiment of the present invention;

图9为本发明的第一具体实施例的加密文件开启流程图;Fig. 9 is a flow chart of opening an encrypted file according to the first embodiment of the present invention;

附图标记reference sign

1:服务器10:服务器端管理软件1: Server 10: Server-side management software

101:数据控制枢纽102:权限过滤管理模块101: Data Control Hub 102: Permission Filtering Management Module

103:密钥管理模块104:加解密控制模块103: key management module 104: encryption and decryption control module

1041:下载加密模块1042:下载解密模块1041: Download the encryption module 1042: Download the decryption module

1043:上传解密模块1044:上传加密模块1043: upload decryption module 1044: upload encryption module

11:文件12:使用者数据11: File 12: User Data

13:客户端密钥14:授权权限数据13: Client key 14: Authorization authority data

15:使用记录数据16:加密15: Use record data 16: Encryption

2:客户端设备20:客户端代理软件2: client device 20: client agent software

201:权限过滤模块202:文件解密执行模块201: Permission filtering module 202: File decryption execution module

203:客户端加密模块21:内部客户端设备203: Client encryption module 21: Internal client device

22:外部客户端设备3:网络系统22: External client device 3: Network system

31:加密通信管道S10~S18:注册步骤31: Encrypted communication channels S10-S18: Registration steps

S20~S28:申请步骤S30~S42、S50~S56:下载步骤S20~S28: Application steps S30~S42, S50~S56: Download steps

S60~S76:开启步骤S60~S76: opening steps

具体实施方式detailed description

现就本发明的一较佳实施例,配合附图详细说明如下。With regard to a preferred embodiment of the present invention, it is described in detail as follows with reference to the accompanying drawings.

参照图1与图2,分别为本发明的第一具体实施例的系统架构图与系统方块图。本发明揭示了一种加密文件的保护系统与保护方法,该系统与该方法主要运用于一服务器1与一客户端设备2之间。而如图1所示,本案中所指的该客户端设备2,包括通过内部网络连接该服务器1的一台或多台内部客户端设备21,以及通过因特网连接该服务器1的一台或多台外部客户端设备22。具体而言,若该服务器1为一企业内部的管理服务器,则可将该内部客户端设备2视为该企业内部员工使用的设备,而将该外部客户端设备2视为该企业外部的客户或供货商使用的设备。由图1可看出,该系统中实可包含为数众多的该客户端设备2,为方便说明,后面将于说明书中以单台的该客户端设备2来举例说明。Referring to FIG. 1 and FIG. 2 , they are a system architecture diagram and a system block diagram of a first embodiment of the present invention, respectively. The present invention discloses a protection system and method for encrypted files. The system and method are mainly used between a server 1 and a client device 2 . As shown in Figure 1, the client device 2 referred to in this case includes one or more internal client devices 21 connected to the server 1 through the internal network, and one or more internal client devices 21 connected to the server 1 through the Internet. An external client device 22. Specifically, if the server 1 is an internal management server of an enterprise, the internal client device 2 can be regarded as a device used by internal employees of the enterprise, and the external client device 2 can be regarded as a client outside the enterprise or equipment used by suppliers. It can be seen from FIG. 1 that the system may actually include a large number of client devices 2 . For the convenience of description, a single client device 2 will be used as an example in the description below.

图2将上述的内部网络与因特网统称为一网络系统3,该客户端设备2与该服务器1主要是通过该网络系统3中的一加密通信管道31进行联机。然而,如何于该网络系统3中建立该加密通信管道31,属于本技术领域的通常知识,故不在此赘述。FIG. 2 collectively refers to the above-mentioned internal network and the Internet as a network system 3 , and the client device 2 and the server 1 are mainly connected through an encrypted communication channel 31 in the network system 3 . However, how to establish the encrypted communication channel 31 in the network system 3 belongs to common knowledge in the technical field, so details are not described here.

本实施例中,该客户端设备2中可安装有一客户端代理软件20,并且该服务器1中可有安装一服务器端管理软件10。当一使用者操作该客户端设备2联机至该服务器1,并欲对该服务器1中储存的一文件11进行上传、下载、共享、开启、编辑、删除等动作时,主要是借由该客户端代理软件20与该服务器端管理软件10的沟通,以协助使用者完成上述动作。In this embodiment, a client agent software 20 may be installed in the client device 2 , and a server management software 10 may be installed in the server 1 . When a user operates the client device 2 to connect to the server 1 and intends to upload, download, share, open, edit, delete, etc. a file 11 stored in the server 1, it is mainly through the client The client agent software 20 communicates with the server management software 10 to assist the user to complete the above actions.

该服务器1主要可具有一数据库(图未示),该数据库中储存一份或多份的该文件11,该些文件11可为使用者在该客户端设备2上编辑后上传至该服务器1中,亦可为使用者经由该服务器1提供的在线编辑程序(图未示)直接编辑而成,但不加以限定。The server 1 can mainly have a database (not shown), which stores one or more files 11, and these files 11 can be edited by the user on the client device 2 and then uploaded to the server 1 , it can also be directly edited by the user through an online editing program (not shown) provided by the server 1, but it is not limited thereto.

本实施例中,当该客户端设备2安装了该客户端代理软件20并且首次启动后,即可通过该客户端代理软件20向该服务器1进行登录。而在该客户端代理软件20完成登录后,该服务器1中即将该客户端代理软件20的登录信息,例如一授权代码储存为一使用者数据12,其中该使用者数据12对应至该客户端代理软件20。In this embodiment, after the client device 2 is installed with the client agent software 20 and started for the first time, it can log in to the server 1 through the client agent software 20 . After the client agent software 20 completes the login, the login information of the client agent software 20, such as an authorization code, is stored as a user data 12 in the server 1, wherein the user data 12 corresponds to the client agent software20.

值得一提的是,当该客户端代理软件20首次登录后,该服务器端管理软件10即依据该客户端代理软件20对应的该使用者数据12(即,上述登录信息),产生该客户端代理软件20专属的一客户端密钥13。该客户端密钥13被储存于该服务器1中,并且同时被该客户端代理软件20所记录。当该客户端设备2日后通过该客户端代理软件20请求下载该些文件11时,该服务器端管理软件10会使用该客户端代理软件20对应的该客户端密钥13对该些文件11进行加密,而产生可供下载的一加密文件16。而当该客户端设备2成功下载了该加密文件16后,可通过该客户端代理软件20记录的该客户端密钥13来进行解密。It is worth mentioning that, when the client agent software 20 logs in for the first time, the server management software 10 generates the client client data 12 according to the user data 12 corresponding to the client agent software 20 (that is, the above login information). A client key 13 specific to the agent software 20 . The client key 13 is stored in the server 1 and recorded by the client agent software 20 at the same time. When the client device 2 requests to download these files 11 through the client agent software 20 in the future, the server-side management software 10 will use the client key 13 corresponding to the client agent software 20 to perform a download of these files 11 Encrypt to generate an encrypted file 16 available for download. And when the client device 2 successfully downloads the encrypted file 16 , it can be decrypted by the client key 13 recorded by the client agent software 20 .

本实施例中,一文件编辑者或一系统管理者可向该服务器1提出一文件共享请求,具体而言,请求该服务器1允许该些文件11被共享,并且设定被共享的方式。举例来说,设定该些文件11可被共享给哪一台客户端设备进行下载、可在哪个时间被下载/开启、可被开启几次、是否可被编辑、是否可被打印等。并且,上述该些设定会被该服务器端管理软件10记录为该些文件11的一授权权限数据14。当该该客户端设备2下载了该些文件11的其中之一时,只有在该客户端设备2的操作符合该文件11对应的该授权权限数据14时,该文件11才可被开启,并且该文件11被开启后仅能执行符合该授权权限数据14的操作。In this embodiment, a file editor or a system administrator can submit a file sharing request to the server 1 , specifically, request the server 1 to allow the files 11 to be shared and set the sharing method. For example, set which client device these files 11 can be shared with for downloading, when they can be downloaded/opened, how many times they can be opened, whether they can be edited, whether they can be printed, etc. Moreover, the above-mentioned settings will be recorded by the server-side management software 10 as an authorization authority data 14 of the files 11 . When the client device 2 downloads one of the files 11, the file 11 can be opened only when the operation of the client device 2 conforms to the authorization authority data 14 corresponding to the file 11, and the After the file 11 is opened, only operations conforming to the authorization authority data 14 can be performed.

参照图3,为本发明的第一具体实施例的客户端代理软件示意图。如图3所示,该客户端代理软件20主要可区分为一权限过滤模块201、一文件解密执行模块202及一客户端加密模块203。当该客户端设备2下载了该加密文件16,并通过该客户端代理软件20进行开启时,需通过该权限过滤模块201与该服务器端管理软件10进行沟通,以确认该客户端设备2是否为可以合法开启该加密文件16的授权客户端。举例来说,该权限过滤模块201可传送该客户端设备2的信息至该服务器1,以进行确认(将在后面进行详细说明)。若该客户端设备2确实为授权客户端,再由该文件解密执行模块202以该客户端代理软件20记录的该客户端密钥13为该加密文件16进行解密,以还原为该文件11。并且,该文件解密执行模块202于解密成功后开启该文件11。Referring to FIG. 3 , it is a schematic diagram of client agent software according to the first specific embodiment of the present invention. As shown in FIG. 3 , the client agent software 20 can be mainly divided into a permission filtering module 201 , a file decryption execution module 202 and a client encryption module 203 . When the client device 2 downloads the encrypted file 16 and opens it through the client agent software 20, it needs to communicate with the server management software 10 through the authority filtering module 201 to confirm whether the client device 2 is It is an authorized client that can legally open the encrypted file 16. For example, the permission filtering module 201 can transmit the information of the client device 2 to the server 1 for confirmation (details will be described later). If the client device 2 is indeed an authorized client, then the file decryption execution module 202 uses the client key 13 recorded by the client agent software 20 to decrypt the encrypted file 16 to restore the file 11 . Moreover, the file decryption execution module 202 opens the file 11 after successful decryption.

值得一提的是,若该客户端设备2为企业内部的设备,则该客户端代理软件20可进一步受企业规定的文件保护政策(Policy)的限制。举例来说,企业可规定内部所有设备所编辑的文件档案(例如Word文件、Excel文件、PowerPoint文件、PDF文件等)都必须加密后再上传至该服务器1,以确保文件的机密性。于此实施例中,若使用者操作该客户端设备2中的文件编辑软件进行文件档案的编辑,则在该文件档案编辑完成后,该客户端代理软件20可自动通过该客户端加密模块203为该文件档案进行加密(具体而言,采用该客户端代理软件20记录的该客户端密钥13进行加密)。并且,加密后的该文件档案再被上传至该服务器1,以储存为该些文件11的其中之一。It is worth mentioning that if the client device 2 is an internal device of an enterprise, the client agent software 20 may be further restricted by the file protection policy (Policy) stipulated by the enterprise. For example, an enterprise may stipulate that all files edited by internal devices (such as Word files, Excel files, PowerPoint files, PDF files, etc.) must be encrypted before uploading to the server 1 to ensure the confidentiality of the files. In this embodiment, if the user operates the file editing software in the client device 2 to edit the file file, after the file file editing is completed, the client agent software 20 can automatically pass the client encryption module 203 Encrypt the file archive (specifically, use the client key 13 recorded by the client agent software 20 to encrypt). And, the encrypted file is uploaded to the server 1 to be stored as one of the files 11 .

本实施例中,该客户端代理软件20主要是类似驱动程序的应用软件,常驻执行于该客户端设备2的底层,并可与该客户端设备2中安装的各项应用程序进行沟通。于上述实施例中,该客户端代理软件20可通过沟通,允许或禁止该些应用程序对该文件所进行的动作(例如开启、编辑、自动加密、上传、打印、转发等)。然而,上述仅为本发明的较佳具体实例,不应以此为限。In this embodiment, the client agent software 20 is mainly an application software similar to a driver, which resides and executes at the bottom layer of the client device 2 and can communicate with various application programs installed in the client device 2 . In the above-mentioned embodiment, the client agent software 20 can allow or prohibit actions performed by these applications on the file (such as opening, editing, automatic encryption, uploading, printing, forwarding, etc.) through communication. However, the above are only preferred specific examples of the present invention and should not be limited thereto.

参照图4,为本发明的第一具体实施例的服务器端管理软件示意图。如图4所示,该服务器端管理软件10主要可区分为一数据控制枢纽101、一权限过滤管理模块102、一密钥管理模块103及一加解密控制模块104。该数据控制枢纽101为该服务器端管理软件10的软件核心,用以处理、整合与转换该权限过滤管理模块102、该密钥管理模块103及该加解密控制模块104的数据与指令。Referring to FIG. 4 , it is a schematic diagram of the server-side management software of the first specific embodiment of the present invention. As shown in FIG. 4 , the server-side management software 10 can be mainly divided into a data control hub 101 , a rights filtering management module 102 , a key management module 103 and an encryption and decryption control module 104 . The data control hub 101 is the software core of the server-side management software 10 for processing, integrating and converting the data and instructions of the authority filtering management module 102 , the key management module 103 and the encryption and decryption control module 104 .

该权限过滤管理模块102于验证程序时与该权限过滤模块201进行沟通,以确认要开启该加密文件16的该客户端设备2是否为授权客户端。该密钥管理模块103于该客户端代理软件20首次登录时,依据对应的该使用者数据12动态制作专属的该客户端密钥13,并且对所制作的所有该客户端密钥13进行管理。The rights filtering management module 102 communicates with the rights filtering module 201 during the verification procedure to confirm whether the client device 2 that will open the encrypted file 16 is an authorized client. The key management module 103 dynamically creates the exclusive client key 13 according to the corresponding user data 12 when the client agent software 20 logs in for the first time, and manages all the produced client keys 13 .

该加解密控制模块104主要包括一下载加密模块1041及一下载解密模块1042。当该客户端设备2欲下载该文件11时,由该下载加密模块1041依据该使用者数据12取出对应的该客户端密钥13,并使用该客户端密钥13对该文件11进行加密,以产生该加密文件16后,供该客户端设备2下载。The encryption and decryption control module 104 mainly includes a download encryption module 1041 and a download decryption module 1042 . When the client device 2 intends to download the file 11, the download encryption module 1041 takes out the corresponding client key 13 according to the user data 12, and uses the client key 13 to encrypt the file 11, After the encrypted file 16 is generated, it can be downloaded by the client device 2 .

值得一提的是,本实施例中,该服务器1先对该客户端设备2请求下载的该文件11进行复制动作,再对多个的该文件11进行加密。换句话说,即使经过加密与下载动作,该服务器1中仍然保有原始的该文件11。It is worth mentioning that, in this embodiment, the server 1 first copies the file 11 requested to be downloaded by the client device 2 , and then encrypts multiple files 11 . In other words, even after encryption and downloading, the server 1 still retains the original file 11 .

根据企业的文件保护政策不同而定,该服务器1中储存的该些文件11可能是未经加密的原始文件,也可能是经过一服务器密钥加密过的文件。若该些文件11已经过该服务器密钥加密过,则该服务器端管理软件10要产生上述该加密文件16以供该客户端设备2下载之前,需先通过该下载解密模块1042取得该服务器密钥,并使用该服务器密钥对该文件11进行解密,以得到该文件11的原始文件后,再对原始文件进行上述的复制、加密动作,如此才会产生供该客户端设备2下载的该加密文件16。Depending on the file protection policy of the enterprise, the files 11 stored in the server 1 may be unencrypted original files, or files encrypted with a server key. If these files 11 have been encrypted by the server key, then the server management software 10 needs to obtain the server key through the download decryption module 1042 before generating the above-mentioned encrypted file 16 for the client device 2 to download. key, and use the server key to decrypt the file 11 to obtain the original file of the file 11, and then carry out the above-mentioned copying and encryption actions on the original file, so that the client device 2 will be downloaded. Encrypted files16.

另,该加解密控制模块104中还可包含一上传解密模块1043与一上传加密模块1044。如前文中所述,该客户端设备2编辑完一文件档案并上传时,可能因企业的文件保护政策的关系,先以该客户端密钥13加密后再上传。于此实施例中,当该服务器1接收到该客户端设备2上传的该文件档案后,先由该上传解密模块1043依据对应的该使用者数据12取出对应的该客户端密钥13,并使用该客户端密钥13对上传的该文件档案进行解密,以产生一原始文件档案。接着,再由该上传加密模块1044取出该服务器密钥,并以该服务器密钥对该原始文件档案进行加密后,储存为上述该些文件11的其中之一。通过上述模块,可以达到令该文件11无论是在该客户端设备2上、在该服务器1上、还是在传输过程中,皆可受到加密的保护。In addition, the encryption and decryption control module 104 may further include an upload decryption module 1043 and an upload encryption module 1044 . As mentioned above, when the client device 2 finishes editing a file and uploads it, it may first encrypt it with the client key 13 and then upload it due to the company's file protection policy. In this embodiment, after the server 1 receives the file file uploaded by the client device 2, the upload decryption module 1043 first extracts the corresponding client key 13 according to the corresponding user data 12, and Use the client key 13 to decrypt the uploaded file to generate an original file. Next, the upload encryption module 1044 takes out the server key, encrypts the original file file with the server key, and stores it as one of the above-mentioned files 11 . Through the above modules, the file 11 can be protected by encryption no matter on the client device 2 , on the server 1 or during transmission.

参照图5,为本发明的第一具体实施例的注册流程图。若要有效运用本发明的保护方法,并加入该保护系统,首先,使用者需于该客户端设备2中安装该客户端代理软件20(步骤S10)。接着,在该客户端代理软件20首次启动后,可联机至该服务器1以进行登录(步骤S12)。本实施例中,该服务器1可于该客户端代理软件20登录时,将该客户端代理软件20的登录信息记录为该客户端代理软件20该使用者数据12。Referring to FIG. 5 , it is a registration flowchart of the first specific embodiment of the present invention. To effectively use the protection method of the present invention and join the protection system, firstly, the user needs to install the client agent software 20 in the client device 2 (step S10). Then, after the client agent software 20 is started for the first time, it can be connected to the server 1 to log in (step S12). In this embodiment, the server 1 can record the login information of the client agent software 20 as the user data 12 of the client agent software 20 when the client agent software 20 logs in.

当该客户端代理软件20完成首次登录后,该服务器端管理软件10依据该客户端代理软件20的该使用者数据12,动态制作专属于该客户端代理软件20的该客户端密钥13(步骤S14),并且令该客户端密钥13与该使用者数据12产生关联。该步骤S14后,该服务器端管理软件10会储存该客户端密钥13(步骤S16),并令该客户端密钥13与该使用者数据12产生关联。同时,该服务器端管理软件10提供该客户端密钥13给该客户端代理软件20,以令该客户端代理软件20记录该客户端密钥13(步骤S18)。After the client agent software 20 completes the first login, the server management software 10 dynamically makes the client key 13 ( Step S14 ), and associate the client key 13 with the user data 12 . After the step S14, the server management software 10 stores the client key 13 (step S16), and associates the client key 13 with the user data 12. At the same time, the server management software 10 provides the client key 13 to the client agent software 20, so that the client agent software 20 records the client key 13 (step S18).

通过上步骤S10至步骤S18,该客户端代理软件20可于安装完成并首次启动后,即向该服务器1进行登录。并且于登录完成后,该服务器1与该客户端代理软件20中都储存有该客户端代理软件20专属的该客户端密钥13。Through the above steps S10 to S18, the client agent software 20 can log in to the server 1 after the installation is completed and the first startup is started. And after the login is completed, both the server 1 and the client agent software 20 store the client key 13 exclusive to the client agent software 20 .

参照图6,为本发明的第一具体实施例的文件共享申请流程图。如前文中所述,若要将该服务器1中的任一该文件11共享给其它设备下载,则使用者(如文件编辑者或系统管理者)可向该服务器端管理软件10提出上述该文件共享请求(步骤S20)。于该文件共享请求中,该使用者主要需选择要进行共享的该文件11(步骤S22)、设定共享对象的该客户端设备2(步骤S24)、并且设定该文件11的使用规则(步骤S26)。并且,该使用者完成上述步骤S20至步骤S26的设定后,该服务器端管理软件10将上述设定参数储存为该文件11的该授权权限数据14(步骤S28)。上述该步骤S20至步骤S26并不具有执行上的顺序关系,故不以上述为限。Referring to FIG. 6 , it is a flow chart of file sharing application in the first specific embodiment of the present invention. As mentioned above, if any file 11 in the server 1 is to be shared with other devices for downloading, the user (such as a file editor or system manager) can propose the above-mentioned file to the server-side management software 10 Sharing request (step S20). In the file sharing request, the user mainly needs to select the file 11 to be shared (step S22), set the client device 2 to be shared (step S24), and set usage rules for the file 11 (step S22). Step S26). And, after the user completes the settings from the above steps S20 to S26, the server management software 10 stores the above setting parameters as the authorization authority data 14 of the file 11 (step S28). The above step S20 to step S26 do not have a sequence relationship in execution, so it is not limited to the above.

更具体而言,该步骤S22中选择要进行共享的该文件11,即为该使用者希望可以让共享对象的该客户端设备2下载的文件。该步骤S24中设定的该共享对象,即为该使用者希望该文件11可以被下载并开启的授权客户端。于该步骤S24中,该使用者可以设定该共享对象的媒体存取控制地址(MediaAccessControlAddress,MACAddress),或是该共享对象内安装的该客户端代理软件20的该使用者数据12,但不加以限定。该步骤S26中设定的该使用规则,即为该使用者希望该文件11被下载后可以被操作的动作,例如可被开启的时间、次数、是否可被编辑、是否可被打印等。然而,以上所述皆仅为本发明的较佳具体实例,不应以此为限。More specifically, the file 11 selected to be shared in step S22 is the file that the user wishes to allow the client device 2 to be shared with to download. The sharing object set in step S24 is the authorized client that the user wants the file 11 to be downloaded and opened. In the step S24, the user can set the media access control address (MediaAccessControlAddress, MACAddress) of the shared object, or the user data 12 of the client agent software 20 installed in the shared object, but not Be limited. The usage rule set in the step S26 is the action that the user wants the file 11 to be operated after being downloaded, such as the opening time, times, whether it can be edited, whether it can be printed, etc. However, the above descriptions are only preferred specific examples of the present invention and should not be limited thereto.

参照图7,为本发明的第一具体实施例的加密文件下载流程图。当该客户端设备2要请求下载该文件11时,主要是通过该客户端设备2上的浏览器(Browser)来连接并登录该服务器1,并向该服务器端管理软件10请求下载该文件11(步骤S30)。接着,该服务器端管理软件10依据该客户端设备2的登录信息(在此指该客户端代理软件20的信息),于该服务器1中取出对应的该使用者数据12,并且同时取出该文件11的该授权权限数据14(步骤S32)。该步骤S32后,该服务器端管理软件10将该使用者数据12与该授权权限数据14进行比对,以判断该客户端设备2(即,该客户端代理软件20)是否具有该文件11的下载权限(步骤S34)。若该客户端设备2不具有该文件11的下载权限,则该服务器端管理软件20拒绝该客户端设备2对于该文件11的下载请求(步骤S36)。Referring to FIG. 7 , it is a flow chart of downloading encrypted files according to the first specific embodiment of the present invention. When the client device 2 will request to download the file 11, it mainly connects and logs in the server 1 through a browser (Browser) on the client device 2, and requests to download the file 11 to the server management software 10 (step S30). Then, the server-side management software 10 fetches the corresponding user data 12 from the server 1 according to the login information of the client device 2 (referring to the information of the client agent software 20 here), and simultaneously fetches the file The authorized authority data 14 of 11 (step S32). After the step S32, the server-side management software 10 compares the user data 12 with the authorization authority data 14 to determine whether the client device 2 (that is, the client agent software 20) has the file 11. Download permission (step S34). If the client device 2 does not have the download authority of the file 11, the server management software 20 rejects the download request of the client device 2 for the file 11 (step S36).

若该客户端设备2确实具有该文件11的下载权限,则该服务器端管理软件20依据该使用者数据12,由该服务器1中取出对应的该客户端密钥13(步骤S38),并且使用该客户端密钥13对该文件11进行加密,以产生该加密文件16(步骤S40)。该步骤S40后,该服务器端管理软件20允许该客户端设备2下载该加密文件16(步骤S42)。该步骤S42中所指的下载动作,可为该客户端设备2自动下载,或显示该加密文件16的下载链接,以令使用者点选下载,不加以限定。If the client device 2 does have the download authority of the file 11, then the server management software 20 takes out the corresponding client key 13 from the server 1 according to the user data 12 (step S38), and uses The client key 13 encrypts the file 11 to generate the encrypted file 16 (step S40). After the step S40, the server management software 20 allows the client device 2 to download the encrypted file 16 (step S42). The download action referred to in the step S42 can be the automatic download of the client device 2, or display the download link of the encrypted file 16 so that the user clicks to download, without limitation.

值得一提的是,如前文中所述,若该文件11本身已通过该服务器密钥进行过加密,则于该步骤S40之前,该服务器端管理软件20会先取得该服务器密钥,并以该服务器密钥先对该文件11进行解密以得到原始文件后,再执行该步骤S40。It is worth mentioning that, as mentioned above, if the file 11 itself has been encrypted by the server key, before step S40, the server-side management software 20 will first obtain the server key, and use The server key first decrypts the file 11 to obtain the original file, and then executes step S40.

前述的实施例中,该文件11的下载请求、以及该客户端设备2的下载权限的验证程序,主要皆是由该客户端代理软件20来执行。然而,企业内部的文件可能需要提供给外部客户或供货商进行下载,而客户或供货商的设备可能没有安装该客户端代理软件20。本发明的该保护系统与该保护方法可同时适用于上述情形,详细说明如下。In the foregoing embodiments, the download request of the file 11 and the verification procedure of the download authority of the client device 2 are mainly executed by the client agent software 20 . However, the files within the enterprise may need to be provided to external customers or suppliers for downloading, and the client or supplier's equipment may not have the client agent software 20 installed. The protection system and the protection method of the present invention can be applied to the above situations at the same time, and the details are as follows.

参照图8,为本发明的第二具体实施例的加密文件下载流程图。若前述的该共享对象为该外部客户端设备22(即,没有安装该客户端代理软件20),则该使用者同样需先向该服务器端管理软件10提出上述该文件共享请求,并且选择要共享的该文件11,同时设定该文件11的该共享对象及该使用规则(步骤S50)。本实施例中,该使用者需同时提供该共享对象的一电子邮件信箱,以利该共享对象取得该加密文件16(将在后面进行详细说明)。Referring to FIG. 8 , it is a flow chart of downloading encrypted files according to the second specific embodiment of the present invention. If the aforesaid shared object is the external client device 22 (that is, the client agent software 20 is not installed), then the user also needs to first propose the above-mentioned file sharing request to the server management software 10, and select to For the file 11 to be shared, set the sharing object and the usage rule of the file 11 at the same time (step S50). In this embodiment, the user needs to provide an email address of the shared object at the same time, so that the shared object can obtain the encrypted file 16 (details will be described later).

该步骤S50后,该服务器端管理软件10依据该些设定参数制作一组特定密钥(步骤S52),并且使用该特定密钥为该文件11进行加密,以产生该加密文件16(步骤S54)。最后,该服务器端管理软件10同时将该加密文件16与该特定密钥提供给该共享对象(步骤S56)。该步骤S56中,该服务器端管理软件10主要可产生该加密文件16的下载链接,并连同该特定密钥一起寄送至该共享对象的该电子邮件信箱,但不加以限定。After the step S50, the server-side management software 10 makes a group of specific keys (step S52) according to the setting parameters, and uses the specific key to encrypt the file 11 to generate the encrypted file 16 (step S54 ). Finally, the server-side management software 10 simultaneously provides the encrypted file 16 and the specific key to the shared object (step S56). In the step S56, the server-side management software 10 can mainly generate a download link of the encrypted file 16, and send it together with the specific key to the email mailbox of the sharing object, but it is not limited.

参照图9,为本发明的第一具体实施例的加密文件开启流程图。该客户端设备2通过前述方式取得该加密文件16后,可进行本地端开启(步骤S60)。本发明中,该客户端设备2主要是通过该客户端代理软件20来直接开启该加密文件16,或是通过该客户端设备2中安装的应用程序(图未示)来开启该加密文件16,并且该应用程序受该客户端代理软件20的管理,不加以限定。Referring to FIG. 9 , it is a flow chart of opening an encrypted file according to the first specific embodiment of the present invention. After the client device 2 obtains the encrypted file 16 through the aforementioned method, it can open the local terminal (step S60). In the present invention, the client device 2 mainly opens the encrypted file 16 directly through the client agent software 20, or opens the encrypted file 16 through an application program (not shown) installed in the client device 2 , and the application program is managed by the client agent software 20, without limitation.

当该客户端设备2要开启该加密文件16时,该客户端代理软件20取得该客户端设备2的信息,并传送至该服务器1(步骤S62)。本实施例中,该客户端设备2的信息主要可例如为该客户端设备2的MACAddress,以及该客户端代理软件20的授权代码,但不加以限定。When the client device 2 wants to open the encrypted file 16, the client agent software 20 obtains the information of the client device 2 and sends it to the server 1 (step S62). In this embodiment, the information of the client device 2 may mainly be, for example, the MACAddress of the client device 2 and the authorization code of the client agent software 20 , but it is not limited thereto.

该服务器1接收该客户端设备2的信息后,由该服务器端管理软件10判断该客户端设备2是否为被允许开启该加密文件16的授权客户端(步骤S64),即,判断该客户端设备2是否为该加密文件16被设定的该共享对象。After the server 1 receives the information of the client device 2, the server-side management software 10 judges whether the client device 2 is an authorized client that is allowed to open the encrypted file 16 (step S64), that is, judges that the client Whether the device 2 is the shared object for which the encrypted file 16 is set.

具体而言,该服务器端管理软件10可将该客户端设备2的信息与该加密文件16对应的该授权权限数据14进行比对,以判断该客户端设备2是否为该授权客户端。若该服务器端管理软件10判断后认为该客户端设备2不是合法的授权客户端,则该服务器端管理软件10响应该开启动作被禁止的消息至该客户端代理软件20(步骤S66)。该步骤S66后,该客户端代理软件20响应使用者该加密文件16无法被开启,或是禁止该客户端设备2中的该应用程序对该加密文件16执行的开启动作。Specifically, the server-side management software 10 can compare the information of the client device 2 with the authorization authority data 14 corresponding to the encrypted file 16 to determine whether the client device 2 is the authorized client. If the server-side management software 10 judges that the client device 2 is not a legal authorized client, then the server-side management software 10 responds to the client agent software 20 with a message that the opening action is prohibited (step S66). After the step S66 , the client agent software 20 responds to the user that the encrypted file 16 cannot be opened, or prohibits the application program in the client device 2 from opening the encrypted file 16 .

若该客户端设备2确实为授权客户端,则接着由该客户端代理软件20验证该客户端密钥13是否可为该加密文件16进行解密(步骤S68)。具体而言,该客户端代理软件20经过上述登录程序后即持有该客户端密钥13,而该加密文件16是采用专属于该客户端代理软件20的该客户端密钥13进行加密,因此若下载该加密文件16的该客户端设备2与开启该加密文件16的该客户端设备2相同,则该加密文件16可被正确解密,反之亦然。If the client device 2 is indeed an authorized client, then the client agent software 20 verifies whether the client key 13 can decrypt the encrypted file 16 (step S68 ). Specifically, the client agent software 20 holds the client key 13 after the above-mentioned login procedure, and the encrypted file 16 is encrypted using the client key 13 exclusive to the client agent software 20, Therefore, if the client device 2 that downloaded the encrypted file 16 is the same as the client device 2 that opened the encrypted file 16, the encrypted file 16 can be correctly decrypted, and vice versa.

然而,若该客户端代理软件20不具有该客户端密钥13,或具所持有的客户端密钥无法对该加密文件16进行解密,则执行该步骤S66,由该客户端代理软件20响应使用者该加密文件16无法被开启,或是禁止该客户端设备2中的该应用程序对该加密文件16执行的开启动作。However, if the client agent software 20 does not have the client key 13, or the client key held by it cannot decrypt the encrypted file 16, then step S66 is executed, and the client agent software 20 In response to the user, the encrypted file 16 cannot be opened, or the application program in the client device 2 is prohibited from opening the encrypted file 16 .

若该加密文件16可被该客户端代理软件20成功解密并还原为该文件11,则该客户端代理软件20进一步向该服务器1提出询问,以确认目前的开启动作是否符合该文件11的该使用规则(步骤S70)。该步骤S70中,该服务器1通过该服务器端管理软件10接收该客户端代理软件20的询问,并查询该文件11对应的该授权权限数据14,借此判断目前的开启动作是否符合该文件11被设定的该使用规则。例如,开启时间是否正确、开启次数是否到达上限等,但不加以限定。当该客户端代理软件20收到该服务器1的响应,并确认目前的开启动作确实符合该文件11的使用规则时,该文件11即可被开启(步骤S72)。本实施例中,该步骤S72是由该客户端代理软件20直接开启该文件11,或是由该客户端代理软件20允许该客户端设备2中的该应用程序开启该文件11。If the encrypted file 16 can be successfully decrypted by the client agent software 20 and restored to the file 11, then the client agent software 20 further asks the server 1 to confirm whether the current opening action is consistent with the file 11. Rules are used (step S70). In the step S70, the server 1 receives the query from the client agent software 20 through the server-side management software 10, and inquires the authorization authority data 14 corresponding to the file 11, thereby judging whether the current opening action conforms to the file 11 The usage rules are set. For example, whether the opening time is correct, whether the number of opening times reaches the upper limit, etc., but not limited. When the client agent software 20 receives the response from the server 1 and confirms that the current opening action conforms to the usage rules of the file 11, the file 11 can be opened (step S72). In this embodiment, in step S72, the client agent software 20 directly opens the file 11, or the client agent software 20 allows the application program in the client device 2 to open the file 11.

然而,若该服务器端管理软件10判断后认为该客户端设备2的开启动作不符合该文件11的使用规则,执行该步骤S66后,由该客户端代理软件20响应使用者该加密文件16无法被开启,或是禁止该客户端设备2中的该应用程序对该加密文件16执行的开启动作。However, if the server-side management software 10 judges that the opening action of the client device 2 does not comply with the usage rules of the file 11, after step S66 is executed, the client agent software 20 will respond to the user that the encrypted file 16 cannot is opened, or the application program in the client device 2 is prohibited from opening the encrypted file 16 .

本实施例中,必须在确认该客户端设备2为授权客户端、该客户端代理软件20记录的该客户端密钥13可成功解密、以及目前的开启动作符合文件的使用规则等三个条件同时成立时,该加密文件16才能被开启。然而,上述该步骤S64、该步骤S68及该步骤S70并没有执行上的顺序关系,并且可被同步执行。In this embodiment, it must be confirmed that the client device 2 is an authorized client, the client key 13 recorded by the client agent software 20 can be successfully decrypted, and the current opening action complies with the usage rules of the file. When both are established, the encrypted file 16 can be opened. However, the step S64 , the step S68 and the step S70 are not executed in a sequence relationship, and can be executed synchronously.

值得一提的是,在该服务器端管理软件10产生该加密文件16时,可同时将该客户端设备2的部分信息(例如设备名称),以及该客户端设备2请求下载的时间等信息同时加入该加密文件16中。当该客户端设备2成功开启该加密文件16后,上述该些信息将以动态水印的方式显示于开启后的该文件11上(步骤S74)。最后,于该客户端设备2成功开启该文件11后,该客户端代理软件20将开启信息回传至该服务器1(步骤S76),以令服务器1储存并更新一使用记录数据15。通过该使用记录数据15,管理人员可以轻易得知该服务器1中的该些文件11分别在哪个时间被哪台客户端设备所开启。借此,当企业发现文件被非法使用时,可依据该使用记录数据15来判断是哪个环节出了问题。It is worth mentioning that when the server-side management software 10 generates the encrypted file 16, part of the information (such as the device name) of the client device 2 and the time when the client device 2 requests downloading can be simultaneously Join in this encrypted file 16. When the client device 2 successfully opens the encrypted file 16, the above-mentioned information will be displayed on the opened file 11 in the form of a dynamic watermark (step S74). Finally, after the client device 2 successfully opens the file 11, the client agent software 20 returns the opening information to the server 1 (step S76), so that the server 1 stores and updates a usage record data 15. Through the use record data 15 , administrators can easily know at which time the files 11 in the server 1 are opened by which client device. In this way, when the enterprise finds that the file has been illegally used, it can judge which link has a problem according to the usage record data 15 .

以上所述仅为本发明的较佳具体实例,非因此即局限本发明的权利要求范围,故举凡运用本发明内容所为的等效变化,均同理皆包含于本发明的范围内。The above descriptions are only preferred specific examples of the present invention, and are not meant to limit the scope of the claims of the present invention. Therefore, all equivalent changes made by using the content of the present invention are all included in the scope of the present invention.

Claims (16)

1.一种加密文件保护方法,运用于一客户端设备与一服务器,其中该客户端设备具有一客户端代理软件,该伺服器具有一服务器端管理软件,其特征在于,包括:1. A method for protecting encrypted files, applied to a client device and a server, wherein the client device has a client agent software, and the server has a server-side management software, characterized in that, comprising: a)该客户端代理软件取得一加密文件并进行本地端开启;a) The client agent software obtains an encrypted file and opens it locally; b)传送该客户端设备的信息至该服务器;b) sending the information of the client device to the server; c)该服务器端管理软件依据接收的该信息,判断该客户端设备是否为可开启该加密文件的一授权客户端;c) The server-side management software judges whether the client device is an authorized client that can open the encrypted file according to the received information; d)若该客户端设备为该授权客户端,该客户端代理软件判断本身持有的一客户端密钥是否可为该加密文件进行解密;d) If the client device is the authorized client, the client agent software judges whether a client key held by itself can decrypt the encrypted file; e)若该客户端代理软件持有的该客户端密钥可为该加密文件解密,进一步向该服务器端管理软件提出询问,以确认该客户端设备目前的开启动作是否符合该加密文件被设定的一使用规则;及e) If the client key held by the client agent software can decrypt the encrypted file, further query the server-side management software to confirm whether the current opening action of the client device conforms to the encrypted file is set prescribed rules of use; and f)若该开启动作符合该使用规则,解密该加密文件为一文件,并依据该使用规则开启该文件。f) If the opening action complies with the usage rule, decrypt the encrypted file into a file, and open the file according to the usage rule. 2.根据权利要求1所述的加密文件保护方法,其特征在于,还包括一步骤g:若该客户端设备不是该授权客户端,或该客户端代理软件持有的该客户端密钥无法为该加密文件解密,或该开启动作不符合该使用规则,则响应该开启动作被禁止的消息。2. The encrypted file protection method according to claim 1, further comprising a step g: if the client device is not the authorized client, or the client key held by the client agent software cannot To decrypt the encrypted file, or the opening action does not comply with the usage rule, respond to a message that the opening action is prohibited. 3.根据权利要求1所述的加密文件保护方法,其特征在于,该客户端设备的该信息为该客户端设备的媒体存取控制地址,以及该客户端代理软件的授权代码。3. The encrypted file protection method according to claim 1, wherein the information of the client device is a media access control address of the client device and an authorization code of the client agent software. 4.根据权利要求1所述的加密文件保护方法,其特征在于,该步骤f中,由该客户端代理软件允许该客户端设备中的应用程序开启该文件。4. The encrypted file protection method according to claim 1, characterized in that, in the step f, the client agent software allows the application program in the client device to open the file. 5.根据权利要求1所述的加密文件保护方法,其特征在于,该步骤c中,该服务器端管理软件比对所接收的该信息,以及该加密文件预先设定的一授权权限数据,以判断该客户端设备是否为该授权客户端,其中该授权权限数据记录了该加密文件可被共享的一共享对象以及该使用规则。5. The encrypted file protection method according to claim 1, characterized in that, in the step c, the server-side management software compares the received information with a preset authorization authority data of the encrypted file to obtain Judging whether the client device is the authorized client, wherein the authorization permission data records a sharing object that the encrypted file can be shared with and the usage rule. 6.根据权利要求5所述的加密文件保护方法,其特征在于,该步骤a之前还包括下列步骤:6. The encrypted file protection method according to claim 5, characterized in that, the step a also includes the following steps before: a01)向该服务器端管理软件提出一文件共享请求;a01) making a file sharing request to the server-side management software; a02)选择要进行共享的该文件;a02) Select the file to be shared; a03)设定该文件的该共享对象;a03) setting the shared object of the file; a04)设定该文件的该使用规则;及a04) setting the usage rules for the document; and a05)将该共享对象及该使用规则储存为该文件的该授权权限数据。a05) storing the shared object and the usage rule as the authorization permission data of the file. 7.根据权利要求6所述的加密文件保护方法,其特征在于,该步骤a之前还包括下列步骤:7. The encrypted file protection method according to claim 6, characterized in that, the step a also includes the following steps before: a11)该客户端代理软件向该服务器端管理软件提出该文件的下载请求;a11) The client agent software makes a download request of the file to the server management software; a12)该服务器端管理软件依据该客户端代理软件的登录信息取出对应的一使用者数据,其中该使用者数据储存于该服务器;a12) The server management software retrieves a corresponding user data according to the login information of the client agent software, wherein the user data is stored in the server; a13)该服务器端管理软件取得该文件的该授权权限数据;a13) The server-side management software obtains the authorization permission data of the file; a14)比对该使用者数据与该授权权限数据,以判断该客户端代理软件是否具有该文件的下载权限;a14) comparing the user data with the authorization authority data to determine whether the client agent software has the download authority of the file; a15)若该客户端代理软件具有该文件的下载权限,该服务器端管理软件依据该使用者数据取得对应的该客户端密钥,其中该客户端密钥储存于该服务器;a15) If the client agent software has the download authority of the file, the server management software obtains the corresponding client key according to the user data, wherein the client key is stored in the server; a16)使用该客户端密钥对该文件进行加密,以产生该加密文件;及a16) encrypting the file using the client key to generate the encrypted file; and a17)提供该加密文件供该客户端代理软件进行下载。a17) providing the encrypted file for the client agent software to download. 8.根据权利要求7所述的加密文件保护方法,其特征在于,该服务器端管理软件产生该加密文件时,将该客户端设备的信息与请求下载的时间放入该加密文件中,并且该加密文件保护方法还包括一步骤h:将该客户端设备的信息与请求下载的时间以水印方式动态显示于被开启该文件上。8. The encrypted file protection method according to claim 7, wherein when the server-side management software generates the encrypted file, the information of the client device and the time of download request are put into the encrypted file, and the The encrypted file protection method further includes a step h: dynamically displaying the information of the client device and the time of requesting download on the opened file in the form of a watermark. 9.根据权利要求7所述的加密文件保护方法,其特征在于,该步骤a之前还包括下列步骤:9. The encrypted file protection method according to claim 7, characterized in that, the step a also includes the following steps before: a21)安装该客户端代理软件于该客户端设备;a21) installing the client agent software on the client device; a22)该客户端代理软件启动后连接至该服务器进行首次登录;a22) After the client agent software is started, it connects to the server to log in for the first time; a23)该服务器端管理软件将该客户端代理软件的登录信息储存为该使用者数据,并依据该使用者数据产生该客户端代理软件专属的该客户端密钥;a23) The server-side management software stores the login information of the client agent software as the user data, and generates the client key exclusive to the client agent software according to the user data; a24)该服务器端管理软件记录该客户端密钥,并令该客户端密钥与该使用者数据产生关联;及a24) The server-side management software records the client key, and associates the client key with the user data; and a25)该客户端代理软件记录该客户端密钥。a25) The client agent software records the client key. 10.根据权利要求1所述的加密文件保护方法,其特征在于,还包括一步骤i:步骤f后,该客户端代理软件回传一开启信息至该服务器端管理软件。10. The encrypted file protection method according to claim 1, further comprising a step i: after step f, the client agent software returns an open message to the server management software. 11.一种加密文件保护系统,其特征在于,包括:11. An encrypted file protection system, comprising: 一客户端代理软件,安装于一客户端设备,包括:A client agent software installed on a client device, including: 一权限过滤模块,于该客户端设备欲开启一加密文件时传送该客户端设备的信息至一服务器,以确认该客户端设备为被允许开启该加密文件的一授权客户端;及A permission filtering module, when the client device intends to open an encrypted file, the information of the client device is sent to a server to confirm that the client device is an authorized client that is allowed to open the encrypted file; and 一文件解密执行模块,于确认该客户端设备为该授权客户端后,采用该客户端代理软件持有的一客户端密钥解密该加密文件为一文件,并于目前的开启动作符合该文件被设定的一使用规则时开启该文件,其中该使用规则储存于该服务器;A file decryption execution module, after confirming that the client device is the authorized client, uses a client key held by the client agent software to decrypt the encrypted file into a file, and the current opening action conforms to the file Open the file when a usage rule is set, wherein the usage rule is stored in the server; 一服务器端管理软件,安装于与该客户端设备通过网络连接的该服务器,包括:A server-side management software installed on the server connected to the client device through the network, including: 一权限过滤管理模块,与该权限过滤模块沟通,以通过接收的该信息确认该客户端设备是否为该授权客户端;An authority filtering management module, communicating with the authority filtering module to confirm whether the client device is the authorized client through the received information; 一密钥管理模块,于该客户端代理软件首次向该服务器进行登录时,依据该客户端代理软件的登录信息制作专属的该客户端密钥,其中该客户端密钥同时记录于该客户端代理软件与该服务器端管理软件;A key management module, when the client agent software logs in to the server for the first time, according to the login information of the client agent software, an exclusive client key is produced, wherein the client key is simultaneously recorded in the client Agent software and the server-side management software; 一加解密控制模块,具有一下载加密模块,于接收该客户端代理软件对该文件的下载请求时,取得该客户端代理软件对应的该客户端密钥对该文件进行加密,以产生该加密文件;及An encryption and decryption control module has a download encryption module. When receiving the download request of the client agent software for the file, it obtains the client key corresponding to the client agent software and encrypts the file to generate the encrypted file. documents; and 一数据控制枢纽,用以处理、整合与转换该权限过滤管理模块、该密钥管理模块及该加解密控制模块的数据与指令。A data control hub is used for processing, integrating and converting the data and instructions of the authority filtering management module, the key management module and the encryption and decryption control module. 12.根据权利要求11所述的加密文件保护系统,其特征在于,该文件经该服务器的一服务器密钥加密,该加解密控制模块还具有一下载解密模块,于接收该客户端代理软件对该文件的下载请求时,取得该服务器密钥对该文件进行解密以产生一原始文件,并令该下载加密模块以该客户端密钥对该原始文件进行加密,以产生该加密文件。12. The encrypted file protection system according to claim 11, wherein the file is encrypted by a server key of the server, and the encryption and decryption control module also has a download and decryption module, which receives the client agent software pair When downloading the file, obtain the server key to decrypt the file to generate an original file, and make the download encryption module encrypt the original file with the client key to generate the encrypted file. 13.根据权利要求11所述的加密文件保护系统,其特征在于,该客户端代理软件还包括一客户端加密模块,于该客户端设备编辑完成一文件档案后,采用该客户端代理软件持有的该客户端密钥对该文件档案进行加密,并且该客户端设备将加密后的该文件档案上传至该服务器储存。13. The encrypted file protection system according to claim 11, wherein the client agent software also includes a client encryption module, and after the client device edits a file file, the client agent software is used to maintain The client key encrypts the file, and the client device uploads the encrypted file to the server for storage. 14.根据权利要求13所述的加密文件保护系统,其特征在于,该加解密控制模块还具有:14. The encrypted file protection system according to claim 13, wherein the encryption and decryption control module also has: 一上传解密模块,于接收该文件档案后,取得该客户端设备对应的该客户端密钥对该文件档案进行解密,以产生一原始文件档案;及An upload decryption module, after receiving the file, obtains the client key corresponding to the client device to decrypt the file to generate an original file; and 一上传加密模块,取得该服务器预设的一服务器密钥对该原始文件档案进行加密,以产生该文件。An upload encryption module obtains a server key preset by the server to encrypt the original file file to generate the file. 15.根据权利要求11所述的加密文件保护系统,其特征在于,该服务器储存有一使用记录数据,该使用记录数据记录该客户端设备对该加密文件的开启信息。15. The encrypted file protection system according to claim 11, wherein the server stores a use record data, and the use record data records the opening information of the encrypted file by the client device. 16.根据权利要求11所述的加密文件保护系统,其特征在于,该服务器储存有该文件的一授权权限数据,该授权权限数据记录该文件的该使用规则及一共享对象,其中该权限过滤管理模块将该客户端设备的该信息与该文件的该共享对象进行比对,以确认该客户端设备是否为该授权客户端。16. The encrypted file protection system according to claim 11, wherein the server stores an authorization authority data of the file, and the authorization authority data records the usage rules and a shared object of the file, wherein the authority filter The management module compares the information of the client device with the shared object of the file to confirm whether the client device is the authorized client.
CN201410493178.4A 2014-09-24 2014-09-24 encrypted file protection system and protection method thereof Active CN105516056B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410493178.4A CN105516056B (en) 2014-09-24 2014-09-24 encrypted file protection system and protection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410493178.4A CN105516056B (en) 2014-09-24 2014-09-24 encrypted file protection system and protection method thereof

Publications (2)

Publication Number Publication Date
CN105516056A true CN105516056A (en) 2016-04-20
CN105516056B CN105516056B (en) 2018-10-26

Family

ID=55723704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410493178.4A Active CN105516056B (en) 2014-09-24 2014-09-24 encrypted file protection system and protection method thereof

Country Status (1)

Country Link
CN (1) CN105516056B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314781A (en) * 2018-12-11 2020-06-19 青岛海尔多媒体有限公司 Local file encryption method, device, equipment and storage medium
CN112565447A (en) * 2020-12-17 2021-03-26 南京维拓科技股份有限公司 Encryption and decryption method and system matched with uploading and downloading in cloud environment and WEB file manager
TWI860939B (en) * 2024-01-30 2024-11-01 碩壹資訊股份有限公司 Data processing system capable of managing authorities of application processes

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042046A1 (en) * 2000-03-01 2001-11-15 Yasuo Fukuda Data management system, information processing apparatus, authentification management apparatus, method and storage medium
CN101174941A (en) * 2006-11-01 2008-05-07 北京书生国际信息技术有限公司 Off-line digital copyright protection method and device for mobile terminal document
CN102355463A (en) * 2011-10-10 2012-02-15 厦门简帛信息科技有限公司 Digital document encryption method
CN103108245A (en) * 2011-11-15 2013-05-15 中国银联股份有限公司 Smart television payment secret key system and payment method based on smart television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010042046A1 (en) * 2000-03-01 2001-11-15 Yasuo Fukuda Data management system, information processing apparatus, authentification management apparatus, method and storage medium
CN101174941A (en) * 2006-11-01 2008-05-07 北京书生国际信息技术有限公司 Off-line digital copyright protection method and device for mobile terminal document
CN102355463A (en) * 2011-10-10 2012-02-15 厦门简帛信息科技有限公司 Digital document encryption method
CN103108245A (en) * 2011-11-15 2013-05-15 中国银联股份有限公司 Smart television payment secret key system and payment method based on smart television

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314781A (en) * 2018-12-11 2020-06-19 青岛海尔多媒体有限公司 Local file encryption method, device, equipment and storage medium
CN112565447A (en) * 2020-12-17 2021-03-26 南京维拓科技股份有限公司 Encryption and decryption method and system matched with uploading and downloading in cloud environment and WEB file manager
TWI860939B (en) * 2024-01-30 2024-11-01 碩壹資訊股份有限公司 Data processing system capable of managing authorities of application processes

Also Published As

Publication number Publication date
CN105516056B (en) 2018-10-26

Similar Documents

Publication Publication Date Title
JP6941146B2 (en) Data security service
US8719582B2 (en) Access control using identifiers in links
CN104520805B (en) According to the security application ecosystem with key and data exchange of company information control strategy
KR100423797B1 (en) Method of protecting digital information and system thereof
US9070112B2 (en) Method and system for securing documents on a remote shared storage resource
CN100576198C (en) Inter-Entity Messaging Strategies and Enforcement for Rights Management
CN1723650B (en) Pre-licensing of rights management protected content
CN102710633B (en) A cloud security management system and method for confidential electronic documents
US8621036B1 (en) Secure file access using a file access server
JP6678457B2 (en) Data security services
US7458102B2 (en) Information security architecture for remote access control using non-bidirectional protocols
US11327946B2 (en) Hybrid centralized and decentralized enterprise system
JP2003228519A (en) Method and architecture for providing pervasive security for digital asset
CN101689989A (en) creating and validating cryptographically secured documents
CN102138145B (en) Cryptographically controlling access to documents
CN101743714A (en) updating and validating documents secured cryptographically
KR20220039779A (en) Enhanced security encryption and decryption system
KR20120037489A (en) Digital rights management (drm) method and equipment in small and medium enterprise (sme) and method for providing drm service
CN118713902A (en) A method, system, device and storage medium for sharing trusted data in the Internet of Things
CN105516056B (en) encrypted file protection system and protection method thereof
US12309274B2 (en) Cryptography-as-a-service
US20240048532A1 (en) Data exchange protection and governance system
CN106650492B (en) A kind of multiple device file guard method and device based on security catalog
JP7361384B2 (en) Electronic application assistance method, electronic application assistance system, electronic application assistance system program and its recording medium
TWI509458B (en) Protection system for encrypted document and protection method for using the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant