Giter VIP home page Giter VIP logo

andcli's Introduction

andcli

Go Report Card Build

View, decrypt and copy 2FA tokens from encrypted backup files directly in your shell. At the moment andcli can handle encrypted backups from the following providers:

Demo

Installation

Download a prebuild release and place it somewhere in your $PATH. If you have Go installed you can build it yourself: go install -v github.com/tjblackheart/andcli/cmd/andcli@latest.

Usage

  1. Export an encrypted, password protected backup from your 2FA app and save it into your preferred cloud provider (i.e. Dropbox, Nextcloud...).
  2. Fire up andcli and point it to this file with -f <path-to-file>. Specify the vault type via -t <type>: choose between andotp or aegis. The path and type will get cached, so you have to do this only once.
  3. Enter the encryption password.
  4. To search an entry, type a word. Press ESC to clear the current query.
  5. Navigate via keyboard, press Enter to view a token and press c to copy it into the clipboard (Linux/Mac only).
  6. If you are running Linux: Press the middle mouse button to paste the token. On Mac, hit CMD+v.

TODO

  • At the moment it is not possible to copy a token on a Windows machine.
  • The test coverage sucks (less).
  • Implement a search.

Options

Usage of andcli:
  -f string
        Path to the encrypted vault
  -t string
        Vault type (andotp, aegis)
  -c string
        Clipboard command (by default is the first of `xclip`, `wl-copy` or `pbcopy` found)
  -v    Show current version

Credits

License

MIT

andcli's People

Contributors

tjblackheart avatar dyuri 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.