The document presents a new encryption scheme for cloud computing called file hierarchy ciphertext-policy attribute-based encryption (fh-cp-abe), which effectively manages the sharing of hierarchical files. This scheme integrates layered access structures, optimizing both storage and encryption time, and proves to be secure against chosen plaintext attacks. Experimental results indicate that as the number of files increases, the efficiency and advantages of the proposed method become more pronounced.