An embodiment of the present disclosure provide a key protection method, via setting that each core of the multi-core process may have one symmetric master key, dynamically obtaining the plaintext private key of the asymmetric algorithm via a decryption operation and using the Intel TSX, it may be ensured that the private key and the intermediate variables used in the computation process may be stored in the cache occupied by the operation core only in terms of the hardware level, which may prevent the attackers from stealing the private key from the physical memory and ensure the security of the implementation of the public-key cryptographic algorithm in the computer system. Further, even the OS may be compromised and the attacker may directly read the memory storing the key, since the Intel TSX mechanism may ensure the atomicity of the memory operation, the attacker cannot obtain the plaintext private key. Further, in this scheme, while the physical attacks and system intrusions are resisted, the other core