Commit Graph

38 Commits

Author SHA1 Message Date
andi 2214ae92d1 I am so stupid
Build / build (push) Failing after 8s
2025-07-27 17:56:39 +02:00
andi a0147b8216 host.docker.internal doesn't work, try magic ip instead
Build / build (push) Failing after 8s
2025-07-27 17:55:40 +02:00
andi e1d195f236 brainfart
Build / build (push) Failing after 5s
2025-07-27 17:54:53 +02:00
andi 0fbea3d981 cannot use localhost in a container, obviously
Build / build (push) Failing after 5s
2025-07-27 17:51:51 +02:00
andi 25e2c10bb2 ubuntu slim does not have wget or curl
Build / build (push) Failing after 5s
2025-07-27 17:50:33 +02:00
andi a296b509ae typo in name for checkout action
Build / build (push) Failing after 13s
2025-07-27 17:46:56 +02:00
andi 8b946e3423 1st try of a build workflow
Build / build (push) Failing after 19s
2025-07-27 17:45:03 +02:00
andi f5f1e1593b add parameter --time
You can not generate a code for a specific time. Currently only UTC is
supported.
2025-03-09 20:19:45 +01:00
andi ff7d1ede59 update to zig 0.14.0
build.zig.zon now requires a fingerprint and there was some issue with
the name
2025-03-09 20:17:17 +01:00
andi 3f3c3198f5 add completions for fish and update for bash 2025-03-09 10:57:52 +01:00
andi b4f82ebfda add option to show help 2025-03-08 19:31:05 +01:00
andi 21a4c231a3 add command line parameter to print the version
The version is defined in build.zig. We use git describe to the
the build version. For release versions we enforce that the version
in build.zig and build.zig.zon must be equal to the output of
git describe.
2025-03-08 19:19:52 +01:00
andi dd32db056e Make it possible to validate a code. 2025-02-22 20:45:37 +01:00
andi e9168203f5 add bash completion script 2024-11-24 15:43:10 +01:00
andi 0df5a7a5ce add another link to totp spec 2024-09-20 16:24:48 +02:00
andi ec75712d04 on windows the env var for home seems to be HOMEPATH 2024-09-20 15:29:30 +02:00
andi a60fadd248 make compilable on windows 2024-09-20 15:20:39 +02:00
andi 51def513e3 improve more error messages 2024-09-11 13:45:24 +02:00
andi 1efad3d45c improve error message if argument for --config is missing 2024-09-10 08:47:13 +02:00
andi a41eed98bb better error message when there is no parameter after 'show' 2024-09-09 19:01:20 +02:00
andi c0704a604b add error message for authenticator not found 2024-09-09 18:42:41 +02:00
andi 7edfe2dfff add referene to the spec for otpauth urls (which is still a draft) 2024-09-09 17:57:40 +02:00
andi a9f9becc41 add support for algorithms SHA256 and SHA512 2024-09-09 15:38:55 +02:00
andi 8b452af848 extract method to compute the totp code based on a pre-computed hmac
This will make it easier to add support for differen hmac algorithms,
because we can reuse the method.
2024-09-09 15:08:05 +02:00
andi 0f5fd3f561 add 'algorithm' to OtpAuthUrl
Currently the parameter is not evaluated.
2024-09-09 14:47:22 +02:00
andi d0f5860a44 ignore directory .zig-cache
The pre-release version of zig 0.13.0 was using 'zig-cache', but the
release version uses '.zig-cache'.
2024-09-09 14:30:46 +02:00
andi 39bcda689d use arena allocator, because this is a short lived cli tool 2024-09-09 09:40:27 +02:00
andi ba9e6b06b6 fix some memory leaks and add better error handling 2024-09-08 11:48:28 +02:00
andi 622391a67d add test cases from RFC-6238 2024-09-07 12:39:43 +02:00
andi a926906e91 finalize computation of the code 2024-09-07 10:42:39 +02:00
andi 36b19427e3 better parsing of the otpauth url
Multiple parameters can be parsed. And we can set the period and digits
via the url.
2024-09-02 18:57:20 +02:00
andi 0afbb7a757 Base32 decoding with optional padding 2024-09-01 17:58:51 +02:00
andi c8efdbdffe Adding Base32 decode method
It can currently decode when the encoded string is a multiple of 8
bytes.
2024-09-01 10:44:50 +02:00
andi 044b2e3e8f fix memory leak and remove 'add' 2024-08-27 19:45:48 +02:00
andi 8854646cda extract method to read the config file 2024-08-27 19:12:28 +02:00
andi d1cf64bdcb cleanup 2024-08-27 18:59:50 +02:00
andi ecb7bacfa1 list command 2024-08-27 18:39:21 +02:00
andi 68f55396e3 initial commit 2024-08-17 14:15:19 +02:00