The invention provides a
phrase searchable
encryption method and device based on
quantum key distribution and a medium, and relates to the technical field of
information security. The method comprises the following steps: encrypting each file in a file set by adopting a preset
encryption key in a preset double-layer key to obtain an encrypted
ciphertext set of each file; analyzing each file to obtain a
phrase sequence of each file; according to a preset index key in the preset double-layer key and the
phrase sequence of each file, generating a phrase
encryption index of each file; and sending the encrypted
ciphertext set, the phrase encryption index and an extended
inverted index to a
cloud server, the extended
inverted index being used for indicating the file
ciphertext identifier of each phrase in the phrase sequence. By constructing the phrase encryption index, the phrase sequence and position relevance are accurately captured, accurate matching of a complete phrase sequence in an encryption environment is supported, and the
phrase search accuracy is remarkably improved.