摘要 |
Provided are a file sharing method and device, which are used for solving the problems in the prior art that files already saved are required to be changed when a file is shared by a cloud server, the process is cumbersome, and the efficiency is low. The method comprises: a first terminal respectively uploading each encrypted file to a server for saving, and receiving uniform resource locators (URLs) respectively corresponding to positions for saving each encrypted file, which are returned by the server; generating a key package including shared keys corresponding to files to be shared and the URLs, and providing the key package to a second terminal; the second terminal acquiring corresponding encrypted files via the URLs in the key package, and decrypting the acquired encrypted files using the shared keys in the key package. By means of the method, when a first terminal shares a file, files already saved in a server are not required to be changed; and moreover, the process is simple, and the efficiency of sharing the file can be effectively improved. |