This document proposes and compares two encryption algorithms, Key Policy Attribute-Based Encryption (KP-ABE) and Ciphertext Policy Attribute-Based Encryption (CP-ABE), for secure data sharing in mobile cloud computing. KP-ABE allows data to be encrypted with user attributes but does not allow the encryptor to choose who can decrypt. CP-ABE addresses this limitation by allowing the encryptor to define an access policy that must be satisfied by user attributes for decryption. The document concludes that CP-ABE provides more secure access control compared to KP-ABE by giving encryptors control over who can decrypt ciphertext.