Secure data sharing is one of the key functionalities of any cloud-based system to supply security to the clients and prevent it from attacks. RSA is one such cryptographic algorithm that provides security of the data shared on the cloud .RSA is cryptosystem for public-key encryption .RSA uses 2 totally different but mathematically linked keys, one is public key and the other is private key. The cloud is employed as a secure storage as well as a key generation center. In our system, data owner encrypts the sensitive data using the cloud-generated users public keys based on its access control policies and uploads the encrypted data to the cloud. Upon successful authorization, the cloud partially decrypts the encrypted data for the users. The users subsequently fully decrypt the partially decrypted data using their private keys. The confidentiality of the content and the keys is preserved with respect to the cloud, because the cloud cannot fully decrypt the information.