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.
cargo
$ cargo install motp
Here is the help:
```shell $ motp --help mOTP-rs 0.1 Paul O. contact@paulollivier.fr mOTP tokens manipulation
USAGE:
motp [OPTIONS]
FLAGS: -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-p, --pin
ARGS:
```
So an invocation would look like this:
shell
$ motp 0123456789abcdef --pin 0000
137b7b
It can be used to check against a user-supplied code, provided you know it's pin and shared secret.
cargo.toml: ```toml [deps]
motp = "0" ```
Have a look at the docs