All Projects â†’ evansmurithi â†’ Cloak

evansmurithi / Cloak

Licence: mit
A Command Line OTP Authenticator application.

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Cloak

Spotify Tui
Spotify for the terminal written in Rust 🚀
Stars: ✭ 11,061 (+9775.89%)
Mutual labels:  terminal-based
Rubiks cube
rubik's cube that runs in your terminal!
Stars: ✭ 73 (-34.82%)
Mutual labels:  terminal-based
Exnn
An Elixir Evolutive Neural Network framework à la G.Sher
Stars: ✭ 93 (-16.96%)
Mutual labels:  otp
Slate
A Super-Lightweight Annotation Tool for Experts: Label text in a terminal with just Python
Stars: ✭ 61 (-45.54%)
Mutual labels:  terminal-based
Jsotp
Javascript One-Time Password module.
Stars: ✭ 71 (-36.61%)
Mutual labels:  otp
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (-32.14%)
Mutual labels:  otp
Gortas
Gortas is an API based authentication service, allows adding authentication to your site or service with minimum efforts.
Stars: ✭ 48 (-57.14%)
Mutual labels:  otp
Freeradius Server
FreeRADIUS - A multi-protocol policy server.
Stars: ✭ 1,379 (+1131.25%)
Mutual labels:  otp
Ticker Elixir
Elixir OTP Stock Quotes App (IEX Group) | Current Branch: elixir_1.8_iex
Stars: ✭ 71 (-36.61%)
Mutual labels:  otp
Memento
Collect saved items from different sources around the web
Stars: ✭ 89 (-20.54%)
Mutual labels:  otp
Mnesiac
Mnesia autoclustering made easy!
Stars: ✭ 62 (-44.64%)
Mutual labels:  otp
Wed
wed is a terminal text editor with key bindings commonly used in Windows based editors
Stars: ✭ 65 (-41.96%)
Mutual labels:  terminal-based
Cacher Cli
The command line interface to Cacher.
Stars: ✭ 85 (-24.11%)
Mutual labels:  terminal-based
Blightmud
A terminal mud client written in Rust
Stars: ✭ 61 (-45.54%)
Mutual labels:  terminal-based
Shellpic
ASCII-art is so 2013
Stars: ✭ 94 (-16.07%)
Mutual labels:  terminal-based
Lager
A logging framework for Erlang/OTP
Stars: ✭ 1,060 (+846.43%)
Mutual labels:  otp
Exrm deb
Create a deb for your elixir release with ease
Stars: ✭ 75 (-33.04%)
Mutual labels:  otp
Dotfiles ikigai
dotfiles 🔥 includes scripts that makes my life easier!
Stars: ✭ 110 (-1.79%)
Mutual labels:  terminal-based
Thist
A go package for generating online histograms and plotting them in the terminal and PDFs
Stars: ✭ 96 (-14.29%)
Mutual labels:  terminal-based
Mazu Editor
a minimalist text editor with syntax highlight, copy/paste, and search
Stars: ✭ 88 (-21.43%)
Mutual labels:  terminal-based

cloak

A Command Line OTP (One Time Password) Authenticator application written in Rust that generates time-based and counter-based OTP codes.

CI codecov License Crates.io version

Motivation

Example

Installation

To install cloak, you can do either of the following:

  1. Binaries

    You can download the binaries here. Make sure to put the path to the binary into your PATH.

    Alternatively, you can install cloak via the scoop package manager with the following command:

    scoop install cloak
    
  2. Crates.io

    Once you've installed Rust, install cloak by typing the following in the terminal:

    cargo install cloak
    

    This will download and compile cloak. After this is finished, add the Cargo bin directory to your PATH.

Usage

The sub-commands included in cloak are as follows:

$ cloak -h
cloak 0.1.0
Evans Murithi <[email protected]>
A Command Line OTP Authenticator application.

USAGE:
    cloak [SUBCOMMAND]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

SUBCOMMANDS:
    add               Add a new account
    delete            Delete an account
    help              Prints this message or the help of the given subcommand(s)
    list              List OTP for all accounts
    view              View the OTP for an account

To view the help of any of the subcommands below, add -h or --help, e.g. cloak add -h.

  • cloak add <account> <key>

    This will add a new account. You will need to provide the name of the account as well as valid base32 encoded key. Example:

    $ cloak add github 4AZJFQFIGYM2KMTOO72I6FAOZ6ZFWJR6
    
  • cloak view <account>

    This will print the TOTP/HOTP of the account you want to view. Example:

    $ cloak view github
    123456
    
  • cloak list

    This prints all the accounts with their respective TOTP/HOTP codes. Example:

    $ cloak list
    Account: github
    TOTP: 607091
    
    Account: gitlab
    TOTP: 325414
    
  • cloak delete <account>

    This will delete an account. Once deleted, you cannot view the OTP codes for the account. Example:

    $ cloak delete github
    Account successfully deleted
    $ cloak view github
    Account with the name 'github' does not exist. Consider adding it.
    

Customization

By default cloak stores your accounts and recovery codes inside a .cloak/ directory found inside your $HOME folder if you are on Linux or macOS, or inside your user profile folder if you are on Windows.

To alter this, you can use the CLOAK_ACCOUNTS_DIR environment variable to point cloak to the directory to use for storing your accounts and recovery codes:

export CLOAK_ACCOUNTS_DIR='/save/accounts/here/'  # absolute path

Contributions

If you want to contribute to cloak you will have to clone the repository on your local machine:

$ git clone https://github.com/evansmurithi/cloak.git

To build, cd into cloak/ and run:

$ cargo build

To run tests:

$ cargo test
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].