1. A method of access control in an electronic apparatus, the method comprising: detecting an access request to a resource from an application included in a first area of a memory by a processor of the electronic apparatus; in response to the access request, executing an access control module included in a second area of the memory to calculate a hash value of the application by the processor; determining whether a record exists in the memory, the record corresponding to the hash value and identification information of the application, by executing the access control module by the processor; and allowing access to the resource by the processor when the record exists in the memory.