Code Monkey home page Code Monkey logo

totp's Introduction

totp

A tiny command line utility to generate OTP tokens

Build and install

Clone the repository:

$ git clone https://github.com/angt/totp
$ cd totp

Then, run as root:

# make install

As usual, you can customize the destination with DESTDIR and prefix.

Usage

It has been thought for secret, maybe it will be directly integrated in a future version, in the meantime:

Add a new TOTP key

$ echo -n JBSWY3DPEHPK3PXP | base32 -d | secret set test/totp

Generate a TOTP token

$ secret show test/totp | totp
$ 123456

For feature requests and bug reports, please create an issue.

totp's People

Contributors

angt 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

Watchers

 avatar  avatar  avatar

totp's Issues

Does This Work With AWS MFA?

AWS appears to support "Other hardware MFA device"s:

image

Then it prompts me thus:

image

At first I thought this looks great. I entered "youstupid" for the serial number, ran the application using echo youstupid | ./totp twice and entered the two generated tokens, then I get

image

I tried with many more serial numbers, but none of them have worked. Any ideas how to get this working on AWS? Is AWS expecting an Amazon-issued hardware device?

Oh yes, I should add that it doesn't seem to matter what generated keys I put in; it's not validating the keys. The serial number fails validation, then I can put in any keys I want and I get the same failure.

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.