CN111193659B - File processing method and device based on instant chat tool - Google Patents
File processing method and device based on instant chat tool Download PDFInfo
- Publication number
- CN111193659B CN111193659B CN201911423138.1A CN201911423138A CN111193659B CN 111193659 B CN111193659 B CN 111193659B CN 201911423138 A CN201911423138 A CN 201911423138A CN 111193659 B CN111193659 B CN 111193659B
- Authority
- CN
- China
- Prior art keywords
- terminal
- file
- secret
- server
- secret key
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
- H04L63/0435—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a file processing method and a device based on an instant chat tool, relates to the technical field of communication, and aims to solve the problem that the content of a confidential file is easy to leak because files transmitted by the existing IM are not encrypted. The method comprises the following steps: sending secret opening mode information to a server, wherein the secret opening mode information carries an ID (identity) of a first terminal; and receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be sent to form a first secret file, sending the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be sent.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a file processing method and device based on an instant chat tool.
Background
An Instant chat tool (IM for short) is an application program for transmitting Instant messages between users, and is convenient for users to communicate. IM is an indispensable communication tool for business office, the message content of chat necessarily involves confidential information, such as business confidentiality discussed at a high level with respect to business strategy, salary treatment discussed at HR with respect to employee welfare, and the like, which is inconvenient and should not be seen by other employees, and even cannot be directly viewed and searched in the system by an IT system administrator.
There is a "secret talk" function in the precious friend chat of payment, the logic of "secret talk" burns for the message reading back, and the message that has just seen promptly can disappear in a few seconds, and the pain point that secret chat text, picture can be revealed has been solved to a certain extent to this function of "secret talk". Because the private messages are applied to the payment treasures, general chat contents relate to sensitive money, only text data of the chat are encrypted, and used data are deleted, so that the software only can solve sensitive information related to the money of an individual user; moreover, the use scene of the 'private conversations' is generally personal, and the value of the chat data is not high. In an enterprise, the value of the content of the chat among the employees may be high, and most of the employees need to support chat data cloud storage to prevent data loss and facilitate development of daily work.
Based on the above, the existing enterprise employees chat all adopt IM supporting chat data cloud storage, but IM has the problem that the content of the confidential files is easy to leak because the transmission files are not encrypted.
Disclosure of Invention
The embodiment of the invention provides a file processing method and device based on an instant chat tool, which are used for solving the problem that the content of a confidential file is easy to leak because the files transmitted by the existing IM are not encrypted.
The embodiment of the invention provides a file processing method based on an instant chat tool, which comprises the following steps:
sending secret opening mode information to a server, wherein the secret opening mode information carries the ID of a first terminal;
and receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be sent to form a first secret file, sending the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be sent.
Preferably, after obtaining the first file to be sent, the method further includes:
and if the first file to be transmitted received by the second terminal needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first confidential file according to the first secret key to obtain the first file to be transmitted.
Preferably, the sending of the secret opening mode information to the server also carries the ID of the second terminal;
the obtaining, by the second terminal, the first key from the terminal after receiving the first confidential file specifically includes:
so that the second terminal sends the ID of the second terminal to the server, and the server sends the first key to the second terminal according to the ID of the second terminal.
Preferably, after obtaining the first file to be sent, the method further includes:
and downloading the first file to be sent from the second terminal.
The embodiment of the invention provides a file processing method based on an instant chat tool, which comprises the following steps:
receiving a first confidential file sent by a first terminal, and sending an ID of a second terminal and the first confidential file to a server;
receiving a first secret key sent by the server, and decrypting the first confidential file according to the first secret key to obtain a first file to be sent by the first terminal; and the server stores the ID of the second terminal matched with the first key.
Preferably, after obtaining the first file to be sent by the first terminal, the method further includes:
and if the second terminal receives that the first file to be transmitted needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first encrypted file according to the first secret key to obtain the first file to be transmitted.
The embodiment of the invention provides a file processing device based on an instant chat tool, which comprises:
the first sending unit is used for sending secret opening mode information to the server, and the secret opening mode information carries the ID of the first terminal;
the second sending unit is configured to receive a first secret key corresponding to the secret opening mode information and fed back by the server, add the first secret key to a first to-be-sent file to form a first secret file, send the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypt the first secret file according to the first secret key to obtain the first to-be-sent file.
Preferably, the second sending unit is further configured to:
and if the first file to be transmitted received by the second terminal needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first confidential file according to the first secret key to obtain the first file to be transmitted.
The embodiment of the invention provides a file processing device based on an instant chat tool, which comprises:
the first receiving unit is used for receiving the first confidential file sent by the first terminal and sending the ID of the second terminal and the first confidential file to the server;
the second receiving unit is used for receiving the first secret key sent by the server and decrypting the first confidential file according to the first secret key to obtain a first file to be sent by the first terminal; and the server stores the ID of the second terminal matched with the first key.
An embodiment of the present invention provides an electronic device, including:
a memory having a computer program stored thereon;
and the processor is used for executing the computer program in the memory so as to realize the steps of the file processing method based on the instant chat tool.
The embodiment of the invention provides a computer storage medium, wherein a computer program is stored on the computer storage medium, and the program realizes the steps of the file processing method based on the instant chat tool when being executed by a processor.
The embodiment of the invention provides a file processing method based on an instant chat tool, which comprises the following steps: the method comprises the following steps: sending secret opening mode information to a server, wherein the secret opening mode information carries an ID (identity) of a first terminal; and receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be sent to form a first secret file, sending the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be sent. In the method, a message sender, namely a first terminal, can generate a first key through an independent server and load the first key in a first file to be sent for transmission, and accordingly, after a second terminal receives the first file to be sent loaded with the first key, the message needs to be decrypted to obtain the first file to be sent. The method solves the problems that any chat message can be obtained by an enterprise IT administrator in the system and secret-related information is leaked due to the fact that all chat messages are not encrypted; furthermore, the enterprise uses the method for specific workers through background management and control, when the workers use the chat tool to transmit files, the passwords are required to decrypt every time the transmitted files are checked, and the security of file transmission is greatly improved; moreover, the method only encrypts the transmitted file, and the corresponding data is not damaged, so that the existing way of avoiding data damage caused by secret leakage is avoided. The method solves the problem that the content of the confidential file is easy to leak because the transmission file of the existing IM is not encrypted.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a file processing method based on an instant chat tool according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another file processing method based on an instant chat tool according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a confidential chat mode according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a file processing apparatus based on an instant chat tool according to an embodiment of the present invention;
FIG. 5 is a schematic structural diagram of another instant chat tool-based file processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Fig. 1 exemplarily shows a flowchart of a file processing method based on an instant chat tool, which can be at least in the field of communication technologies. As shown in fig. 1, the method for processing files based on instant chat tool mainly includes the following steps:
and 102, receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be transmitted to form a first secret file, transmitting the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be transmitted.
It should be noted that the main execution body in the foregoing embodiment is the first terminal, where the first terminal interacts with the second terminal through the server.
In step 101, when the first terminal needs to send a file to the second terminal, and the sent file content relates to some confidential content, the first terminal sends the secret opening mode information to the server electrically connected to the first terminal before sending the file to the second terminal, where the secret opening mode information carries an ID of the first terminal, and based on this, the server may feed back the first key to the first terminal.
In step 102, the first secret key fed back by the server and received by the first terminal confirms that the first secret key corresponds to the secret opening mode information sent by the first terminal, that is, the first secret key is fed back to the first terminal by the server for the secret opening mode information.
The first terminal stores the first key in a set area, so that the first key can be conveniently used in subsequent file transmission with the second terminal. Further, after confirming the first file to be transmitted to the second terminal, the first terminal adds the first key to the first file to be transmitted, the first file to be transmitted and the first key form a first secret file, and the first terminal transmits the first secret file to the second terminal.
In the embodiment of the present invention, after the second terminal receives the first confidential document sent by the first terminal, the first confidential document cannot be directly displayed on the second terminal because the first confidential document includes the first key.
Further, after receiving the first confidential file, the second terminal needs to obtain a first key corresponding to the first confidential file from the server, and obtain the first file to be transmitted, which is transmitted by the first terminal, from the first confidential file based on the first key. Specifically, the second terminal sends the ID of the second terminal to the server, and after receiving the ID of the second terminal sent by the second terminal, the server finds the first key matched with the ID of the second terminal according to the secret opening mode information stored in the system, and sends the first key to the second terminal.
It should be noted that, when the first terminal sends the secret opening mode information to the server, the information carries the ID of the first terminal and the ID of the second terminal, and the server determines the first key according to the secret opening mode information, and then stores the first key, the ID of the first terminal, the ID of the second terminal, and the secret opening mode information in the set area.
And after receiving the first secret key sent by the server, the second terminal decrypts the first confidential file, so that a first file to be sent, which is sent to the second terminal by the first terminal, can be obtained.
Further, after the interface of the second terminal displays the first file to be transmitted, if the first file to be transmitted needs to be stored in the second terminal, the second terminal may download the first file to be transmitted and then store the first file to be transmitted in the second terminal.
Based on the above flow, the first terminal completes the process of sending the confidential document to the second terminal.
It should be noted that, in practical applications, if the second terminal needs to display the first to-be-transmitted file received by the second terminal to the third terminal after the second terminal receives the first to-be-transmitted file transmitted by the first terminal and after the worker leaves the working location of the second terminal, the third terminal is not included in the first key stored in the server, the ID of the first terminal, the ID of the second terminal, and the secret opening mode information, and therefore the first to-be-transmitted file cannot be displayed on the third terminal. In the embodiment of the present invention, the device authorization information is sent to the second terminal by the third terminal, and after receiving the device authorization information, the second terminal may send the first key obtained from the server to the third terminal. After the third terminal receives the first secret key sent by the second terminal, the first confidential file can be decrypted, and therefore the first file to be sent is displayed on the third terminal.
Fig. 2 exemplarily shows a flowchart of another file processing method based on an instant chat tool according to an embodiment of the present invention, and as shown in fig. 2, the file processing method based on the instant chat tool mainly includes the following steps:
It should be noted that the main execution body in the foregoing embodiment is the second terminal, where the second terminal interacts with the first terminal through the server.
In step 201, the second terminal receives the first secret file sent by the first terminal, and the first secret file cannot be directly displayed on the second terminal because the first secret file includes the first key. Further, the second terminal needs to obtain a first key corresponding to the first confidential document from the server, where the first key is a key used when the second terminal and the first terminal perform interaction.
And after receiving the ID of the second terminal sent by the second terminal, the server finds a first secret key matched with the ID of the second terminal according to the secret opening mode information stored in the system and sends the first secret key to the second terminal.
It should be noted that, before the second terminal receives the first confidential document sent by the first terminal, because the first terminal confirms that the file sent to the second terminal relates to some confidential contents, before the first confidential document is sent to the second terminal, the first terminal sends the secret opening mode information to the server electrically connected to the first terminal, where the secret opening mode information carries the ID of the first terminal and the ID of the second terminal.
When the server receives the secret opening mode information sent by the first terminal and the ID of the second terminal carried in the information, a first secret key is generated according to the information, and then the secret opening mode information, the ID of the first terminal, the ID of the second terminal and the first secret key are stored in a set area of the server.
After receiving the first key fed back by the server, the first terminal adds the first key into a first file to be sent, which needs to be sent to the second terminal, and the first key and the first file to be sent form a first confidential file.
Based on this, after the second terminal sends the ID of the second terminal to the server, the server feeds back the first key to the second terminal.
In step 202, after the second terminal receives the first key sent by the server, the first encrypted file may be decrypted according to the first key, so as to obtain a first file to be sent, which is sent by the first terminal to the second terminal.
It should be noted that, when the first terminal sends the first file to be sent to the second terminal, and the second terminal has decrypted the first file to be sent, the first terminal and the second terminal complete the session.
In practical application, if the second terminal receives the first to-be-transmitted file sent by the first terminal, and the worker leaves the working position of the second terminal and needs to display the first to-be-transmitted file received by the second terminal to the third terminal, the third terminal cannot display the first to-be-transmitted file because the third terminal is not included in the first secret key, the ID of the first terminal, the ID of the second terminal and the secret opening mode information stored in the server. In the embodiment of the present invention, the device authorization information is sent to the second terminal by the third terminal, and after receiving the device authorization information, the second terminal may send the first key obtained from the server to the third terminal. After receiving the first key sent by the second terminal, the third terminal can decrypt the first encrypted file, so that the first file to be sent is displayed on the third terminal.
In order to more clearly describe the file processing method based on the instant chat tool provided by the embodiment of the present invention, the file processing method based on the instant chat tool is described in detail below with reference to fig. 3.
Fig. 3 is a schematic flow chart of a confidential chat mode according to an embodiment of the present invention, and as shown in fig. 3, the confidential chat mode includes a user a, a user C, a server B, and a server D. Specifically, the method comprises the following steps:
step 301, before sending a file to a user C, a user a determines to select a secret mode, and sends secret mode opening information to a server D, where the secret mode opening information carries an ID of a terminal where the user a is located and an ID of a terminal where the user C is located.
Step 302, after receiving the information of the secret opening mode, the server D generates an X key, stores the X key, the information of the secret opening mode, the ID of the terminal (terminal a) where the user a is located and the ID of the terminal (terminal C) where the user C is located in the server, and sends the X key to the terminal where the user a is located.
Step 303, the user a writes a file (a file to be sent) to be sent to the user C in the terminal a, adds the X key to the file to be sent in the terminal a to form a secret file a, and sends the secret file a to the user C through the server B.
After the user C receives the a secret document sent by the user a, the a secret document cannot be normally displayed on the C terminal because the X key is included in the a secret document.
In step 304, the user C needs to obtain the X key from the server D, and the user C sends the ID of the terminal C to the server D through the terminal C.
Step 305, the server sends an X key to the terminal C according to the received ID of the terminal C, and the terminal C decrypts the a secret file according to the X key to obtain a file to be sent.
It should be noted that the file processing method based on the instant chat tool provided by the embodiment of the present invention is further applicable to the following scenarios:
in a first scenario, if a specific scheme of high-level exchange financing of a company is adopted, a boss sends a commercial confidential document to a partner, the document can only be opened at a terminal where the partner is located, an IT management person cannot view the document from a background, and further, the confidential document cannot be decrypted and viewed due to the fact that the confidential document cannot be obtained when being forwarded again.
And if the confidential document needs to be displayed on the terminal of the friend, the terminal of the partner needs to send a secret key to the terminal of the friend, so that the terminal of the friend can display the confidential document.
Scene four: based on scenario one, when the boss searches for the file on a daily basis, the confidential file cannot be searched because the confidential file is encrypted, and therefore the risk that confidential information is leaked is reduced.
Finally, an embodiment of the present invention provides a file processing method based on an instant chat tool, including: the method comprises the following steps: sending secret opening mode information to a server, wherein the secret opening mode information carries the ID of a first terminal; and receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be transmitted to form a first secret file, transmitting the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be transmitted. In the method, a message sender, that is, a first terminal, may generate a first key through an independent server, and load the first key in a first file to be sent for transmission, and accordingly, after receiving the first file to be sent loaded with the first key, a second terminal may need to decrypt the message to obtain the first file to be sent. The method solves the problem that the confidential information is leaked because an enterprise IT administrator can acquire any chat message in the system and all the chat messages are not encrypted; furthermore, the enterprise uses the method for specific workers through background management and control, when the workers use the chat tool to transmit files, the passwords are required to decrypt every time the transmitted files are checked, and the security of file transmission is greatly improved; moreover, the method only encrypts the transmitted file, and the corresponding data is not damaged, so that the existing way of avoiding data damage caused by secret leakage is avoided. The method solves the problem that the content of the confidential file is easy to leak because the transmission file of the existing IM is not encrypted.
Based on the same inventive concept, the embodiment of the invention provides a file processing device based on an instant chat tool, and as the principle of solving the technical problem of the device is similar to the file processing method based on the instant chat tool, the implementation of the device can refer to the implementation of the method, and repeated parts are not described again.
Fig. 4 is a schematic structural diagram of a file processing device based on an instant chat tool according to an embodiment of the present invention, and as shown in fig. 4, the device mainly includes: a first transmission unit 401 and a second transmission unit 402.
A first sending unit 401, configured to send secret opening mode information to a server, where the secret opening mode information carries an ID of a first terminal;
a second sending unit 402, configured to receive a first key corresponding to the secret opening mode information fed back by the server, add the first key to a first file to be sent to form a first secret file, send the first secret file to the second terminal, so that the second terminal obtains the first key from the server after receiving the first secret file, and decrypt the first secret file according to the first key to obtain the first file to be sent.
Preferably, the second sending unit 402 is further configured to:
and if the first file to be transmitted received by the second terminal needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first encrypted file according to the first secret key to obtain the first file to be transmitted.
Fig. 5 is a schematic structural diagram of another file processing apparatus based on an instant chat tool according to an embodiment of the present invention, and as shown in fig. 5, the apparatus mainly includes: a first receiving unit 501 and a second receiving unit 502.
A first receiving unit 501, configured to receive a first secret file sent by a first terminal, and send an ID of a second terminal and the first secret file to a server;
a second receiving unit 502, configured to receive a first key sent by the server, and decrypt the first encrypted file according to the first key to obtain a first file to be sent, where the first file to be sent is sent by the first terminal; and the server stores the ID of the second terminal matched with the first key.
It should be understood that the above instant chat tool based file processing device includes only logical division according to the functions implemented by the apparatus device, and in practical applications, the above units may be stacked or split. The functions implemented by the file processing device based on the instant chat tool in this embodiment correspond to the file processing method based on the instant chat tool in the foregoing embodiment one by one, and for the more detailed processing flow implemented by the device, detailed description is already made in the foregoing method embodiment, and detailed description is not given here.
The embodiment of the invention also provides a storage medium containing computer executable instructions, wherein a computer program is stored on the storage medium, and when the program is executed by a processor, the steps of the file processing method based on the instant chat tool are realized.
Computer storage media can be any available media or data storage device that can be accessed by a computer, including, but not limited to, magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), among others.
An embodiment of the present invention further provides an electronic device, including:
a memory having a computer program stored thereon;
and the processor is used for executing the computer program in the memory so as to realize the steps of the file processing method based on the instant chat tool.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device 600 includes a processor 601, a memory 602, and a transceiver 603; wherein the processor 601, the memory 602 and the transceiver 603 are connected to each other by a bus 604.
The memory 602 is used to store programs; in particular, the program may include program code comprising computer operating instructions. The memory 602 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a hard disk (hard disk drive, abbreviated to HDD) or a solid-state drive (SSD); the memory 602 may also comprise a combination of memories of the kind described above.
The memory 602 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof:
and (3) operating instructions: including various operational instructions for performing various operations.
Operating the system: including various system programs for implementing various basic services and for handling hardware-based tasks.
The bus 604 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 6, but that does not indicate only one bus or one type of bus.
The processor 601 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of a CPU and an NP. But also a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), a General Array Logic (GAL), or any combination thereof.
The processor 601 is configured to execute the computer program in the memory 602 to implement the steps of the above-mentioned file processing method based on an instant chat tool.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (6)
1. A file processing method based on an instant chat tool is characterized by comprising the following steps:
sending secret opening mode information to a server, wherein the secret opening mode information carries the ID of a first terminal;
receiving a first secret key corresponding to the secret opening mode information fed back by the server, adding the first secret key into a first file to be transmitted to form a first secret file, transmitting the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be transmitted;
if the first file to be transmitted received by the second terminal needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first encrypted file according to the first secret key to obtain the first file to be transmitted;
the sending of the secret opening mode information to the server also carries the ID of the second terminal;
after the second terminal receives the first confidential file, the obtaining of the first key from the terminal specifically includes:
so that the second terminal sends the ID of the second terminal to the server, and the server sends the first key to the second terminal according to the ID of the second terminal.
2. The processing method of claim 1, wherein after obtaining the first file to be transmitted, further comprising:
and downloading the first file to be sent from the second terminal.
3. A file processing method based on an instant chat tool is characterized by comprising the following steps:
receiving a first confidential file sent by a first terminal, and sending an ID of a second terminal and the first confidential file to a server;
the server determines a first secret key matched with the ID of the second terminal according to the ID of the second terminal and the information of the secret opening mode stored in the system, and sends the first secret key to the second terminal;
receiving a first secret key sent by the server, and decrypting the first confidential file according to the first secret key to obtain a first file to be sent by the first terminal; the server stores the ID of the second terminal matched with the first key;
and if the second terminal receives that the first file to be transmitted needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first encrypted file according to the first secret key to obtain the first file to be transmitted.
4. A document processing device based on an instant chat tool is characterized by comprising:
the system comprises a first sending unit, a second sending unit and a third sending unit, wherein the first sending unit is used for sending secret opening mode information to a server, and the secret opening mode information carries an ID (identity) of a first terminal;
the second sending unit is used for receiving a first secret key corresponding to the secret-opening mode information fed back by the server, adding the first secret key to a first file to be sent to form a first secret file, sending the first secret file to a second terminal, so that the second terminal obtains the first secret key from the server after receiving the first secret file, and decrypting the first secret file according to the first secret key to obtain the first file to be sent; the second sending unit is further configured to: if the first file to be sent received by the second terminal needs to be displayed on a third terminal, the second terminal sends the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first encrypted file according to the first secret key to obtain the first file to be sent
The sending of the secret opening mode information to the server also carries the ID of the second terminal;
the second sending unit is specifically configured to:
so that the second terminal sends the ID of the second terminal to the server, and the server sends the first key to the second terminal according to the ID of the second terminal.
5. A file processing device based on instant chat tool, characterized in that, it includes:
the first receiving unit is used for receiving the first confidential file sent by the first terminal and sending the ID of the second terminal and the first confidential file to the server;
the server determines a first secret key matched with the ID of the second terminal according to the ID of the second terminal and the information of the secret opening mode stored in the system, and sends the first secret key to the second terminal;
the second receiving unit is used for receiving the first secret key sent by the server and decrypting the first confidential file according to the first secret key to obtain a first file to be sent by the first terminal; the server stores the ID of the second terminal matched with the first secret key; the second receiving unit is further configured to: and if the second terminal receives that the first file to be transmitted needs to be displayed on a third terminal, the second terminal transmits the first secret key acquired from the server to the third terminal, so that the third terminal decrypts the first machine encrypted file according to the first secret key to obtain the first file to be transmitted.
6. An electronic device, comprising:
a memory having a computer program stored thereon;
a processor for executing said computer program in said memory to implement the steps of the instant chat tool based file processing method of claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911423138.1A CN111193659B (en) | 2019-12-30 | 2019-12-30 | File processing method and device based on instant chat tool |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911423138.1A CN111193659B (en) | 2019-12-30 | 2019-12-30 | File processing method and device based on instant chat tool |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111193659A CN111193659A (en) | 2020-05-22 |
CN111193659B true CN111193659B (en) | 2022-07-26 |
Family
ID=70710619
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911423138.1A Active CN111193659B (en) | 2019-12-30 | 2019-12-30 | File processing method and device based on instant chat tool |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111193659B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410619A (en) * | 2014-11-21 | 2015-03-11 | 中国联合网络通信集团有限公司 | Instant messaging method and instant messaging system |
CN105281897A (en) * | 2014-07-22 | 2016-01-27 | 中兴通讯股份有限公司 | File encryption method and device and file decryption method and device |
CN106850522A (en) * | 2016-05-24 | 2017-06-13 | 中国科学院信息工程研究所 | The implementation method of Group file encrypted transmission in a kind of instant messaging |
CN109951378A (en) * | 2019-03-22 | 2019-06-28 | 西安电子科技大学 | File encryption transmission and sharing method in a kind of instant messaging |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7131003B2 (en) * | 2003-02-20 | 2006-10-31 | America Online, Inc. | Secure instant messaging system |
CN105262756B (en) * | 2015-10-28 | 2017-07-18 | 广东欧珀移动通信有限公司 | The encryption and decryption approaches and encryption and decryption devices of data |
CN109274716B (en) * | 2018-08-21 | 2023-02-07 | 中国平安人寿保险股份有限公司 | File processing method and device, computer equipment and storage medium |
CN110138749B (en) * | 2019-04-23 | 2021-12-21 | 华为技术有限公司 | Data security protection method and related equipment |
-
2019
- 2019-12-30 CN CN201911423138.1A patent/CN111193659B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105281897A (en) * | 2014-07-22 | 2016-01-27 | 中兴通讯股份有限公司 | File encryption method and device and file decryption method and device |
CN104410619A (en) * | 2014-11-21 | 2015-03-11 | 中国联合网络通信集团有限公司 | Instant messaging method and instant messaging system |
CN106850522A (en) * | 2016-05-24 | 2017-06-13 | 中国科学院信息工程研究所 | The implementation method of Group file encrypted transmission in a kind of instant messaging |
CN109951378A (en) * | 2019-03-22 | 2019-06-28 | 西安电子科技大学 | File encryption transmission and sharing method in a kind of instant messaging |
Also Published As
Publication number | Publication date |
---|---|
CN111193659A (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113347206B (en) | Network access method and device | |
CN104520805B (en) | According to the security application ecosystem with key and data exchange of company information control strategy | |
CN108418817B (en) | Encryption method and device | |
US20230344807A1 (en) | Rights controlled communication | |
CN105408913A (en) | Processing data privately in the cloud | |
CN104137466A (en) | Method of operating a computing device, computing device and computer program | |
CN108880812B (en) | Method and system for data encryption | |
CN110971398A (en) | Data processing method, device and system | |
CN111464295B (en) | Bank card making method and device | |
CN109154968B (en) | System and method for secure and efficient communication within an organization | |
CN114826733B (en) | File transmission method, device, system, equipment, medium and program product | |
US20180330120A1 (en) | Stacked Encryption | |
CN112733180A (en) | Data query method and device and electronic equipment | |
US10462113B1 (en) | Systems and methods for securing push authentications | |
JP2022545809A (en) | Secure environment for cryptographic key generation | |
WO2020000765A1 (en) | Off-line data storage method and apparatus, computer device and storage medium | |
US20210243036A1 (en) | Blockchain network communication management | |
CN114095277A (en) | Power distribution network secure communication method, secure access device and readable storage medium | |
CN103873245B (en) | Dummy machine system data ciphering method and equipment | |
CN111090887A (en) | Conversation content destroying method and device based on instant chat tool | |
CN111181905B (en) | File encryption method and device | |
CN111193659B (en) | File processing method and device based on instant chat tool | |
CN104123636B (en) | A kind of method, system and equipment that handling object is processed | |
CN113411347B (en) | Transaction message processing method and processing device | |
CN111814440B (en) | Cloud document processing method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |