The present invention relates to the field of
cloud computing security technology, and specifically to a searchable
encryption method for hiding search
modes and access
modes in an e-commerce platform, including obtaining a
data source, an initialization phase, and
ciphertext retrieval. First, data is obtained from a public
data set; the initialization phase includes extracting the relationship between keywords and documents, constructing an index matrix and an auxiliary
data structure, and generating relevant keys. The
ciphertext query phase includes: the user generates a search trap for the query keyword and sends it to the
server; the
server retrieves the secondary mapping according to the search trap, obtains the search range, and retrieves the corresponding data block sequence; the user constructs a
permutation matrix, and encrypts and uploads it to the
server, and performs homomorphic calculations with the index matrix on the
server side to change the position of the data in the index matrix. The present invention integrates secondary search and
homomorphic encryption technology into the field of searchable
encryption, ensuring
user privacy while achieving efficient and secure search, and has important application value for
user privacy protection and
information retrieval.