1. A method for code protection, comprising: using a processing component, accessing an encrypted portion of an application program that is encrypted by an on-line server, after a license for use of said application program is verified by said on-line server; using said processing component, decrypting said encrypted portion of said application program using an encryption key stored in said processing component wherein a corresponding decrypted portion of said application program is generated; executing said decrypted portion of said application program using stored state data and generating execution results; and using said processing component, providing said results to a non-encrypted portion of said application program that is executing on a second processing component.