The embodiment of the invention discloses a
data sharing method and related equipment, which can be specifically applied to an intelligent vehicle and an unmanned vehicle to realize remote safety diagnosis of the vehicle, and comprises the following steps: a
server receives a file set sent by first equipment, wherein the file set comprises N
ciphertext files, N index ciphertexts and N first key ciphertexts; the
server receives a query
trap door sent by a second device, finds a matched target index
ciphertext from the N index ciphertexts according to the query
trap door, and determines a corresponding target
ciphertext file and a target first key ciphertext; and the
server re-encrypts the target first key ciphertext by using the proxy re-
encryption key to obtain a target first key re-
encryption ciphertext, and sends the target ciphertext file and the target first key re-
encryption ciphertext to the second equipment. The invention can be applied to multiple technical fields of intelligent driving, smart home,
cloud storage file sharing and the like, and is used for realizing
data security access in the corresponding fields.