Fork of the code at http://blog.tinisles.com/2011/10/google-authenticator-one-time-password-algorithm-in-javascript
This page contains a javascript implementation of the new Blockchain-based One-time Password Algorithm, BOTP, inspired on the TOTP used by Google Authenticator and described in the TOTP RFC Draft.
The BOTP is in development. When a PAM module will be available for installation and configuration on servers, you would use a client app similar to this demo to create one-time passwords for your own application. You would add an account plus secret by scanning a QR code (more info on the google code wiki). The javascript below implements the algorithm the smartphone app would to generate the OTP - you would use this same algorithm server-side to verify an OTP.