1. A device having dynamically programmable security comprising: a system memory; and a security module, wherein the security module includes: a secure memory, and a processor configured to: receive a message including configuration information and executable secure application code, configure hardware components of the security module based on the configuration information, and execute the secure application code after the hardware components of the security module have been configured.