Time-based One-time Password Algorithm
Install Google Authenticator on your smartphone: iOS, Android, Blackberry. As the TOTP is an open standard you can use this app to create one-time passwords for your own application.
Put it to the test by setting the base32 secret, scanning the QR code in Google Authenticate. You should see the same OTP on your smartphone and displayed at the bottom on the page.