Giter VIP home page Giter VIP logo

wari's Introduction

wari

A simple CLI interface to be able to generate keys to setup custom tokens for OTP engines (like LinOTP). The type of tokens can be TOTP (time based) or HOTP (event based).

For event based tokens, it can also store the secret and steps so that it can copy the secret and generated pin to the clipboard with one command:

$ wari hotp get alfredo
-> secret with generated pin has been copied to the clipboard

If only PINs are needed, those can also be specified:

$ wari hotp get alfredo pin
-> pin copied to the clipboard

To generate an HOTP key:

$ wari hotp generate
-> Key in Hex: 943fcaf751d2badc65286adb47f0da258c39c869
-> Key in b32: SQ74V52R2K5NYZJINLNUP4G2EWGDTSDJ (check: 8)

To generate an HOTP key, store it for a given username with a secret so that PINs can be generated, all at once:

$ wari hotp create alfredo
-> Type secret:
-> Key in Hex: 8ee378386648afbd62989553934eb69d7db9980a
-> Key in b32: R3RXQODGJCX32YUYSVJZGTVWTV63TGAK (check: 6)
-> current step: 3
-> stored tokens and secret for user: alfredo

We can also update information, such as secret or key:

$ wari hotp update alfredo secret
-> Type secret:
-> stored tokens and secret for user: alfredo

$ wari hotp update alfredo key
-> Type key: 8ee378386648afbd62989553934eb69d7db9980a
-> stored tokens and secret for user: alfredo

$ wari hotp update alfredo step
-> Type step: 2
-> stored tokens and secret for user: alfredo

$ wari hotp update alfredo b32
-> Type b32: R3RXQODGJCX32YUYSVJZGTVWTV63TGAK
-> stored tokens and secret for user: alfredo

Removing a user:

$ wari hotp remove alfredo

Storage

wari stores its data in the current user's home directory in a hidden binary file: .waridb. It is a sqlite3 database that contains all stored information.

wari's People

Contributors

alfredodeza 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.