ProductPromotion
Logo

Rust

made by https://0x3d.site

GitHub - evansmurithi/cloak: A Command Line OTP Authenticator application.
A Command Line OTP Authenticator application. Contribute to evansmurithi/cloak development by creating an account on GitHub.
Visit Site

GitHub - evansmurithi/cloak: A Command Line OTP Authenticator application.

GitHub - evansmurithi/cloak: A Command Line OTP Authenticator application.

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

More Resources
to explore the angular.

mail [email protected] to add your project or resources here 🔥.

Related Articles
to learn about angular.

FAQ's
to learn more about Angular JS.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory