{ "name": "oathtool", "version": "2.6.14", "summary": "oathtool: HOTP and TOTP one-time passwords (RFC 4226, RFC 6238) from a secret, as the authenticator apps make them; liboath", "category": "tool", "license": "GPL-3.0-or-later AND LGPL-2.1-or-later", "homepage": "https://www.nongnu.org/oath-toolkit/", "source": { "url": "https://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-2.6.14.tar.gz", "sha256": "8b1da365759f1249be57a82aec6e107f7b57dc77d813f96dc0aaf81624f28971" }, "watch": {"kind": "index", "url": "https://download-mirror.savannah.gnu.org/releases/oath-toolkit/", "regex": "oath-toolkit-([0-9]+(?:\\.[0-9]+)+)\\.tar\\.gz"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/oathtool --version | has '^oathtool (OATH Toolkit) 2.6.14' && k=3132333435363738393031323334353637383930 && [ \"$(bin/oathtool \"$k\")\" = 755224 ] && [ \"$(bin/oathtool -c 1 \"$k\")\" = 287082 ] && [ \"$(bin/oathtool -c 9 \"$k\")\" = 520489 ] && [ \"$(bin/oathtool --totp -d 8 -N '1970-01-01 00:00:59 UTC' \"$k\")\" = 94287082 ] && [ \"$(bin/oathtool --totp -d 8 -N '2005-03-18 01:58:29 UTC' \"$k\")\" = 07081804 ] && [ \"$(bin/oathtool --totp=sha256 -d 8 -N '1970-01-01 00:00:59 UTC' 3132333435363738393031323334353637383930313233343536373839303132)\" = 46119246 ] && [ \"$(bin/oathtool --totp -b -d 8 -N '1970-01-01 00:00:59 UTC' GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ)\" = 94287082 ] && check_lib liboath liboath/oath.h 'char otp[7]; if (oath_init() != OATH_OK) return 1; if (oath_hotp_generate(\"12345678901234567890\", 20, 1, 6, false, OATH_HOTP_DYNAMIC_TRUNCATION, otp) != OATH_OK) return 1; if (oath_hotp_validate(\"12345678901234567890\", 20, 0, 10, \"520489\") != 9) return 1; oath_done(); return strcmp(otp, \"287082\")' && echo 'oathtool 2.6.14: the HOTP values of RFC 4226 and the TOTP values of RFC 6238 (SHA-1 and SHA-256, hex and base32 keys); liboath generates and validates through check_lib'" }