The present invention provides a unique way of using mobile or other devices containing accelerometers to provide a unique two-factor authentication comprising something possessed and something known. This involves a combination of the device and the user in the authentication. In one embodiment, the user adds a unique movement pattern (something known) to the device ID (something possessed) to create a unique two-factor authentication. In this way, authentication and security are taken to a high level, beyond biometric identification which is actually just two things possessed.