mOTP is C based software for generate mOTP codes.

Rozhuk Ivan d72c55aa3f First release 2 тижнів тому
.github d72c55aa3f First release 2 тижнів тому
src d72c55aa3f First release 2 тижнів тому
.clang-format d72c55aa3f First release 2 тижнів тому
.editorconfig d72c55aa3f First release 2 тижнів тому
.gitignore d483568c8a Initial commit 2 тижнів тому
LICENSE d72c55aa3f First release 2 тижнів тому
motp.project d72c55aa3f First release 2 тижнів тому
motp.workspace d72c55aa3f First release 2 тижнів тому
readme.md d72c55aa3f First release 2 тижнів тому

readme.md

Simple console mOTP tool

Build-macOS-latest Actions Status Build-Ubuntu-latest Actions Status

Rozhuk Ivan rozhuk.im@gmail.com 2024

mOTP is C based software for generate Mobile-OTP codes.

Licence

BSD licence.

Donate

Support the author

  • GitHub Sponsors:
  • Buy Me A Coffee:
  • PayPal: PayPal
  • Bitcoin (BTC): 1AxYyMWek5vhoWWRTWKQpWUqKxyfLarCuz

Features

  • Allow set timezone while code genereation
  • Allow set time while code genereation

Compilation

Linux

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

FreeBSD / DragonFlyBSD

sudo pkg install git
git clone --recursive https://github.com/rozhuk-im/motp.git
cd motp
cc motp.c -O2 -lm -o motp

Usage

help

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.

example

motp -s 'secret' -p '1111'