mOTP is C based software for generate mOTP codes.
Rozhuk Ivan d72c55aa3f First release | 2 주 전 | |
---|---|---|
.github | 2 주 전 | |
src | 2 주 전 | |
.clang-format | 2 주 전 | |
.editorconfig | 2 주 전 | |
.gitignore | 2 주 전 | |
LICENSE | 2 주 전 | |
motp.project | 2 주 전 | |
motp.workspace | 2 주 전 | |
readme.md | 2 주 전 |
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'