Code Monkey home page Code Monkey logo

onetimepass's Introduction

NAME
    onetimepass - one-time password generator

SYNOPSIS
    onetimepass [options]

DESCRIPTION
    onetimepass is a perl script for calculating TOTP (Time-based One-time
    Password Algorithm) and HOTP (HMAC-Based One-Time Password Algorithm)
    tokens. One can use this script to sign in to some application that uses
    2-step verification (e.g. google, dropbox etc.)

OPTIONS
    -c,--counter *counter*
        HOTP counter (default is 0)

    -d,--delay *delay*
        Delay between iterations in second (used with '--loop' option,
        default is 5)

    -f,--file *file*
        Use *file* configuration file instead of '~/.onetimepassrc'

    -h,--help,--usage
        Show a 'Usage' message

    --hmac
        Use HOTP instead of TOTP

    -l,--loop
        Calculate TOTP tokens in continuous loop

    -m,--man
        Show complete manual

    -n,--next
        Calculate next TOTP token too

    -s,--secret *SECRET*
        Use *SECRET* instead of secrets in the configuration file. *SECRET*
        must be base32 encoded string. You can get your *SECRET* while
        setting up 2-step verification for your accounts (e.g. google,
        dropbox etc.)

    -t,--time *time*
        Calculate TOTP token using specified unix *time* instead of current
        time

CONFIGURATION FILE
    You may define a '~/.onetimepassrc' file with your secrets:

        *NAME* *SECRET*

    e.g.:

        # my e-mail account
        [email protected]    MYSECRET
        # another account
        anotheraccount      MYSECRET

EXAMPLE
        $ perl onetimepass -s MYSECRET --next --loop --delay 1
        $ perl onetimepass -s MYSECRET --hmac --counter 42
        $ ./onetimepass -n

DEPENDENCIES
    Debian/Ubuntu (12.10 and newer)

        $ sudo apt-get install libauthen-oath-perl libgetopt-mixed-perl libconfig-general-perl

    Ubuntu (12.04 and older)

        $ sudo apt-get install libgetopt-mixed-perl libconfig-general-perl libdigest-hmac-perl libmoose-perl
        $ wget http://launchpadlibrarian.net/103790872/libauthen-oath-perl_1.0.0-1_all.deb
        $ sudo dpkg -i libauthen-oath-perl_1.0.0-1_all.deb

    using CPAN client

        $ cpan
        > install Authen::OATH
        > install Getopt::Mixed
        > install Config::General

SEE ALSO
    Documentation for the Authen::OATH module

    Time-based One-time Password Algorithm
    <http://tools.ietf.org/html/rfc6238>

    HMAC-Based One-Time Password Algorithm
    <http://tools.ietf.org/html/rfc4226>

AUTHOR
    written by malyavka just for fun

onetimepass's People

Watchers

Alan DeKok avatar

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.