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