Attribute-based encryption of cipher text policies seems promising in terms of securing cloud data sharing since the data owner has complete control over the access policy. However, CP-ABE has a key escrow issue, in which users' secret keys must be issued by a trusted key authority. Attributes with arbitrary states are not supported by CP-ABE systems. As a result, it explores attribute-based data sharing to address the key escrow issue while simultaneously improving the expressiveness of attributes, resulting in a technique that is more amenable to cloud computing applications. The proposed two-party key issuance mechanism, ensures that neither the key authority nor the cloud service provider can compromise a user's entire secret key. Furthermore, it offers the concept of an attribute with weight, which is used to improve the expression of an attribute and cannot only extend the expression from binary to arbitrary states but also reduce the complexity of access policies.