Code Monkey home page Code Monkey logo

ptotp's Introduction

DISCLAIMER

I don't use this as my primary TOTP source and neither should you. I have not yet fully tested this with an actual Google account - while the implementation is a trivial modification of the Google Authenticator sources, it's possible something unique to the Pebble platform may cause issues.

This is meant to be used WITH another, reliable, mobile authenticator - no warranty express or implied.

Simple Pebble TOTP

Overview

This is presented purely for academic interest and should probably not be installed on a Pebble.

Note that a customized wscript is used - the WAF equivalent of Makefile - this is necessary in order to define _LITTLE_ENDIAN and link the appropriate google-authentication headers in to the user source directory.

Building

Reconstruct the symlinks using ~/pebble-dev/pebble-sdk-release-001/tools/create_pebble_project.py --symlink-only ~/pebble-dev/pebble-sdk-release-001/sdk/ pTOTP

Copy the modified wscript.new to wscript: cp wscript.new wscript - create_pebble_project.py will fail with an odd-looking error if any of the files already exist.

Modify src/config.h to match your timezone (remember to adjust for DST) and your base32-encoded secret key (the four groups of four letters from https://accounts.google.com/b/0/SmsAuthConfig - make sure to remove the spaces and capitalize the letters.)

Usage

Up/down will change the GMT offset; note that due to current limitations of the Pebble SDK the watch does not know its own time zone and app settings do not persist. The current code in the new timezone will then be displayed.

Center will cause the current code to be displayed.

The second line is the code; the third line is the current GMT offset; the fourth line is the countdown to code expiry. When the code expires, the display is cleared as a security measure.

Bitdeli Badge

ptotp's People

Contributors

abl avatar aleksandyr avatar bitdeli-chef avatar truejournals avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

ptotp's Issues

Doesn't install with 2.0.1

Hi,

I just updated my pebble app and watch to 2.0.1 and I can't install my generated authenticator any more. I saw a pull request about SDK 2.0 compatibility though, Is it a known problem ? is there anything I can do ? are you using 2.0 ?

When I open the app on my phone (android) it launches the pebble app and tells "this app is untrusted, are you sure ?", I say yes and it goes to the pebble home screen with no changes. The app is nowhere to be found.

I tried both alternatives on the pebble store by they are all crappy, the first need 3 reset before working, and silently delete tokens it don't like (half of mine), and the other one is slow and limits name to 6 chars.

Settings page doesn't open!

The settings page hangs on loading, and then seemingly stays that way after restarts of both the phone and the watch, and the app. I cant get it back up unless I reinstall the app (losing all of the codes I set up).

I might be able to look into this if I have time, as I am a developer.

  • iOS 8.3
  • App v3.0
  • Pebble Time v3.0

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.