Git Product home page Git Product logo

otp's Introduction

One-Time Passwords in Go

GoDoc

There are other Go implementations of OTP out there, but this one is mine.

2fa: Terminal Authenticator

This project ships with a terminal application for computing one-time passwords using Google Authenticator defaults. See README for full description.

otp's People

Contributors

tristanwietsma 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

otp's Issues

transfer method via qr codes

Additional command in 2fa that will spin up a http server with qr codes suitable for printing/scanning into a mobile device.

Support Short Commands

2fa expects full commands, like 'calc', 'list', 'init'. Program should support single letter commands.

better parser

use named regex; counting groups is hacky at best

cli

my own auth cli

Web Demo

  • Index page with QR code/otpauth URI and login credentials: / (GET)
  • Login page: /login (GET, POST)
  • Two-factor page: /authenticate (GET, POST)
  • Private page: /dash
  • Super secret page that requires recent 2-factor verification (to mimic account settings page, API key stuff you find on github, etc.): /account

Use middleware chains to handle security and redirection.

Since this is demo, just maintain an internal key-value server for token management. Break up those functions and illustrate how they could point at another service (ie Redis). Will have to mimic expiration for otp tokens.

IsValid -> Validate

Currently, returns a bool and an error, which is dumb. Let's return an error to indicate false and nil for true.

docs

Clean up, proofread, expand

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.