50 Commits

Author SHA1 Message Date
aed00324f6 dang
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 22s
Build / build (push) Successful in 26s
Build / x86_64-linux-musl (push) Successful in 22s
Build / x86_64-windows (push) Successful in 22s
2025-08-05 19:59:49 +02:00
b329bc73e1 add parser for pre_release version
Some checks failed
Build / x86_64-linux-gnu (push) Failing after 18s
Build / x86_64-linux-musl (push) Failing after 18s
Build / x86_64-windows (push) Failing after 18s
0.1.0
2025-08-02 12:45:53 +02:00
cd8a9b0c76 try upload-artifact@v3
Some checks failed
Build / x86_64-linux-gnu (push) Failing after 18s
Build / x86_64-linux-musl (push) Failing after 18s
Build / x86_64-windows (push) Failing after 18s
2025-08-02 12:34:32 +02:00
4405bf4ab0 try caching
All checks were successful
Build / build (push) Successful in 22s
Build / x86_64-linux-gnu (push) Successful in 54s
Build / x86_64-linux-musl (push) Successful in 54s
Build / x86_64-windows (push) Successful in 53s
2025-08-02 12:28:08 +02:00
f5acf8af4e use target zig understands
All checks were successful
Build / x86_64-linux-gnu (push) Successful in 26s
Build / x86_64-linux-musl (push) Successful in 24s
Build / x86_64-windows (push) Successful in 23s
Build / build (push) Successful in 30s
2025-08-02 10:44:50 +02:00
6510314dea forgot the target
Some checks failed
Build / build (push) Successful in 21s
Build / x86_64-unknown-linux-musl (push) Failing after 15s
Build / x86_64-windows (push) Successful in 19s
2025-08-02 10:37:01 +02:00
ea5dc4d144 try matrix build
Some checks failed
Build / build (push) Successful in 21s
Build / x86_64-unknown-linux-musl (push) Failing after 15s
Build / x86_64-windows (push) Failing after 15s
2025-08-02 10:34:54 +02:00
4ff826d9f4 fetch complete repo
Some checks failed
Build / build (push) Failing after 1m10s
0.0.1
2025-07-28 19:03:08 +02:00
769573a23b try to upload artifacts
Some checks failed
Build / build (push) Failing after 32s
2025-07-28 18:55:50 +02:00
d5632dea6e fetch tags
All checks were successful
Build / build (push) Successful in 22s
2025-07-28 18:49:40 +02:00
83efe0547e cross compile for windows and linux
All checks were successful
Build / build (push) Successful in 23s
2025-07-28 18:46:41 +02:00
761d9086cd moving the zig binary doesn't work
Some checks failed
Build / build (push) Failing after 21s
2025-07-27 17:58:24 +02:00
2214ae92d1 I am so stupid
Some checks failed
Build / build (push) Failing after 8s
2025-07-27 17:56:39 +02:00
a0147b8216 host.docker.internal doesn't work, try magic ip instead
Some checks failed
Build / build (push) Failing after 8s
2025-07-27 17:55:40 +02:00
e1d195f236 brainfart
Some checks failed
Build / build (push) Failing after 5s
2025-07-27 17:54:53 +02:00
0fbea3d981 cannot use localhost in a container, obviously
Some checks failed
Build / build (push) Failing after 5s
2025-07-27 17:51:51 +02:00
25e2c10bb2 ubuntu slim does not have wget or curl
Some checks failed
Build / build (push) Failing after 5s
2025-07-27 17:50:33 +02:00
a296b509ae typo in name for checkout action
Some checks failed
Build / build (push) Failing after 13s
2025-07-27 17:46:56 +02:00
8b946e3423 1st try of a build workflow
Some checks failed
Build / build (push) Failing after 19s
2025-07-27 17:45:03 +02:00
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
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
3f3c3198f5 add completions for fish and update for bash 2025-03-09 10:57:52 +01:00
b4f82ebfda add option to show help 2025-03-08 19:31:05 +01:00
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
dd32db056e Make it possible to validate a code. 2025-02-22 20:45:37 +01:00
e9168203f5 add bash completion script 2024-11-24 15:43:10 +01:00
0df5a7a5ce add another link to totp spec 2024-09-20 16:24:48 +02:00
ec75712d04 on windows the env var for home seems to be HOMEPATH 2024-09-20 15:29:30 +02:00
a60fadd248 make compilable on windows 2024-09-20 15:20:39 +02:00
51def513e3 improve more error messages 2024-09-11 13:45:24 +02:00
1efad3d45c improve error message if argument for --config is missing 2024-09-10 08:47:13 +02:00
a41eed98bb better error message when there is no parameter after 'show' 2024-09-09 19:01:20 +02:00
c0704a604b add error message for authenticator not found 2024-09-09 18:42:41 +02:00
7edfe2dfff add referene to the spec for otpauth urls (which is still a draft) 2024-09-09 17:57:40 +02:00
a9f9becc41 add support for algorithms SHA256 and SHA512 2024-09-09 15:38:55 +02:00
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
0f5fd3f561 add 'algorithm' to OtpAuthUrl
Currently the parameter is not evaluated.
2024-09-09 14:47:22 +02:00
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
39bcda689d use arena allocator, because this is a short lived cli tool 2024-09-09 09:40:27 +02:00
ba9e6b06b6 fix some memory leaks and add better error handling 2024-09-08 11:48:28 +02:00
622391a67d add test cases from RFC-6238 2024-09-07 12:39:43 +02:00
a926906e91 finalize computation of the code 2024-09-07 10:42:39 +02:00
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
0afbb7a757 Base32 decoding with optional padding 2024-09-01 17:58:51 +02:00
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
044b2e3e8f fix memory leak and remove 'add' 2024-08-27 19:45:48 +02:00
8854646cda extract method to read the config file 2024-08-27 19:12:28 +02:00
d1cf64bdcb cleanup 2024-08-27 18:59:50 +02:00
ecb7bacfa1 list command 2024-08-27 18:39:21 +02:00
68f55396e3 initial commit 2024-08-17 14:15:19 +02:00