A data protection method

The present application discloses a method for data protection, comprising: treating the protected application is compiled to give the corresponding compiler; of the arithmetic logic compiler corresponding to the intermediate register, the register using an encrypted manner is encrypted; the an intermediate register for storing an intermediate calculation result registers; cut according to a preset density N, the compiler calculates the encrypted cut, the N ≧ 2; said compiler obtained after the cutting operation each code register corresponding to the arithmetic logic, generate the corresponding lookup table with the lookup table to replace the corresponding arithmetic logic, wherein the lookup table for the index is replaced by the arithmetic logic operation parameter corresponding to the intermediate register . According to the present invention can effectively improve the security of computer applications.