motp 0.1.0

A crate to interact with mOTP (creation & verification)
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented1 out of 2 items with examples
  • Size
  • Source code size: 9.49 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.3 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 20s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ololduck/motp-rs
    0 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • paulollivier

motp-rs

Functions and binary tool to handle mOTP authentication in (safe) rust.

I did this because I couldn't find any solution to use my employer's VPN after having broken my phone.

Installation

With rust's package manager, cargo

$ cargo install motp

CLI Usage

Here is the help:

$ motp --help
mOTP-rs 0.1
Paul O. <contact@paulollivier.fr>
mOTP tokens manipulation

USAGE:
    motp [OPTIONS] <SECRET>

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

OPTIONS:
    -p, --pin <PIN>    Pin code. If not given, will be expected via stdin.

ARGS:
    <SECRET>    Shared secret to use

So an invocation would look like this:

$ motp 0123456789abcdef --pin 0000
137b7b

Usage as a dependency

It can be used to check against a user-supplied code, provided you know it's pin and shared secret.

cargo.toml:

[deps]
# ...other deps...
motp = "0"

Have a look at the docs