1. A method for executing code securely in general purpose computer, the method comprising of: downloading a code into a cache memory of a computer in which the code is to be executed; encrypting the downloaded code in the cache memory; locking down the cache contents; decrypting the encrypted code to obtain a decrypted code; executing the decrypted code in the cache to generate a result; forwarding the generated result to a user; and destroying the decrypted code in the cache.