Cloud computing also offers several services to its clients in departments such as education, healthcare, military, government, and sports. The storage of each service, which keeps a huge amount of electronic data in a cloud database, is one of the services provided by cloud infrastructure. In the main cloud, this type computes massive amounts of private data. As a result, information retrieval solutions that are both effective and efficient are required. When the server deletes the lost data and cannot transmit any information to the client, the recovery method's main goal is to assist the user in collecting data from each server backup. Users can benefit from cloud computing by storing data, accessing data from anywhere, and retrieving data at any time. As data on the cloud is generated at such a quick rate, speed is one of the most important aspects of cloud computing. It's simple to save files in the cloud and then retrieve it again. However, the difficult problem is to safely store and retrieve data from the cloud. We suggested a way for securely storing data in the cloud utilizing encryption and decryption methods in this work. We also employed a compression module to compress data before putting it in the cloud.