CN112491695A - File sharing method and system - Google Patents

File sharing method and system Download PDF

Info

Publication number
CN112491695A
CN112491695A CN202011343993.4A CN202011343993A CN112491695A CN 112491695 A CN112491695 A CN 112491695A CN 202011343993 A CN202011343993 A CN 202011343993A CN 112491695 A CN112491695 A CN 112491695A
Authority
CN
China
Prior art keywords
file
server
sharing
sharing link
address
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.)
Pending
Application number
CN202011343993.4A
Other languages
Chinese (zh)
Inventor
薛慧嵘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhongtongji Network Technology Co Ltd
Original Assignee
Shanghai Zhongtongji Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Zhongtongji Network Technology Co Ltd filed Critical Shanghai Zhongtongji Network Technology Co Ltd
Priority to CN202011343993.4A priority Critical patent/CN112491695A/en
Publication of CN112491695A publication Critical patent/CN112491695A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Storage Device Security (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a file sharing method and a file sharing system, relates to the technical field of communication, and mainly solves the technical problem of file security during file sharing. The invention comprises the following steps: uploading and storing the file to a server; the server generates a sharing link of the file and sends the sharing link to a pre-acquired target mailbox; after the sharing link is determined to be clicked and the server side authenticates, sending an extraction code to the target mailbox; and extracting the file of the server side through the extraction code and the sharing link. The invention realizes convenient file sharing, and greatly enhances the security of the file by acquiring the extraction code through the mailbox for extraction. Moreover, the method and the device are particularly suitable for sharing large files, greatly improve the convenience of file sharing, and simultaneously ensure the safety of the files.

Description

File sharing method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a file sharing method and system.
Background
The existing file sharing mode is that after a link is generated by a server, an extraction code is directly generated, and any person can input the extraction code to acquire a file as long as the dump link is obtained. Therefore, the main disadvantages in the prior art include that firstly, the security of the file cannot be guaranteed, and any person can extract the file by inputting the extraction code after acquiring the link. Secondly, link timeliness is uncontrollable, and once a file is shared out, the validity period cannot be controlled.
Disclosure of Invention
One of the purposes of the present invention is to provide a file sharing method and system, which solve the technical problem of file security during file sharing in the prior art. Advantageous effects can be achieved in preferred embodiments of the present invention, as described in detail below.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention discloses a file sharing method, which comprises the following steps:
uploading and storing the file to a server;
the server generates a sharing link of the file and sends the sharing link to a pre-acquired target mailbox;
after the sharing link is determined to be clicked and the server side authenticates, sending an extraction code to the target mailbox;
and extracting the file of the server side through the extraction code and the sharing link.
Further, the sharing link includes: file address and expiration time.
Further, after determining that the sharing link is clicked and the server side authenticates, sending an extraction code to the target mailbox includes:
after the sharing link is clicked, sending feedback information to the server;
the server compares the time of the feedback information with the expiration time;
and the server matches the address of the feedback information with the address of the target mailbox.
Further, the method comprises the following steps:
if the time of the feedback information does not exceed the expiration time, the server side judges that the sharing link is in an effective state;
and if the time of the feedback information exceeds the expiration time, the server side judges that the sharing link is in an invalid state.
Further, the matching, by the server, the address of the feedback information with the address of the target mailbox includes:
if the address of the feedback information is consistent with the address of the target mailbox, the server side sends an extraction code to the target mailbox;
and if the address of the feedback information is inconsistent with the address of the target mailbox, the server side sends alarm information to the target mailbox.
Further, extracting the file of the server through the extraction code and the sharing link includes:
inputting the extraction code in the sharing link to acquire the file address;
and extracting the file of the server side through the file address.
Further, the method also comprises the following steps:
and the server generates the sharing link by using a random function.
Further, the server includes:
the cloud monitoring service is used for mastering the running condition of the stored file in real time, monitoring the CPU utilization rate of the cloud host and the CPU utilization rate of the physical machine in real time, and receiving and processing alarm information in time when an alarm occurs;
the object storage service is used for supporting the storage of files of various types;
and the encrypted storage service is used for carrying out encrypted storage and decrypted extraction on the file.
Further, the server includes: a cloud platform and/or a backend server.
The invention discloses a file sharing system, which comprises:
the uploading module is used for uploading and storing the file to the server;
the processing module is used for the server side to generate a sharing link of the file and send the sharing link to a pre-acquired target mailbox; after the sharing link is determined to be clicked and the server side authenticates the sharing link, sending an extraction code to the target mailbox;
and the extraction module is used for extracting the file of the server side through the extraction code and the sharing link.
The file sharing method and the file sharing system provided by the invention at least have the following beneficial technical effects:
according to the method, firstly, according to a file prestored in a server, the server generates a sharing link of the file and sends the sharing link to a target mailbox; then, the target mailbox clicks the sharing link, and after the authentication of the server is successful, the server sends the extraction code to the target mailbox; and finally, extracting the file by the target mailbox through the sharing link and the extraction code. The invention realizes convenient file sharing, and greatly enhances the security of the file by acquiring the extraction code through the mailbox for extraction. Moreover, the method and the device are particularly suitable for sharing large files, greatly improve the convenience of file sharing, and simultaneously ensure the safety of the files.
The invention solves two defects, one is that technically, the mailbox of the shared personnel needs to be appointed, namely, only the target mailbox can obtain the extraction code. And the non-target sharing mailbox acquires the sharing link immediately and cannot take the extraction code. And secondly, the sharing link has timeliness, and the effective time can be controlled at any time. Therefore, the method and the device not only can safely share the file, but also can guarantee the rights and interests of the user through the sharing link.
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 flow chart of a file sharing method according to the present invention;
FIG. 2 is a schematic flow chart illustrating a file sharing method according to the present invention;
fig. 3 is a schematic structural diagram of a file sharing system according to the present invention.
In the figure, 1-an uploading module, 2-a processing module and 3-an extracting module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the examples given herein without any inventive step, are within the scope of the present invention.
Referring to fig. 1 and 2, a file sharing method according to the present invention includes:
s1: uploading and storing the file to a server;
s2: the server generates a sharing link of the file and sends the sharing link to a pre-acquired target mailbox;
s3: after the sharing link is determined to be clicked and the server side authenticates, sending an extraction code to the target mailbox;
s4: and extracting the file of the server side through the extraction code and the sharing link.
It should be noted that the target mailbox is obtained in advance, and can also be stored in the server in advance.
In step S1, the user uploads and stores the file to the server in advance, where the file includes: documents, application packages, photos, videos, and so forth.
In step S2, the generated sharing link is sent to the target mailbox in the form of mail.
In step S3, the extraction code is equivalent to the password for obtaining the file in the server, and the file in the server can be extracted only by inputting the correct extraction code in the sharing link.
According to the method, firstly, according to a file prestored in a server, the server generates a sharing link of the file and sends the sharing link to a target mailbox; then, the target mailbox clicks the sharing link, and after the authentication of the server is successful, the server sends the extraction code to the target mailbox; and finally, extracting the file by the target mailbox through the sharing link and the extraction code. The invention realizes convenient file sharing, and greatly enhances the security of the file by acquiring the extraction code through the mailbox for extraction. Moreover, the method and the device are particularly suitable for sharing large files, greatly improve the convenience of file sharing, and simultaneously ensure the safety of the files.
Preferably, the sharing link includes: file address and expiration time.
It should be noted that the file address indicates a unique address where each file is stored in the server. The expiration time can be set according to requirements, for example, to a certain day of a certain month of a certain year or to a validity period of 7 days, etc. When the time exceeds the expiration time of the sharing link, the sharing link is automatically disabled.
Step S3, after determining that the sharing link is clicked and the server side authenticates, sending an extraction code to the target mailbox, including:
after the sharing link is clicked, sending feedback information to the server;
the server compares the time of the feedback information with the expiration time;
and the server matches the address of the feedback information with the address of the target mailbox.
Further, the comparing, by the server, the time of the feedback information with the expiration time includes:
if the time of the feedback information does not exceed the expiration time, the server side judges that the sharing link is in an effective state;
and if the time of the feedback information exceeds the expiration time, the server side judges that the sharing link is in an invalid state.
Further, the matching, by the server, the address of the feedback information with the address of the target mailbox includes:
if the address of the feedback information is consistent with the address of the target mailbox, the server side sends an extraction code to the target mailbox;
and if the address of the feedback information is inconsistent with the address of the target mailbox, the server side sends alarm information to the target mailbox.
It should be noted that after the sharing link is clicked, feedback information is sent to the server. Comparing the time of the feedback information with the expiration time of the sharing link, and if the expiration time is earlier than the time of the feedback information, judging that the sharing link is in an invalid state by the server side, namely the sharing link is invalid, and the user access request fails; if the expiration time is later than the time of the feedback information, the server side judges that the sharing link is in an effective state, namely the sharing link is effective, and the user can normally acquire the file resource through the sharing link.
Matching the address of the feedback information with the address of the target mailbox, and if the address of the feedback information is consistent with the address of the target mailbox, and the server side considers that the user of the target mailbox acquires the file, sending an extraction code to the target mailbox; if the address of the feedback information is inconsistent with the address of the target mailbox, the server considers that the user of the non-target mailbox acquires the file, namely the file is accessed by an illegal user, and the server sends alarm information to the target mailbox to prompt the user of the target mailbox. For example, when the user of the target mailbox shares the sharing link with other people for use, the other people click the sharing link and then send feedback information to the server, and the server recognizes that the address of the feedback information is not sent by the target mailbox address.
If the access is illegal, the server side can directly change the effective state of the sharing link into an invalid state and resend the effective sharing link to the target mailbox.
Step S4, extracting the file of the server through the extraction code and the sharing link, including:
inputting the extraction code in the sharing link to acquire the file address;
and extracting the file of the server side through the file address.
In step S4, the target mailbox receives the mail of the sharing link, and the user clicks the sharing link, inputs the extraction code, and obtains the file address. According to the file address, the user can obtain a complete file access path and perform downloading, previewing and other operations.
Preferably, the present invention further comprises:
and the server generates the sharing link by using a random function.
The random function has randomness, the security of the sharing link is guaranteed, and the file of the server side is not easy to illegally obtain by cracking the sharing link.
Preferably, the server of the present invention includes:
the cloud monitoring service is used for mastering the running condition of the stored file in real time, monitoring the CPU utilization rate of the cloud host and the CPU utilization rate of the physical machine in real time, and receiving and processing alarm information in time when an alarm occurs;
the object storage service is used for supporting the storage of files of various types;
and the encrypted storage service is used for carrying out encrypted storage and decrypted extraction on the file.
Preferably, the server includes: a cloud platform and/or a backend server.
The invention discloses a file sharing system, which comprises:
the uploading module 1 is used for uploading and storing the file to a server;
the processing module 2 is used for the server side to generate a sharing link of the file and send the sharing link to a pre-acquired target mailbox; after the sharing link is determined to be clicked and the server side authenticates the sharing link, sending an extraction code to the target mailbox;
and the extraction module 3 is used for extracting the file of the server side through the extraction code and the sharing link.
The invention ensures that the user can safely share and extract the file, not only protects the file and is not easy to steal and steal, but also ensures the rights and interests of the user. The invention needs to appoint the mailbox of the shared personnel, namely only the target mailbox can obtain the extraction code. And the non-target sharing mailbox acquires the sharing link immediately and cannot take the extraction code. Moreover, the timeliness of the sharing link is controllable at any time, and the sharing link can be disabled at any time once the sharing link is abnormally extracted.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A file sharing method is characterized by comprising the following steps:
uploading and storing the file to a server;
the server generates a sharing link of the file and sends the sharing link to a pre-acquired target mailbox;
after the sharing link is determined to be clicked and the server side authenticates, sending an extraction code to the target mailbox;
and extracting the file of the server side through the extraction code and the sharing link.
2. The file sharing method according to claim 1, wherein the sharing link includes: file address and expiration time.
3. The file sharing method according to claim 2, wherein the step of sending an extraction code to the target mailbox after determining that the sharing link is clicked and server authentication includes:
after the sharing link is clicked, sending feedback information to the server;
the server compares the time of the feedback information with the expiration time;
and the server matches the address of the feedback information with the address of the target mailbox.
4. The file sharing method according to claim 3, wherein the comparing, by the server, the time of the feedback information with the expiration time includes:
if the time of the feedback information does not exceed the expiration time, the server side judges that the sharing link is in an effective state;
and if the time of the feedback information exceeds the expiration time, the server side judges that the sharing link is in an invalid state.
5. The file sharing method according to claim 3, wherein the matching, by the server, of the address of the feedback information with the address of the target mailbox includes:
if the address of the feedback information is consistent with the address of the target mailbox, the server side sends an extraction code to the target mailbox;
and if the address of the feedback information is inconsistent with the address of the target mailbox, the server side sends alarm information to the target mailbox.
6. The file sharing method according to claim 2, wherein extracting the file of the server side through the extraction code and the sharing link includes:
inputting the extraction code in the sharing link to acquire the file address;
and extracting the file of the server side through the file address.
7. The file sharing method according to claim 1, further comprising:
and the server generates the sharing link by using a random function.
8. The file sharing method according to claim 1, wherein the server includes:
the cloud monitoring service is used for mastering the running condition of the stored file in real time, monitoring the CPU utilization rate of the cloud host and the CPU utilization rate of the physical machine in real time, and receiving and processing alarm information in time when an alarm occurs;
the object storage service is used for supporting the storage of files of various types;
and the encrypted storage service is used for carrying out encrypted storage and decrypted extraction on the file.
9. The file sharing method according to claim 1, wherein the server includes: a cloud platform and/or a backend server.
10. A file sharing system, comprising:
the uploading module is used for uploading and storing the file to the server;
the processing module is used for the server side to generate a sharing link of the file and send the sharing link to a pre-acquired target mailbox; after the sharing link is determined to be clicked and the server side authenticates the sharing link, sending an extraction code to the target mailbox;
and the extraction module is used for extracting the file of the server side through the extraction code and the sharing link.
CN202011343993.4A 2020-11-25 2020-11-25 File sharing method and system Pending CN112491695A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011343993.4A CN112491695A (en) 2020-11-25 2020-11-25 File sharing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011343993.4A CN112491695A (en) 2020-11-25 2020-11-25 File sharing method and system

Publications (1)

Publication Number Publication Date
CN112491695A true CN112491695A (en) 2021-03-12

Family

ID=74934782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011343993.4A Pending CN112491695A (en) 2020-11-25 2020-11-25 File sharing method and system

Country Status (1)

Country Link
CN (1) CN112491695A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127432A (en) * 2021-03-23 2021-07-16 维沃移动通信有限公司 Operation execution method, device, electronic equipment and medium
CN114006897A (en) * 2021-10-28 2022-02-01 北京有竹居网络技术有限公司 File transmission method, device, server and storage medium
CN114363324A (en) * 2022-01-11 2022-04-15 北京高途云集教育科技有限公司 File sharing method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750700A (en) * 2013-12-26 2015-07-01 珠海金山办公软件有限公司 Document providing method and device
KR20150119668A (en) * 2014-04-16 2015-10-26 이가람 File sharing method and system using a e-mail message
CN105100223A (en) * 2015-07-01 2015-11-25 北京奇虎科技有限公司 File sharing method, device and system based on cloud storage
CN105827605A (en) * 2016-03-16 2016-08-03 中国联合网络通信集团有限公司 File sharing method and file sharing system
CN105991717A (en) * 2015-02-05 2016-10-05 广达电脑股份有限公司 file sharing method and system
CN110865983A (en) * 2019-09-27 2020-03-06 视联动力信息技术股份有限公司 File sharing method and device based on network disk link

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104750700A (en) * 2013-12-26 2015-07-01 珠海金山办公软件有限公司 Document providing method and device
KR20150119668A (en) * 2014-04-16 2015-10-26 이가람 File sharing method and system using a e-mail message
CN105991717A (en) * 2015-02-05 2016-10-05 广达电脑股份有限公司 file sharing method and system
CN105100223A (en) * 2015-07-01 2015-11-25 北京奇虎科技有限公司 File sharing method, device and system based on cloud storage
CN105827605A (en) * 2016-03-16 2016-08-03 中国联合网络通信集团有限公司 File sharing method and file sharing system
CN110865983A (en) * 2019-09-27 2020-03-06 视联动力信息技术股份有限公司 File sharing method and device based on network disk link

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127432A (en) * 2021-03-23 2021-07-16 维沃移动通信有限公司 Operation execution method, device, electronic equipment and medium
CN113127432B (en) * 2021-03-23 2024-06-21 维沃移动通信有限公司 Operation execution method, device, electronic equipment and medium
CN114006897A (en) * 2021-10-28 2022-02-01 北京有竹居网络技术有限公司 File transmission method, device, server and storage medium
CN114363324A (en) * 2022-01-11 2022-04-15 北京高途云集教育科技有限公司 File sharing method and device, storage medium and electronic equipment
CN114363324B (en) * 2022-01-11 2023-11-24 北京高途云集教育科技有限公司 File sharing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
US11178134B2 (en) Method and apparatus for allocating device identifiers
CN112491695A (en) File sharing method and system
CN109587162B (en) Login verification method, device, terminal, password server and storage medium
US8572712B2 (en) Device independent authentication system and method
CN101310286B (en) Improved single sign on
US20130185815A1 (en) Password-less login
WO2017062366A1 (en) Systems and methods for fraudulent account detection and management
CN109005142B (en) Website security detection method, device, system, computer equipment and storage medium
US9479533B2 (en) Time based authentication codes
US11729158B2 (en) Systems and methods for identity verification via third party accounts
US9015817B2 (en) Resilient and restorable dynamic device identification
CN110572395B (en) Identity verification method and system
CN109067881B (en) Remote authorization method, device, equipment and storage medium thereof
TW201342107A (en) System and method for resetting password
US9479495B2 (en) Sending authentication codes to multiple recipients
US10482283B2 (en) Data breach detection system
CN102868702A (en) System login device and system login method
US9621349B2 (en) Apparatus, method and computer-readable medium for user authentication
KR101190060B1 (en) Apparatus for managing Identity data and method thereof
US20140250499A1 (en) Password based security method, systems and devices
CN110598469A (en) Information processing method and device and computer storage medium
US20100250607A1 (en) Personal information management apparatus and personal information management method
US11087374B2 (en) Domain name transfer risk mitigation
JP2020509625A (en) Data message authentication based on random numbers
CN111814130B (en) Single sign-on method 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312