mOTP is C based software for generate mOTP codes.
Rozhuk Ivan d72c55aa3f First release | 2 hete | |
---|---|---|
.github | 2 hete | |
src | 2 hete | |
.clang-format | 2 hete | |
.editorconfig | 2 hete | |
.gitignore | 2 hete | |
LICENSE | 2 hete | |
motp.project | 2 hete | |
motp.workspace | 2 hete | |
readme.md | 2 hete |
Rozhuk Ivan rozhuk.im@gmail.com 2024
mOTP is C based software for generate Mobile-OTP codes.
BSD licence.
Support the author
sudo apt-get install build-essential git fakeroot
git clone --recursive https://github.com/rozhuk-im/motp.git
cd motp
cc motp.c -O2 -lm -o motp
sudo pkg install git
git clone --recursive https://github.com/rozhuk-im/motp.git
cd motp
cc motp.c -O2 -lm -o motp
motp Simple console mOTP tool
Usage: motp [options]
options:
-help, -? Show help
-secret, -s <string> Shared secret
-pin, -p <string> PIN
-duration, -P seconds> Code duration interval. Default: 10
-length, -d <number> Result code length. Default: 6
-time, -t <string> Time string, in one of formats: HTTP date / RFC 822, RFC 850, ANSI C, YYYY-MM-DD HH:MM:SS, Number of seconds since the Epoch (UTC)
-tz, -T <string> The timezone time zone offset from UTC. Will override time zone from 'time' string is set. Ex: +0100, -0500.
motp -s 'secret' -p '1111'