A security enhancement method performed using an electronic device, the security enhancement method comprising: obtaining available encryption algorithms from permission information included in an installation package of an application; matching and storing identification information of the application and the available encryption algorithms in an access list; hooking loading of an executable code into a memory; inputting the executable code into an encryption code identification model wherein the encryption code identification model is based on machine learning; determining, by using the encryption code identification model, whether the loading of the executable code into the memory is allowed; and when the loading of the executable code is allowed, loading the executable code into the memory; and when the loading of the executable code is not allowed, blocking the loading of the executable code into the memory; wherein the determining comprises, when first output data of the encryption code identification model identifies an encryption algorithm that is not in the access list, determining that the loading of the executable code is not allowed; wherein using the encryption code identification model comprises: extracting feature data from the executable code; and inputting the feature data into the encryption code identification model; wherein the feature data comprises power consumption data related to power consumption of a central processing unit, CPU, during execution of the executable code, and wherein the power consumption data includes a number of CPU operation cycles in which the power consumption of the CPU is equal to or greater than a threshold; wherein the determining comprises identifying, based on the power consumption data, an encryption algorithm of the executable code. obtaining available encryption algorithms from permission information included in an installation package of an application; matching and storing identification information of the application and the available encryption algorithms in an access list; hooking loading of an executable code into a memory; inputting the executable code into an encryption code identification model wherein the encryption code identification model is based on machine learning; determining, by using the encryption code identification model, whether the loading of the executable code into the memory is allowed; and when the loading of the executable code is allowed, loading the executable code into the memory; and when the loading of the executable code is not allowed, blocking the loading of the executable code into the memory; wherein the determining comprises, when first output data of the encryption code identification model identifies an encryption algorithm that is not in the access list, determining that the loading of the executable code is not allowed; wherein using the encryption code identification model comprises: extracting feature data from the executable code; and inputting the feature data into the encryption code identification model; wherein the feature data comprises power consumption data related to power consumption of a central processing unit, CPU, during execution of the executable code, and wherein the power consumption data includes a number of CPU operation cycles in which the power consumption of the CPU is equal to or greater than a threshold; wherein the determining comprises identifying, based on the power consumption data, an encryption algorithm of the executable code. extracting feature data from the executable code; and inputting the feature data into the encryption code identification model; wherein the feature data comprises power consumption data related to power consumption of a central processing unit, CPU, during execution of the executable code, and wherein the power consumption data includes a number of CPU operation cycles in which the power consumption of the CPU is equal to or greater than a threshold; wherein the determining comprises identifying, based on the power consumption data, an encryption algorithm of the executable code.