Tamper-resistant software is provided by determining aninitial value of a specified property for an executable file.Theexecutable file is then encrypted based on the initial value ofthe specified property.The initial value of the specified prop-erty is associated with the encrypted executable file and laterused to decrypt the encrypted executable file.An execution-time value of the specified property is determined for thedecrypted executable file.The execution-time value of thespecified property is compared to the initial value of the speci-fied property to determine whether tampering has occurred.Thedecrypted executable file is executed in response to the execu-tion-time value of the specified property matching the initialvalue of the specified property.