File security sharing method, device and system based on data staining and medium
By using data dyeing technology to generate a unique traceable copy of the file, the problem of file sharing permission control and traceability is solved, the security and traceability of the file are realized, and the risk of sensitive information leakage is reduced.
Patent Information
- Application Number
- CN202411210626.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-03
AI Technical Summary
It is difficult for the existing technology to effectively control the access and sharing rights of files in financial enterprises, especially when sharing files with external environments, it is difficult to trace the whereabouts of files and judge the responsibility for leakage, resulting in the security risk of leakage of sensitive information.
Using a file security sharing method based on data staining, copy files are generated through the receiver's list, and the staining content of each copy file is generated according to the preset data staining strategy, and the staining process is performed to ensure that the files received by each recipient are unique. The dyed content realizes the security and traceability of the file.
By copying and staining files, we ensure that each copy of the file has unique traceable dyeing content. Whether it is shared internally or externally, the security and traceability of the file can be ensured, which expands the application of file security control Range, minimize the risk of leakage of sensitive information.
Smart Images

Figure CN119066632A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of financial technology, and in particular to a method, device, system and medium for secure file sharing based on data coloring. Background Art
[0002] With the rapid development of network technology and information technology, informatization has brought convenience to people while also bringing risks and threats. Security issues such as illegal network intrusion, information theft and leakage, and identity forgery have become increasingly prominent. Therefore, data security and information protection have received more and more attention.
[0003] In financial enterprises, a large amount of sensitive information is stored in unstructured data files such as PDF, text, images, HTML, etc. Such files need to be strictly controlled during storage and sharing, and are usually only shared within a limited authorization scope to prevent the leakage of sensitive information.
[0004] Existing technologies usually require that the access and sharing permissions of files can only be controlled within the domain environment of a financial enterprise or on a terminal with a specific proxy client installed. In actual applications, this method cannot perform security control on files that need to be shared with the external environment. For example, after a file is shared with multiple users, it is difficult to trace the subsequent whereabouts of the file. Even if it is found that a user has leaked the file outside the authorized scope, it is impossible to determine which user is responsible. Therefore, it is difficult to form an effective control mechanism, and there is a security risk of sensitive information leakage. Summary of the invention
[0005] In view of the above-mentioned deficiencies in the prior art, the purpose of the present invention is to provide a file security sharing method, device, system and medium based on data coloring that can be applied to financial technology or other related fields. Its main purpose is to ensure the security and traceability of file sharing, expand the scope of application of file security management and control, and minimize the risk of leakage of sensitive information.
[0006] The technical solution of the present invention is as follows:
[0007] A first aspect of the present invention provides a method for secure file sharing based on data coloring, comprising:
[0008] In response to the file upload instruction, receiving the original file uploaded by the sender and the recipient list;
[0009] Generate a corresponding number of copies of the original file according to the recipient list;
[0010] Generate the dyed content of each copy file according to the preset data dyeing strategy, and dye the corresponding copy file based on the dyed content to obtain the dyed target file corresponding to each recipient;
[0011] In response to the file sharing instruction, the dyed target file is shared with the corresponding recipient.
[0012] In one embodiment, the generating of the coloring content of each copy file according to a preset data coloring strategy, and coloring the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient, includes:
[0013] Obtaining a unique identifier of the original file;
[0014] Generate the dyed content of each copy file according to the unique identifier of the original file, the account number of the sender, the account number of each recipient, and the processing timestamp of each copy file;
[0015] Determine the corresponding dyeing position according to the format of the original file;
[0016] The dyed content is correspondingly inserted into the dyed position of each copy file to obtain a dyed target file corresponding to each recipient.
[0017] In one embodiment, generating the dyed content of each copy file according to the unique identifier of the original file, the account of the sender, the account of each recipient, and the processing timestamp of each copy file specifically includes:
[0018] The unique identifier of the original file, the sender's account number, the account number of each recipient, and the processing timestamp of each copy file are connected and hashed to obtain the colored hash value of each copy file as the colored content.
[0019] In one embodiment, after obtaining the dyed target file corresponding to each recipient, the method further includes:
[0020] The dyed target file is set to be in an uneditable state.
[0021] In one embodiment, after sharing the dyed target file with the corresponding recipient in response to the file sharing instruction, the method further includes:
[0022] The unique identifier of the original file, the sender's account, each recipient's account, the processing timestamp of each copy file, the unique identifier of each copy file, and the dyed hash value of each copy file are associated and recorded as historical sharing data.
[0023] In one embodiment, after sharing the dyed target file with the corresponding recipient in response to the file sharing instruction, the method further includes:
[0024] In response to the file tracing instruction, receiving the file to be traced uploaded by the tracing party;
[0025] Parse and read the dyed hash value of the file to be traced, and perform field matching in the historical shared data to obtain corresponding file tracing information;
[0026] According to the authority of the tracing party and the file tracing information, the corresponding tracing results are displayed.
[0027] In one embodiment, displaying corresponding tracing results according to the authority of the tracing party and the file tracing information includes:
[0028] Confirm that the authority of the traceable party is general authority or administrator authority;
[0029] When it is a normal authority, confirm whether the tracing party is the sender or receiver of the file to be traced according to the file tracing information. If so, display the complete file tracing information, otherwise display a prompt message that you are not authorized to view;
[0030] When the user has administrator privileges, the complete file traceability information is displayed directly.
[0031] A second aspect of the present invention provides a file security sharing device based on data coloring, comprising:
[0032] A file upload module, used to respond to a file upload instruction and receive the original file uploaded by the sender and the recipient list;
[0033] A copy generation module, used for generating a corresponding number of copy files of the original file according to the recipient list;
[0034] A data coloring module, used to generate coloring content of each copy file according to a preset data coloring strategy, and perform coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient;
[0035] The file sharing module is used to share the dyed target file with a corresponding receiver in response to a file sharing instruction.
[0036] A third aspect of the present invention provides a file security sharing system based on data coloring, the system comprising at least one processor; and
[0037] a memory communicatively connected to the at least one processor; wherein,
[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned file security sharing method based on data coloring.
[0039] A fourth aspect of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors can execute the above-mentioned data coloring-based file security sharing method.
[0040] Beneficial effects: The present invention discloses a method, device, system and medium for secure file sharing based on data coloring. Compared with the prior art, the embodiment of the present invention responds to a file upload instruction, receives the original file uploaded by the sender and the recipient list; generates a corresponding number of copy files of the original file according to the recipient list; generates the coloring content of each copy file according to a preset data coloring strategy, and performs coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient; responds to a file sharing instruction, shares the colored target file with the corresponding recipient. By copying and data coloring the files to be shared, each copy file shared has unique and traceable coloring content, which ensures the security and traceability of file sharing regardless of internal or external sharing within the enterprise, expands the scope of application of file security management and control, and minimizes the risk of sensitive information leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0042] Figure 1 A flow chart of a method for secure file sharing based on data coloring provided by an embodiment of the present invention;
[0043] Figure 2 A flowchart of step S300 in the method for secure file sharing based on data coloring provided in an embodiment of the present invention;
[0044] Figure 3 Another flow chart of the method for secure file sharing based on data coloring provided by an embodiment of the present invention;
[0045] Figure 4 A schematic diagram of functional modules of a file security sharing device based on data coloring provided by an embodiment of the present invention;
[0046] Figure 5 A schematic diagram of the hardware structure of a secure file sharing system based on data coloring provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. The embodiments of the present invention are described below in conjunction with the accompanying drawings.
[0048] In financial enterprises, a large amount of sensitive information is stored in unstructured data files such as PDF, text, images, HTML, etc. Such files need to be strictly controlled during storage and sharing, and are usually only shared within a limited authorization scope to prevent the leakage of sensitive information.
[0049] Existing technologies usually require that the access and sharing permissions of files can only be controlled within the domain environment of a financial enterprise or on a terminal with a specific proxy client installed. In actual applications, this method cannot perform security control on files that need to be shared with the external environment. For example, when a file is shared with multiple users, it is out of the restrictions of the security domain and the terminal client, and it is difficult to trace the subsequent whereabouts of the file. Even if it is found that a user has leaked the file outside the authorized scope, it is impossible to determine which user is responsible. Therefore, it is difficult to form an effective control mechanism, and there is a security risk of sensitive information leakage.
[0050] In order to solve the above problems, the present invention proposes a file security sharing method based on data coloring, please refer to Figure 1 , Figure 1 A flowchart of an embodiment of the method for secure file sharing based on data coloring provided by the present invention. The method for secure file sharing based on data coloring provided in this embodiment is applied to a system consisting of a terminal device, a network and a server, wherein the network is a medium for providing a communication link between the terminal device and the server, which may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.; the operating system on the terminal device may include a handheld device operating system (iPhone operating system, iOS system), Android system or other operating system, and the terminal device is connected to the server via the network to achieve interaction, thereby performing operations such as receiving or sending data, and specifically may be various electronic devices with a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, portable computers and desktop servers, etc. Figure 1 As shown, the method specifically comprises the following steps:
[0051] S100: In response to a file upload instruction, receiving the original file uploaded by the sender and the recipient list.
[0052] In this embodiment, employees of various departments in a financial enterprise can perform internal or external file sharing operations through the file security sharing platform installed on the terminal device. The sender can enter the file sharing page after logging in on the platform's login page with the pre-registered account, login password and other identity authentication information. A file upload button is set on the file sharing page. When the sender clicks the file upload button or directly drags the file to the designated upload area of the file sharing page, the file upload instruction is triggered. At this time, the platform receives the original file uploaded by the sender and the receiving list of the original file, and efficiently and conveniently completes the upload of the original file to be shared through the interactive operation of the visual interface.
[0053] Specifically, the original file to be shared can be a PDF file, a picture, a report file, etc., which is not limited in this embodiment. The receiving list can be one or more email addresses of recipients directly entered by the sender before or after uploading the file, or in the case of a large number of recipients, the sender can also upload a pre-edited recipient data table, and automatically parse the recipient data table to obtain the email addresses of multiple recipients, thereby improving the efficiency of secure file sharing.
[0054] Preferably, corresponding file sharing permissions can be pre-assigned for different user identities, for example, permissions are configured based on the importance of the file and the scope of file sharing. Files include core files, important files, ordinary files, and junk files, etc. Ordinary employees can share ordinary files and junk files internally or externally through the file security sharing platform, and core files and important files are only shared internally, etc. Administrators can share all files internally or externally through the file security sharing platform, so that while files are securely shared, corresponding permission control is also achieved to avoid arbitrary external sharing of important files. The permission configuration for secure file sharing can be flexibly performed according to actual needs, and this embodiment does not limit this.
[0055] S200: Generate a corresponding number of copy files of the original file according to the recipient list.
[0056] In this embodiment, based on the number of recipients in the recipient list input by the sender, the original file is copied to generate a corresponding number of copy files, that is, if there are N recipients, N copy files are copied, and each copy file corresponds to one recipient, so as to facilitate accurate distinction of files subsequently shared with each recipient, so that even if the recipient leaks the received file beyond the authorized scope, the recipient who leaked the file can be accurately traced back based on the leaked file, which serves as a warning to both internal employees and external users of the enterprise and reduces the risk of file leakage.
[0057] S300, generating coloring content of each copy file according to a preset data coloring strategy, and performing coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient;
[0058] S400: In response to a file sharing instruction, share the dyed target file with a corresponding recipient.
[0059] In this embodiment, for each copy file, the platform generates a unique coloring content based on a preset data coloring strategy, and performs coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient. Data coloring specifically refers to coloring and marking some data in a program or file, and then propagating the color to other dependent objects. It can be used to track the data propagation path in the system. For example, user Zhang San wants to send a file to Li Si, Wang Wu, and Zhao Liu. After uploading the file to the platform and entering the email addresses of Li Si, Wang Wu, and Zhao Liu, the platform will copy the file three times and generate the coloring content of each copy file according to the preset data coloring strategy, and dye each copy separately. The three colored target files look the same, but they are all marked with different coloring contents, so that the colored target files can be accurately tracked in the subsequent propagation process, effectively avoiding the situation where the recipient leaks the file at will and cannot be tracked.
[0060] After completing the dyeing of each copy file, a sharing prompt can be displayed on the file sharing interface, such as outputting a prompt message that the dyeing has been completed, prompting the sender to click the send button on the page to trigger the file sharing instruction. At this time, the platform will share the dyed target file with the corresponding recipient in a one-to-one correspondence; or you can switch the state of the send button, for example, when the dyeing of the copy file is not completed, the send button on the page is switched to a disabled state, indicating that the button is currently not clickable. The display style is generally grayed out, or the opacity is reduced based on the normal state. When the dyeing of the copy file is completed, the send button on the page is switched to a normal state, indicating that the button can be clicked normally, thereby achieving the purpose of reminding users to trigger the file sharing instruction without the need for additional prompt information.
[0061] Of course, it is understandable that the file sharing instruction can also be automatically triggered by the platform. For example, in a timed sending scenario, after the sender uploads the file and the receiving list, the platform automatically triggers the file sharing instruction at the specified time to share the colored target file with the corresponding recipient, thereby realizing the timed automatic sharing of the file. Preferably, after the target file is sent, the platform deletes the original file and all copies to further reduce the risk of file leakage.
[0062] The embodiment of the present invention copies and performs data coloring on the files to be shared, so that each shared copy of the file has unique traceable coloring content, which ensures the security and traceability of file sharing regardless of whether it is shared within the enterprise or externally. Especially in the financial insurance industry, the sharing of sensitive files can be traced throughout the entire process based on the coloring-processed file content to prevent data privacy leakage. Compared with the existing method of using a proxy client to control file access rights, the embodiment of the present invention is not restricted by security domains and terminal clients, can be applied to more scenarios, expands the scope of application of file security management and control, and minimizes the risk of leakage of sensitive information.
[0063] In one embodiment, Figure 2 As shown, step S300 includes:
[0064] S301, obtaining a unique identifier of the original file;
[0065] S302, generating the dyed content of each copy file according to the unique identifier of the original file, the account of the sender, the account of each recipient, and the processing timestamp of each copy file;
[0066] S303, determining a corresponding dyeing position according to the format of the original file;
[0067] S304: insert the dyed content into the dyed position of each copy file to obtain a dyed target file corresponding to each recipient.
[0068] In this embodiment, when dyeing each copy file, the unique identifier of the original file is first obtained. The unique identifier is the identity identifier of the original file to clarify the uniqueness and traceability of the original file. For example, when the original file is a PDF file, the unique identifier can be the ID field of the trailer part read from the PDF file. The field consists of two character strings. The first segment represents the ID when the file is created, and the second segment represents the ID of the latest version of the file. That is, the first segment of the character string is unchanged, while the second segment of the character string will change with the revision of the PDF file. Therefore, after the dyeing process is completed, the first segment of the ID field of the trailer part in the original file and each copy is completely consistent, and the second segment is different, thereby ensuring the uniqueness of the original file and each copy file; or when the original file is a picture or other format file, the hash value of the original file can be calculated as its unique identifier. Of course, in other embodiments, other forms of unique identifiers can also be used, such as encoding the file according to preset rules, so that each original file can be uniquely distinguished. This embodiment is not limited to this.
[0069] The dyed content of each copy file is generated based on the unique identifier of the original file, the sender's account, the account of each recipient, and the processing timestamp of each copy file, wherein the processing timestamp of each copy file is different. The above four data are connected and hashed as a whole to obtain the dyed hash value of each copy file as the secure and unique dyed content. In specific implementation, the dyed content of each copy file can be obtained by calculating including MD5 algorithm, SHA-1 algorithm, SHA-2 algorithm, SHA-3 algorithm or other hash algorithms. Specifically, the corresponding hash algorithm can be selected based on factors such as the security level requirements of file sharing and the dyeing processing speed requirements, which is not limited in this embodiment.
[0070] After calculating the dyed hash value of each copy file, the dyed hash value is written into the copy file to perform data dyeing. The corresponding dyeing position is determined based on the format of the original file. Since data dyeing needs to avoid affecting the actual content of the original file, that is, the inserted dyed content needs to be inserted into the copy file as steganographic content, the copy file may have different dyeing positions when dyeing the copy file for original files of different formats to ensure the reliability of the dyeing process. For example, for picture formats, based on the regulations of picture formats, some special characters are used as the end of the picture. The part after this character is no longer treated as picture content. Therefore, the colored content can be written at the end of the picture without affecting the display of the picture; for PDF format, you can use the PDF file header to add additional colored content. The information in this area will be ignored by the reader, thereby realizing the hidden writing of the colored content of files in different formats, so that all target files after coloring look the same, but in fact different colored content is inserted. When the platform sends different target files to different recipients according to the corresponding receiving relationship, the colored content will be propagated accordingly, thereby realizing safe file sharing with a wide range of applications. When it is outside the enterprise and is out of the restrictions of the security domain and terminal client, the spread of files can still be tracked, deterring users from easily expanding the scope of file access, thereby improving the security of data sharing.
[0071] In one embodiment, after step S300, the method further includes:
[0072] The dyed target file is set to be in an uneditable state.
[0073] In this embodiment, when writing the dyed content to the copy file, corresponding editing tools can be used, such as professional PDF editing tools such as iText for PDF files. At this time, the data of the original file, i.e., the copy file, should be in an editable state. When dyeing is performed on each copy file separately and the dyed target file is obtained, it is set to a non-editable state to ensure that the dyed content is not edited and changed, thereby improving the reliability and accuracy of file tracing.
[0074] In particular, if the original file is a PDF file and needs to be digitally signed, it should be digitally signed after data coloring and then set to an uneditable state to avoid the impact of the coloring process on the digital signature and resulting in signature abnormalities, thereby ensuring the integrity and readability of the file.
[0075] In one embodiment, after step S400, the method further includes:
[0076] The unique identifier of the original file, the sender's account, each recipient's account, the processing timestamp of each copy file, the unique identifier of each copy file, and the dyed hash value of each copy file are associated and recorded as historical sharing data.
[0077] In this embodiment, after the dyed target file is sent to different recipients separately, the platform records the unique identifier of the original file shared this time, the sender's account, the account of each recipient, the processing timestamp of each copy file, the unique identifier of each copy file, and the dyed hash value of each copy file as historical sharing data and stores them in the database. Specifically, when the original file is a PDF file, the unique identifier of the original file and the unique identifier of the copy file are both the ID field of the trailer part; when the original file is a file of other formats, the unique identifier of the original file and the unique identifier of the copy file are both hash values calculated based on the file.
[0078] That is, each recipient of each sharing operation has a historical sharing data, which includes the unique identifier of the associated original file, the sender's account, the recipient's account, the processing timestamp of the copy file, the unique identifier of the copy file, and the dyed hash value of the copy file. In this way, when a file leak occurs, the leak can be accurately tracked based on the leaked file information, and the original file sender and recipient can be located, providing an accurate and reliable traceability data basis for holding file leaks accountable.
[0079] In one embodiment, Figure 3 As shown, after step S400, the method further includes:
[0080] S500, in response to the file tracing instruction, receiving the file to be traced uploaded by the tracing party;
[0081] S600, parsing and reading the dyed hash value of the file to be traced, and performing field matching in the historical shared data to obtain corresponding file tracing information;
[0082] S700: Display corresponding tracing results according to the authority of the tracing party and the file tracing information.
[0083] In this embodiment, the file sharing page can also realize one-click tracing of files by setting a file tracing button. When the tracing party logs in to the platform and clicks the file tracing button to trigger the file tracing instruction, the platform receives the file to be traced uploaded by the tracing party, parses and reads the dyed hash value in the file to be traced, and matches the field in the stored historical sharing data to obtain the corresponding file tracing information. The specific matched file tracing information indicates the unique identifier of the original file, the sender's account, the receiver's account, and the processing timestamp of the copy file. Preferably, in order to ensure the reliability of file tracing, after the field is matched, a hash calculation can be performed based on the matched file tracing information connection to obtain a tracing hash value, and the dyed hash value is compared to verify whether it is consistent with the tracing hash value, so as to reversely verify the tracing result and avoid file tracing errors caused by field matching errors.
[0084] Based on the authority of the tracing party and the matched file tracing information, the corresponding tracing results are displayed, that is, the tracing party has different authority ranges for file tracking, so that accurate tracing can be performed based on the dyed hash value while avoiding the leakage of file flow information.
[0085] Specifically, the tracing party can be divided into ordinary users or administrator users, and their file permissions are ordinary permissions and administrator permissions respectively. Therefore, when displaying the tracing results, first confirm whether the permissions of the tracing party are ordinary permissions or administrator permissions. If it is ordinary permissions, then based on the traced file tracing information, confirm whether the tracing party is the sender or receiver of the file to be traced, that is, whether the matched sender or receiver is tracing the file. If so, the platform will feedback and display the file tracing information such as the sender, receiver, and time point of the file. Otherwise, a prompt message that the user has no right to view will be displayed to prevent ordinary users from arbitrarily tracing the dissemination information of various files. If it is administrator permissions, the tracing party has the authority to trace the source of various files. Therefore, the file tracing information such as the sender, receiver, and time point of the file can be directly displayed to achieve an efficient, accurate, and visualized file tracing process, which is convenient for holding users who leak the file accountable, serves as a warning to the leaker, and minimizes the risk of data leakage.
[0086] Another embodiment of the present invention provides a file security sharing device based on data coloring, such as Figure 4 As shown, the device 1 comprises:
[0087] The file upload module 11 is used to receive the original file uploaded by the sender and the recipient list in response to the file upload instruction;
[0088] A copy generation module 12, used for generating a corresponding number of copy files of the original file according to the recipient list;
[0089] The data coloring module 13 is used to generate the coloring content of each copy file according to a preset data coloring strategy, and perform coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient;
[0090] The file sharing module 14 is used to share the dyed target file with a corresponding recipient in response to a file sharing instruction.
[0091] The module referred to in the present invention refers to a series of computer program instruction segments that can perform specific functions, which is more suitable for describing the execution process of file security sharing based on data coloring than a program. For the specific implementation of each module, please refer to the corresponding method embodiment above, which will not be repeated here.
[0092] In one embodiment, the data coloring module 13 includes:
[0093] An identification acquisition unit, used to acquire a unique identification of the original file;
[0094] A dye content generating unit, used to generate dye content for each copy file according to the unique identifier of the original file, the account number of the sender, the account number of each receiver, and the processing timestamp of each copy file;
[0095] A position confirmation unit, used to determine a corresponding dyeing position according to the format of the original file;
[0096] The dyeing inserting unit is used to insert the dyeing content into the dyeing position of each copy file to obtain a dyed target file corresponding to each recipient.
[0097] In one embodiment, the coloring content generating unit is specifically used to:
[0098] The unique identifier of the original file, the sender's account number, the account number of each recipient, and the processing timestamp of each copy file are connected and hashed to obtain the colored hash value of each copy file as the colored content.
[0099] In one embodiment, the device 1 further comprises:
[0100] The state editing module is used to set the dyed target file to a non-editable state.
[0101] In one embodiment, the device 1 further comprises:
[0102] The recording module is used to associate and record the unique identifier of the original file, the sender's account, the account of each recipient, the processing timestamp of each copy file, the unique identifier of each copy file, and the dyed hash value of each copy file as historical sharing data.
[0103] In one embodiment, the device 1 further comprises:
[0104] A tracing upload module, used to respond to a file tracing instruction and receive the file to be traced uploaded by the tracing party;
[0105] A parsing and matching module is used to parse and read the dyed hash value of the file to be traced, and perform field matching in the historical shared data to obtain corresponding file tracing information;
[0106] The tracing display module is used to display the corresponding tracing results according to the authority of the tracing party and the file tracing information.
[0107] In one embodiment, the traceability display module includes:
[0108] An authority confirmation unit, used to confirm whether the authority of the tracing party is a common authority or an administrator authority;
[0109] A result display unit is used to confirm whether the tracing party is the sender or receiver of the file to be traced according to the file tracing information when the authority is ordinary, and if so, display the complete file tracing information, otherwise display a prompt message that the party is not authorized to view; and
[0110] When the user has administrator privileges, the complete file traceability information is displayed directly.
[0111] Another embodiment of the present invention provides a file security sharing system based on data coloring, such as Figure 5 As shown, the system 10 includes:
[0112] One or more processors 110 and memory 120, Figure 5 A processor 110 is used as an example for description. The processor 110 and the memory 120 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0113] The processor 110 is used to complete various control logics of the system 10, and it can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a single-chip microcomputer, an ARM (Acorn RISC Machine) or other programmable logic device, a discrete gate or transistor logic, a discrete hardware component, or any combination of these components. In addition, the processor 110 can also be any traditional processor, microprocessor or state machine. The processor 110 can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP and / or any other such configuration.
[0114] The memory 120, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as program instructions corresponding to the data coloring-based file security sharing method in the embodiment of the present invention. The processor 110 executes various functional applications and data processing of the system 10 by running the non-volatile software programs, instructions and units stored in the memory 120, that is, implements the data coloring-based file security sharing method in the above method embodiment.
[0115] The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created according to the use of the system 10, etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 120 may optionally include a memory remotely arranged relative to the processor 110, and these remote memories may be connected to the system 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0116] One or more units are stored in the memory 120, and when executed by one or more processors 110, the file security sharing method based on data coloring in any of the above method embodiments is executed, for example, the above described Figure 1 The method comprises steps S100 to S400.
[0117] An embodiment of the present invention provides a non-volatile computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the file security sharing method based on data coloring in any of the above method embodiments is executed, for example, the above described method is executed. Figure 1 The method comprises steps S100 to S400.
[0118] As an example, non-volatile storage media can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) as external cache memory. By way of illustration and not limitation, RAM can be obtained in many forms such as synchronous RAM (SRAM), dynamic RAM, (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct Rambus RAM (DRRAM). The disclosed memory components or memories of the operating environment described herein are intended to include one or more of these and / or any other suitable types of memory.
[0119] In summary, in the data coloring-based file security sharing method, device, system and medium disclosed in the present invention, the method includes: in response to a file upload instruction, receiving the original file uploaded by the sender and the recipient list; generating a corresponding number of copy files of the original file according to the recipient list; generating the coloring content of each copy file according to a preset data coloring strategy, and coloring the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient; in response to a file sharing instruction, sharing the colored target file with the corresponding recipient. By copying and data coloring the files to be shared, each copy file shared has a unique and traceable coloring content, which ensures the security and traceability of file sharing regardless of internal or external sharing within the enterprise, expands the scope of application of file security management and control, and minimizes the risk of sensitive information leakage.
[0120] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium, and the computer program can include the processes of the above-mentioned method embodiments when executed. The storage medium can be a memory, a disk, a floppy disk, a flash memory, an optical storage device, etc.
[0121] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A file security sharing method based on data coloring, characterized in that: include: In response to the file upload instruction, receiving the original file uploaded by the sender and the recipient list; Generate a corresponding number of copies of the original file according to the recipient list; Generate the dyed content of each copy file according to the preset data dyeing strategy, and dye the corresponding copy file based on the dyed content to obtain the dyed target file corresponding to each recipient; In response to the file sharing instruction, the dyed target file is shared with the corresponding recipient.
2. The method for secure file sharing based on data coloring according to claim 1, characterized in that: The step of generating the dyed content of each copy file according to a preset data dyeing strategy, and dyeing the corresponding copy file based on the dyed content to obtain a dyed target file corresponding to each recipient includes: Obtaining a unique identifier of the original file; Generate the dyed content of each copy file according to the unique identifier of the original file, the account number of the sender, the account number of each recipient, and the processing timestamp of each copy file; Determine the corresponding dyeing position according to the format of the original file; The dyed content is correspondingly inserted into the dyed position of each copy file to obtain a dyed target file corresponding to each recipient.
3. The method for secure file sharing based on data coloring according to claim 2, characterized in that: The step of generating the dyed content of each copy file according to the unique identifier of the original file, the account of the sender, the account of each receiver, and the processing timestamp of each copy file specifically includes: The unique identifier of the original file, the sender's account number, the account number of each recipient, and the processing timestamp of each copy file are connected and hashed to obtain the colored hash value of each copy file as the colored content.
4. The method for secure file sharing based on data coloring according to claim 1, characterized in that: After obtaining the dyed target file corresponding to each recipient, the method further includes: The dyed target file is set to be in an uneditable state.
5. The method for secure file sharing based on data coloring according to claim 3, characterized in that: After the colored target file is shared with the corresponding recipient in response to the file sharing instruction, the method further includes: The unique identifier of the original file, the sender's account, each recipient's account, the processing timestamp of each copy file, the unique identifier of each copy file, and the dyed hash value of each copy file are associated and recorded as historical sharing data.
6. The method for secure file sharing based on data coloring according to claim 5, characterized in that: After the colored target file is shared with the corresponding recipient in response to the file sharing instruction, the method further includes: In response to the file tracing instruction, receiving the file to be traced uploaded by the tracing party; Parse and read the dyed hash value of the file to be traced, and perform field matching in the historical shared data to obtain corresponding file tracing information; According to the authority of the tracing party and the file tracing information, the corresponding tracing results are displayed.
7. The method for secure file sharing based on data coloring according to claim 6, characterized in that: The corresponding tracing results are displayed according to the authority of the tracing party and the file tracing information, including: Confirm that the authority of the traceable party is general authority or administrator authority; When it is a normal authority, confirm whether the tracing party is the sender or receiver of the file to be traced according to the file tracing information. If so, display the complete file tracing information, otherwise display a prompt message that you are not authorized to view; When the user has administrator privileges, the complete file traceability information is displayed directly.
8. A file security sharing device based on data coloring, characterized in that: include: A file upload module, used to respond to a file upload instruction and receive the original file uploaded by the sender and the recipient list; A copy generation module, used for generating a corresponding number of copy files of the original file according to the recipient list; A data coloring module, used to generate coloring content of each copy file according to a preset data coloring strategy, and perform coloring processing on the corresponding copy file based on the coloring content to obtain a colored target file corresponding to each recipient; The file sharing module is used to share the dyed target file with a corresponding receiver in response to a file sharing instruction.
9. A file security sharing system based on data coloring, characterized in that: The system includes at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data coloring-based file security sharing method described in any one of claims 1-7.
10. A non-volatile computer-readable storage medium, characterized in that: The non-volatile computer-readable storage medium stores computer-executable instructions, which, when executed by one or more processors, enable the one or more processors to execute the data coloring-based file security sharing method described in any one of claims 1-7.
