Coder Social home page Coder Social logo

totp-generator's Introduction

Generate time-based one time passwords in the browser

Demo

This page lets you easily generate a time-based one time password (TOTP) entirely in the web browser in case you ever lose access to your phone.

It uses the excellent otpauth package, downloaded from raw.githubusercontent.com/hectorm/otpauth/master/dist/otpauth.umd.min.js.

Providing parameters in the URL

Private key

You can provide the key in the URL using the URI fragment or a query parameter, for example: https://totp.danhersam.com/#/KEY or https://totp.danhersam.com?key=KEY

Additional parameters

You can also pass the token digits, period and algorithm using a query string in the URL, for example: https://totp.danhersam.com/?digits=6&period=60&algorithm=SHA256&key=KEY

See supported hashing algorithms for the complete list.

Import using QR codes

To make it easier to import Authy entries into another authenticator app, generate QR codes using my QR code generator.

Other Resources

totp-generator's People

Contributors

jaden avatar lolivei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

totp-generator's Issues

Support the specification of the 'algorithm' parameter

Currently, the 'algorithm' parameter setting is hardcoded to SHA1: https://github.com/jaden/totp-generator/blob/master/public/js/app.js#L58

It could be very useful to have this passed via an input through the UI, similarly to the secret parameter. For example, this URL is a valid TOTP initiator:

[TOTP_BASE_URL]?algorithm=SHA256&digits=6&issuer=Company&period=30&secret=6M2F7ACSQA898A7842H4EJAODWK53SD

But it could not be passed to the totp-generator app, since the SHA256 is unsupported.

base32 validation

If input a string that is not valid base32, it continues to show the results for the last seen valid base32 string that's no longer displayed.

Solution could be either reporting an error instead of displaying a number, or having a field showing the key being used without spaces

Also pass additional parameters from hash?

besides KEY like https://totp.danhersam.com/#/KEY, I wonder if we can pass additional parameters from hash, like https://totp.danhersam.com/#/KEY/digits=6/period=60/algorithm=SHA256?

Feature QR code

Thanks for the great online generator!

Would be nice to have QR code to show

Can be used QR generator by google, this is a basic request syntax
https://www.google.com/chart?chs=200x200&chld=M|0&cht=qr&chl=otpauth://totp/labelexample:userexample?secret=A4N3R5N4HUZPSGKDOQRH6CQGEDI45PF2&issuer=issuerexample

Additionally, I ask for a URI update with the currently entered secret

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.