The paper proposes a Hierarchical Attribute-Set-Based Encryption (HASBE) scheme to enhance data security, flexibility, scalability, and fine-grained access control in cloud computing. This approach improves user data access by utilizing a hierarchical structure that allows efficient data management and user revocation while ensuring that only authorized details are shown to users. Experimental results demonstrate the efficiency and advantages of the HASBE scheme over existing models in maintaining data security and performance within cloud environments.