To protect the attribute privacy of data users and prevent the disclosure of attribute privacy,an attribute based searchable encryption algorithm was proposed.The symmetric encryption algorithm was used to encrypt the data owner informa-tion and upload the encrypted information to the interstellar file system.The attribute based searchable encryption algorithm was used to encrypt data keywords and upload the encryption results to the blockchain,so as to realize the distributed storage of data ciphertext and keyword ciphertext.Smart contracts were used to achieve keyword security search,and the cloud server returning irrelevant search results was avoided.The security of the scheme was based on Diffie Hellman's difficult assumption.Theoreti-cal analysis and experimental results show that the scheme has good user privacy protection effect and computational overhead.