A method and system for generating an authentication code that depends at
least in part on a dynamic value that changes over time, an event state
associated with the occurrence of an event, and a secret associated with
an authentication device. By generating the authentication code
responsive to an event state, an identity authentication code can be used
to verify identity and to communicate event state information, and to do
so in a secure manner.