CN114640666A - File sharing and downloading method, electronic equipment and readable storage medium - Google Patents
File sharing and downloading method, electronic equipment and readable storage medium Download PDFInfo
- Publication number
- CN114640666A CN114640666A CN202210210582.0A CN202210210582A CN114640666A CN 114640666 A CN114640666 A CN 114640666A CN 202210210582 A CN202210210582 A CN 202210210582A CN 114640666 A CN114640666 A CN 114640666A
- Authority
- CN
- China
- Prior art keywords
- file
- downloading
- sharing
- shared
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- 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]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
- G06F16/152—File search processing using file content signatures, e.g. hash values
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/176—Support for shared access to files; File sharing support
-
- 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/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to a file sharing technology, and discloses a file sharing downloading method, electronic equipment and a readable storage medium, wherein the method comprises the following steps: the file sharing client builds a file sharing ID and sends the file sharing ID to a file downloading client; the file downloading client builds a file downloading ID and sends the file downloading ID to the file sharing client; the file sharing client performs hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code; and the file downloading client performs hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code, marks the file to be shared stored in the file database by using the file sharing code, and inquires and compares the file to be shared which is correspondingly marked in the file database according to the file downloading code for downloading by the downloading client. The invention can improve the privacy of file sharing and downloading.
Description
Technical Field
The present invention relates to file sharing technologies, and in particular, to a file sharing downloading method, an electronic device, and a readable storage medium.
Background
With the development of internet technology, various cloud storage services (such as various network disk services) have attracted attention in order to realize the random access and data sharing of personal data. The cloud storage service realizes the maximization of file resource sharing through file sharing and downloading.
When the cloud storage service realizes data sharing, a data owner sets the sharing code and the effective time of the sharing code, the sharing code is sent to other people in a plaintext mode, and the other people can input the sharing code to the data storage server to request downloading. In the method, the sharing code does not have the identity identification attribute, and the data downloading can be realized when anyone obtains the sharing code in a legal or illegal way. Therefore, the current file sharing and downloading method is often that the sharing and downloading link of the file is not controlled by both parties of the file sharing, and the privacy of the file sharing and downloading is poor.
Disclosure of Invention
The invention provides a file sharing and downloading method, a file sharing and downloading device, electronic equipment and a computer readable storage medium, and mainly aims to improve the accuracy of file sharing and downloading.
In order to achieve the above object, the present invention provides a file sharing and downloading method, which is applied to a file sharing client, and includes:
establishing a file sharing ID, and sending the file sharing ID to a file downloading client;
receiving a file downloading ID sent by the file downloading client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code;
acquiring a file uploading account and identification information of a file to be shared, and combining the file uploading account, the identification information of the file to be shared and the file sharing code to obtain information of the file to be shared;
and sending the information of the file to be shared to a file storage server.
Optionally, the performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code includes:
performing hash conversion on the file sharing ID to obtain a first hash value;
the file sharing ID and the file downloading ID are connected in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file sharing code.
Optionally, the file identification information to be shared includes: the file name of the file to be shared and the hash value of the file to be shared.
In order to achieve the above object, the present invention further provides a file sharing downloading method, which is applied to a file downloading client, and includes:
establishing a file downloading ID, and sending the file downloading ID to a file sharing client;
receiving a file sharing ID sent by the file sharing client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code;
establishing file application downloading information according to the file downloading code, and sending the file application downloading information to a file storage server;
and receiving a file storage path returned by the file storage server according to the file application downloading information, and downloading the file according to the file storage path.
Optionally, the performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code includes:
performing hash conversion on the file sharing ID to obtain a first hash value;
connecting the file sharing ID with the file downloading ID in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file download code.
Optionally, the constructing of the file application download information according to the file download code includes:
acquiring a file downloading account and a downloading password;
and combining the file downloading account, the downloading password and the file downloading code to obtain the file application downloading information.
In order to achieve the above object, the present invention further provides a file sharing and downloading method, which is applied to a file storage server, and includes:
receiving information of a file to be shared sent by a file sharing client, and carrying out sharing label marking on the file in a pre-constructed file storage database according to the information of the file to be shared;
receiving file application downloading information sent by a file downloading client, extracting a file downloading code in the file application downloading information, and inquiring a file in a file storage database according to the file downloading code and a marked sharing label to obtain a file to be downloaded;
and generating a storage path of the file to be downloaded, and sending the storage path to the file downloading client.
Optionally, the performing, according to the information of the file to be shared, a sharing tag on the file in the pre-built file storage database includes:
extracting a file uploading account in the file information to be shared;
selecting all files corresponding to the file uploading account in the file storage database to obtain an uploading file set;
extracting the filename of the file to be shared and the corresponding file sharing code in the information of the file to be shared;
and selecting a target file from the uploaded file set according to the file name of the file to be shared, and carrying out sharing label marking on the target file by using the file sharing code.
Optionally, the selecting a target file from the uploaded file set according to the file name of the file to be shared includes:
extracting a hash value of the file to be shared in the file information to be shared;
selecting files with the same file names as the file names of the files to be shared from the uploaded file set to obtain a first file set;
calculating the hash value of each file in the first file set to obtain a file hash value;
and selecting the file with the hash value identical to that of the file to be shared from the first file set to obtain the target file.
Optionally, the querying, according to the file download code and the marked sharing tag, a file in the file storage database to obtain a file to be downloaded includes:
selecting files with shared labels from the uploaded file set to obtain a second file set;
and selecting the file corresponding to the sharing label which is the same as the file downloading code from the second file set to obtain the file to be downloaded.
The method comprises the steps of receiving information of a file to be shared sent by a file sharing client, and marking a sharing label of a file in a pre-constructed file storage database according to the information of the file to be shared; receiving file application downloading information sent by a file downloading client, extracting a file downloading code in the file application downloading information, and inquiring a file in a file storage database according to the file downloading code and a marked sharing label to obtain a file to be downloaded; and generating a storage path of the file to be downloaded, sending the storage path to the file downloading client, and sharing and downloading the shared file only by comprehensively verifying information of the file to be shared information sent by the file sharing client and information of both parties of the file application and downloading information sent by the file downloading client, so that the privacy of file sharing and downloading is improved.
Drawings
Fig. 1 is a schematic flowchart of a file sharing downloading method applied to a file sharing client according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a file sharing downloading method applied to a file downloading client according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a file sharing and downloading method applied to a file storage server according to an embodiment of the present invention;
fig. 4 is a schematic internal structural diagram of an electronic device implementing a file sharing and downloading method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides a file sharing and downloading method. The execution subject of the file sharing downloading method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the file sharing download method may be performed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: the cloud server can be an independent server, or can be a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, Network service, cloud communication, middleware service, domain name service, security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like.
Referring to fig. 1, a flowchart of a file sharing downloading method applied to a file sharing client according to an embodiment of the present invention is shown. The file sharing client can be terminal equipment of a data owner, such as a smart phone and a computer. In the embodiment of the present invention, the file sharing and downloading method includes:
s11, establishing a file sharing ID, and sending the file sharing ID to a file downloading client;
in the embodiment of the present invention, the file downloading client may also be a terminal device of a smart phone, a computer, or the like of a user who needs to execute data downloading. Such as: and if the user B needs to share the file to the user A, the file sharing client is the terminal equipment logged in by the account of the user B, and the file downloading client is the terminal equipment logged in by the account of the user A. In detail, the creating of the file sharing ID in the embodiment of the present invention includes: acquiring a file sharing account, generating a random number by using a pre-constructed random number generation function, and connecting the file sharing account with the generated random number by using a preset symbol to obtain the file sharing ID. For example: the generated random number is 36, the preset symbol is "#", the file sharing account is "fenxiang", and then the file sharing ID is "fenxiang # 36".
S12, receiving a file downloading ID sent by the file downloading client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code;
in detail, the performing hash calculation according to the file sharing ID and the file downloading ID in the embodiment of the present invention to obtain the file sharing code includes:
performing hash conversion on the file sharing ID to obtain a first hash value;
the file sharing ID and the file downloading ID are connected in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file sharing code. In detail, in the embodiment of the present invention, the file sharing ID may be converted into a hash value by using a hash algorithm, so as to obtain the first hash value. Further, the embodiment of the present invention may directly connect the file sharing ID and the file downloading ID in series to obtain the target ID. For example: the file sharing ID is "456", the file downloading ID is "123", and then the target ID may be "456123".
Further, in the embodiment of the present invention, the hash algorithm is used again to convert the target ID into a hash value, so as to obtain the second hash value, and the second hash value is connected in series to the first hash value, so as to obtain the file sharing code.
S13, acquiring a file uploading account and identification information of a file to be shared, and combining the file uploading account, the identification information of the file to be shared and the file sharing code to obtain information of the file to be shared;
in detail, in the embodiment of the present invention, the file uploading account is an account for uploading a file to be shared, that is, an account of the data owner. The file to be shared identification information is an identification that can be queried about a corresponding file to be shared, and optionally, the file to be shared identification information may include: the file name of the file to be shared and/or the hash value of the file to be shared, and the like.
Further, the file uploading account, the identification information of the file to be shared and the file sharing code are combined to obtain the information of the file to be shared.
And S14, sending the information of the file to be shared to a file storage server.
The file storage server side can execute identification on the corresponding file to be shared according to the information of the file to be shared, and the corresponding file can be conveniently searched in the follow-up process.
Referring to fig. 2, which is a schematic flow chart of a file sharing and downloading method applied to a file downloading client according to another embodiment of the present invention, in an embodiment of the present invention, the file sharing and downloading method includes:
s21, establishing a file downloading ID, and sending the file downloading ID to the file sharing client;
in detail, similar to the build file sharing ID described above, the build file download ID includes: acquiring a file downloading account, generating a random number by using a pre-constructed random number generating function, and connecting the file downloading account with the generated random number by using a preset symbol to obtain the file downloading ID.
S22, receiving a file sharing ID sent by the file sharing client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code;
in detail, in the embodiment of the present invention, the obtaining of the file download code by performing hash calculation according to the file sharing ID and the file download ID is similar to the method for obtaining the file sharing code, and includes:
performing hash conversion on the file sharing ID to obtain a first hash value;
the file sharing ID and the file downloading ID are connected in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file download code.
S23, establishing file application downloading information according to the file downloading code, and sending the file application downloading information to a file storage server;
in detail, the embodiment of the present invention obtains the file download account and the download password, and combines the file download account, the download password and the file download code to obtain the file application download information.
And S24, receiving a file storage path returned by the file storage server according to the file application downloading information, and downloading the file according to the file storage path.
In detail, the embodiment of the present invention receives a file storage path returned by the file storage server according to the file application download information, and downloads a file stored in the file storage path.
Referring to fig. 3, which is a schematic flow chart of a file sharing and downloading method applied to a file storage server according to an embodiment of the present invention, in an embodiment of the present invention, the file sharing and downloading method includes:
s31, receiving information of a file to be shared sent by a file sharing client, and carrying out sharing label marking on the file in a pre-constructed file storage database according to the information of the file to be shared;
in detail, in the embodiment of the present invention, the tagging of the shared file in the pre-constructed file storage database according to the information of the file to be shared includes: extracting a file uploading account in the file information to be shared; selecting all files corresponding to the file uploading account to obtain an uploading file set; extracting the file name of the file to be shared and the corresponding file sharing code in the file information to be shared; and selecting a target file from the uploaded file set according to the file name of the file to be shared, and carrying out sharing label marking on the target file by using the file sharing code.
Optionally, since the filenames of the files corresponding to the same account may be the same, selecting the target file from the uploaded file set according to the filename of the file to be shared includes:
extracting a hash value of the file to be shared in the file information to be shared;
in detail, in the embodiment of the present invention, the hash value of the file to be shared is a calculated hash value of the file to be shared.
Selecting files with the same file names as the file names of the files to be shared from the uploaded file set to obtain a first file set;
calculating the hash value of each file in the first file set to obtain a file hash value;
and selecting the file with the hash value identical to that of the file to be shared from the first file set to obtain the target file.
S32, receiving file application downloading information sent by a file downloading client, extracting a file downloading code in the file application downloading information, and inquiring files in the file storage database according to the file downloading code and the marked sharing label to obtain files to be downloaded;
in detail, in the embodiment of the present invention, a file with a shared tag is selected from the uploaded file set, and a second file set is obtained; and selecting the file with the same sharing label as the file downloading code from the second file set to obtain the file to be downloaded.
Further, in order to ensure the security of downloading, before extracting the file download code in the file application download information, the embodiment of the present invention may further include:
carrying out account password verification according to the file downloading account and the downloading password in the file application downloading information, and if the verification is passed, extracting the file downloading code in the file application downloading information; and if the verification fails, sending a message of downloading failure to the downloading client.
And S33, generating a storage path of the file to be downloaded, and sending the storage path to the file downloading client.
In detail, in the embodiment of the present invention, the storage location of the file to be downloaded in the file storage database is indexed to obtain the storage path.
In another embodiment of the present invention, in order to prevent the download address from being abused, the embodiment of the present invention may route a pre-constructed routing address to a storage location of an index, and determine the routing address as the storage path; by routing the pre-constructed routing address to the indexed storage position, the situation that the file directly accessing the storage position is not needed to be downloaded when the file stored in the storage position is not needed to be downloaded can be avoided, the routing relation between the routing address and the storage position can be cancelled, and the dynamic control of the downloading address is realized.
Fig. 4 is a schematic structural diagram of an electronic device implementing the file sharing and downloading method according to the present invention.
The electronic device may comprise a processor 10, a memory 11, a communication bus 12 and a communication interface 13, and may further comprise a computer program, such as a file sharing download program, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used not only to store application software installed in the electronic device and various types of data, such as codes of a file sharing download program, but also to temporarily store data that has been output or will be output.
The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (e.g., file sharing download programs, etc.) stored in the memory 11 and calling data stored in the memory 11.
The communication bus 12 may be a PerIPheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The communication bus 12 is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
Fig. 4 shows only an electronic device having components, and those skilled in the art will appreciate that the structure shown in fig. 4 does not constitute a limitation of the electronic device, and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power source may also include any component of one or more dc or ac power sources, recharging devices, power failure classification circuits, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Optionally, the communication interface 13 may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices.
Optionally, the communication interface 13 may further include a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), and optionally, a standard wired interface, or a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The file sharing download program stored in the memory 11 of the electronic device is a combination of computer programs, which when run in the processor 10, may implement a file sharing download method.
Optionally, when the electronic device is a file sharing client, the file sharing downloading method includes:
establishing a file sharing ID, and sending the file sharing ID to a file downloading client;
receiving a file downloading ID sent by the file downloading client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code;
acquiring a file uploading account and identification information of a file to be shared, and combining the file uploading account, the identification information of the file to be shared and the file sharing code to obtain information of the file to be shared;
and sending the information of the file to be shared to a file storage server.
Optionally, when the electronic device is a file downloading client, the file sharing downloading method includes:
establishing a file downloading ID, and sending the file downloading ID to a file sharing client;
receiving a file sharing ID sent by the file sharing client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code;
establishing file application downloading information according to the file downloading code, and sending the file application downloading information to a file storage server;
and receiving a file storage path returned by the file storage server according to the file application downloading information, and downloading the file according to the file storage path.
Optionally, when the electronic device is a file storage server, the file sharing and downloading method includes:
receiving information of a file to be shared sent by a file sharing client, and carrying out sharing label marking on the file in a pre-constructed file storage database according to the information of the file to be shared;
receiving file application downloading information sent by a file downloading client, extracting a file downloading code in the file application downloading information, and inquiring a file in a file storage database according to the file downloading code and a marked sharing label to obtain a file to be downloaded;
and generating a storage path of the file to be downloaded, and sending the storage path to the file downloading client.
Specifically, the processor 10 may refer to the description of the relevant steps in the embodiment corresponding to fig. 1 for a specific implementation method of the computer program, which is not described herein again.
Further, the electronic device integrated module/unit, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in a computer readable storage medium. The computer readable medium may be non-volatile or volatile. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
Embodiments of the present invention may also provide a computer-readable storage medium storing a computer program, the computer program being executable by a processor of an electronic device.
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.
Claims (10)
1. A file sharing downloading method is applied to a file sharing client and comprises the following steps:
establishing a file sharing ID, and sending the file sharing ID to a file downloading client;
receiving a file downloading ID sent by the file downloading client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code;
acquiring a file uploading account and identification information of a file to be shared, and combining the file uploading account, the identification information of the file to be shared and the file sharing code to obtain information of the file to be shared;
and sending the information of the file to be shared to a file storage server.
2. The method for file sharing and downloading according to claim 1, wherein the performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file sharing code comprises:
performing hash conversion on the file sharing ID to obtain a first hash value;
connecting the file sharing ID with the file downloading ID in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file sharing code.
3. The file sharing and downloading method according to claim 1, wherein the identification information of the file to be shared includes: the file name of the file to be shared and the hash value of the file to be shared.
4. A file sharing downloading method is applied to a file downloading client, and comprises the following steps:
establishing a file downloading ID, and sending the file downloading ID to a file sharing client;
receiving a file sharing ID sent by the file sharing client, and performing hash calculation according to the file sharing ID and the file downloading ID to obtain a file downloading code;
establishing file application downloading information according to the file downloading code, and sending the file application downloading information to a file storage server;
and receiving a file storage path returned by the file storage server according to the file application downloading information, and downloading the file according to the file storage path.
5. The method for file sharing and downloading according to claim 4, wherein the obtaining of the file download code by performing hash calculation according to the file sharing ID and the file download ID comprises:
performing hash conversion on the file sharing ID to obtain a first hash value;
the file sharing ID and the file downloading ID are connected in series to obtain a target ID;
performing hash conversion on the target ID to obtain a second hash value;
and combining the first hash value and the second hash value to obtain the file download code.
6. The method for file sharing download according to claim 4, wherein the constructing file application download information according to the file download code comprises:
acquiring a file downloading account and a downloading password;
and combining the file downloading account, the downloading password and the file downloading code to obtain the file application downloading information.
7. A file sharing downloading method is characterized in that the method is applied to a file storage server side and comprises the following steps:
receiving information of a file to be shared sent by a file sharing client, and carrying out sharing label marking on the file in a pre-constructed file storage database according to the information of the file to be shared;
receiving file application downloading information sent by a file downloading client, extracting a file downloading code in the file application downloading information, and inquiring a file in a file storage database according to the file downloading code and a marked sharing label to obtain a file to be downloaded;
and generating a storage path of the file to be downloaded, and sending the storage path to the file downloading client.
8. The file sharing and downloading method of claim 7, wherein the marking of the sharing tag of the file in the pre-built file storage database according to the information of the file to be shared comprises:
extracting a file uploading account in the file information to be shared;
selecting all files corresponding to the file uploading account in the file storage database to obtain an uploading file set;
extracting the filename of the file to be shared and the corresponding file sharing code in the information of the file to be shared;
and selecting a target file from the uploaded file set according to the file name of the file to be shared, and carrying out sharing label marking on the target file by using the file sharing code.
9. The method for file sharing and downloading according to claim 8, wherein the selecting a target file from the set of uploaded files according to the filename of the file to be shared comprises:
extracting a hash value of the file to be shared in the file information to be shared;
selecting files with the same file names as the file names of the files to be shared from the uploaded file set to obtain a first file set;
calculating the hash value of each file in the first file set to obtain a file hash value;
and selecting the file with the hash value identical to that of the file to be shared from the first file set to obtain the target file.
10. The method for file sharing and downloading according to claim 8, wherein the step of querying the file in the file storage database according to the file downloading code and the marked sharing tag to obtain the file to be downloaded comprises:
selecting files with shared labels from the uploaded file set to obtain a second file set;
and selecting the file corresponding to the sharing label which is the same as the file downloading code from the second file set to obtain the file to be downloaded.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210210582.0A CN114640666B (en) | 2022-03-04 | 2022-03-04 | File sharing downloading method, electronic equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210210582.0A CN114640666B (en) | 2022-03-04 | 2022-03-04 | File sharing downloading method, electronic equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114640666A true CN114640666A (en) | 2022-06-17 |
CN114640666B CN114640666B (en) | 2023-07-25 |
Family
ID=81948861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210210582.0A Active CN114640666B (en) | 2022-03-04 | 2022-03-04 | File sharing downloading method, electronic equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114640666B (en) |
Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076210A1 (en) * | 2003-10-03 | 2005-04-07 | Thomas David Andrew | Method and system for content downloads via an insecure communications channel to devices |
US20060064759A1 (en) * | 2004-09-22 | 2006-03-23 | Wildlife Acoustics, Inc. | Method and apparatus for controlling access to downloadable content |
US20080052777A1 (en) * | 2006-08-28 | 2008-02-28 | Seiichi Kawano | Method and Apparatus for Managing Shared Passwords on a Multi-User Computer |
US20100235322A1 (en) * | 2009-01-23 | 2010-09-16 | Salesforce.Com, Inc. | Methods and Systems for Sharing Information in a Supply Chain |
CN103095847A (en) * | 2013-02-04 | 2013-05-08 | 华中科技大学 | Cloud storage safety-ensuring method and system thereof |
US8744956B1 (en) * | 2010-07-01 | 2014-06-03 | Experian Information Solutions, Inc. | Systems and methods for permission arbitrated transaction services |
US20140304512A1 (en) * | 2013-03-14 | 2014-10-09 | Sergei Pronin | Method and system for authenticating and preserving data within a secure data repository |
CN104348919A (en) * | 2014-11-07 | 2015-02-11 | 北京奇虎科技有限公司 | Method and device for downloading file and browser |
WO2017000820A1 (en) * | 2015-07-01 | 2017-01-05 | 北京奇虎科技有限公司 | File sharing method, apparatus, and system based on cloud storage |
US20180176017A1 (en) * | 2015-02-13 | 2018-06-21 | Yoti Ltd | Digital Identity System |
CN109150990A (en) * | 2018-07-27 | 2019-01-04 | 掌阅科技股份有限公司 | Take down notes sharing method, equipment and computer storage medium |
CN109510881A (en) * | 2019-01-25 | 2019-03-22 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files |
CN110290146A (en) * | 2019-07-03 | 2019-09-27 | 北京达佳互联信息技术有限公司 | Share generation method, device, server and the storage medium of password |
US20200053080A1 (en) * | 2018-08-07 | 2020-02-13 | Dell Products, Lp | Apparatus and Method for Shared Credential Authentication |
CN110908969A (en) * | 2019-11-21 | 2020-03-24 | 天津联想协同科技有限公司 | File sharing method and network disk background server |
CN112019540A (en) * | 2020-08-27 | 2020-12-01 | 莫毓昌 | Data security sharing method oriented to cloud computing environment |
-
2022
- 2022-03-04 CN CN202210210582.0A patent/CN114640666B/en active Active
Patent Citations (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050076210A1 (en) * | 2003-10-03 | 2005-04-07 | Thomas David Andrew | Method and system for content downloads via an insecure communications channel to devices |
US20060064759A1 (en) * | 2004-09-22 | 2006-03-23 | Wildlife Acoustics, Inc. | Method and apparatus for controlling access to downloadable content |
US20080052777A1 (en) * | 2006-08-28 | 2008-02-28 | Seiichi Kawano | Method and Apparatus for Managing Shared Passwords on a Multi-User Computer |
US20100235322A1 (en) * | 2009-01-23 | 2010-09-16 | Salesforce.Com, Inc. | Methods and Systems for Sharing Information in a Supply Chain |
US8744956B1 (en) * | 2010-07-01 | 2014-06-03 | Experian Information Solutions, Inc. | Systems and methods for permission arbitrated transaction services |
CN103095847A (en) * | 2013-02-04 | 2013-05-08 | 华中科技大学 | Cloud storage safety-ensuring method and system thereof |
US20140304512A1 (en) * | 2013-03-14 | 2014-10-09 | Sergei Pronin | Method and system for authenticating and preserving data within a secure data repository |
CN104348919A (en) * | 2014-11-07 | 2015-02-11 | 北京奇虎科技有限公司 | Method and device for downloading file and browser |
US20180176017A1 (en) * | 2015-02-13 | 2018-06-21 | Yoti Ltd | Digital Identity System |
WO2017000820A1 (en) * | 2015-07-01 | 2017-01-05 | 北京奇虎科技有限公司 | File sharing method, apparatus, and system based on cloud storage |
CN109150990A (en) * | 2018-07-27 | 2019-01-04 | 掌阅科技股份有限公司 | Take down notes sharing method, equipment and computer storage medium |
US20200053080A1 (en) * | 2018-08-07 | 2020-02-13 | Dell Products, Lp | Apparatus and Method for Shared Credential Authentication |
CN109510881A (en) * | 2019-01-25 | 2019-03-22 | 北京字节跳动网络技术有限公司 | Method, apparatus, electronic equipment and the readable storage medium storing program for executing of sharing files |
CN110290146A (en) * | 2019-07-03 | 2019-09-27 | 北京达佳互联信息技术有限公司 | Share generation method, device, server and the storage medium of password |
CN110908969A (en) * | 2019-11-21 | 2020-03-24 | 天津联想协同科技有限公司 | File sharing method and network disk background server |
CN112019540A (en) * | 2020-08-27 | 2020-12-01 | 莫毓昌 | Data security sharing method oriented to cloud computing environment |
Also Published As
Publication number | Publication date |
---|---|
CN114640666B (en) | 2023-07-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113704665B (en) | Dynamic service release method and device, electronic equipment and storage medium | |
CN112653760A (en) | Cross-server file transmission method and device, electronic equipment and storage medium | |
CN114389889A (en) | File full life cycle management method and device based on block chain technology | |
CN114386509A (en) | Data fusion method and device, electronic equipment and storage medium | |
CN113890712A (en) | Data transmission method and device, electronic equipment and readable storage medium | |
CN114827161A (en) | Service calling request sending method and device, electronic equipment and readable storage medium | |
CN114491646A (en) | Data desensitization method and device, electronic equipment and storage medium | |
CN112328656B (en) | Service query method, device, equipment and storage medium based on middle platform architecture | |
CN112667244A (en) | Data verification method and device, electronic equipment and computer readable storage medium | |
CN114640666B (en) | File sharing downloading method, electronic equipment and readable storage medium | |
CN114157634B (en) | Unique account identification method, device, equipment and storage medium | |
CN115687384A (en) | UUID (user identifier) identification generation method, device, equipment and storage medium | |
CN115174555A (en) | File transmission method and device, electronic equipment and storage medium | |
CN114942855A (en) | Interface calling method and device, electronic equipment and storage medium | |
CN114547011A (en) | Data extraction method and device, electronic equipment and storage medium | |
CN114625700A (en) | Authority-based file display method, device, equipment and storage medium | |
CN114268559A (en) | Directional network detection method, device, equipment and medium based on TF-IDF algorithm | |
CN113918517A (en) | Multi-type file centralized management method, device, equipment and storage medium | |
CN113452785B (en) | Service access method and device based on offline resources, electronic equipment and medium | |
CN114723400B (en) | Service authorization management method, device, equipment and storage medium | |
CN115002100B (en) | File transmission method and device, electronic equipment and storage medium | |
CN114003661B (en) | Offline data entry method and device, electronic equipment and storage medium | |
CN115480842A (en) | Secondary development service method and device for product application, electronic equipment and storage medium | |
CN115225360A (en) | Resource distribution method, device, equipment and storage medium based on authority configuration | |
CN114006877A (en) | Message transmission method and device, electronic equipment and storage medium |
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 |