Data security method and electronic device implementing the same

The present specification relates to a data security method and an electronic device implementing the same. More specifically, the said invention relates to a method and an apparatus which can safely secure data in an electronic device including a computing resource which is a software (for example, an operating system) and a hardware (for example, a memory and a CPU) to operate the electronic device. The method to secure data comprises the steps of: receiving a request for an application key from a data generation application or a proxy application which executes data encryption in place of the data generation application; generating an application key using an application ID corresponding to the data generation application, and a security key stored in a security area of the electronic device in response to the request; and encrypting data using the generated application key.