22 Commits

Author SHA1 Message Date
akulij
181ac703ae add --input-type flag 2025-03-03 00:18:37 +00:00
akulij
5184859c54 handle sigpipe for user friendliness 2025-02-27 22:18:18 +00:00
akulij
bd018136d6 delete sigint handler since it doesn't do anything 2025-02-27 22:13:45 +00:00
akulij
d924708a1c fix: signal handler setter doesn't need to be ran asynchronously 2025-02-27 22:12:13 +00:00
akulij
5f13d1d409 change password input method
in previous method if press ctrl-c during password enter terminal echo
kept off. It was possible to fix it to set `stty echo` in sigint
handler, but this solution is more elegant
2025-02-27 22:07:41 +00:00
akulij
d5192456ce handle sigint 2025-02-27 22:07:30 +00:00
akulij
a873717f17 move flags parsing out of main function 2025-02-27 21:27:36 +00:00
akulij
c3c506e206 move cmd utility location to follow projects name 2025-02-27 20:02:49 +00:00
akulij
6ded6ec767 rename project from age-gen-passphrase to age-passgen 2025-02-27 20:01:44 +00:00
akulij
5522a1265e FIX: missing --entropy-level flag in --help 2025-02-27 19:52:00 +00:00
akulij
a9943d2358 use entropy level for password 2025-02-27 03:02:39 +00:00
akulij
7e28ea3c94 add --entropy-level flag 2025-02-27 01:51:29 +00:00
akulij
dbe48ec586 fix usage info 2025-02-27 00:00:48 +00:00
akulij
14439a6479 use flags --output and --raw-output
Now logic for output looks like:
password from stdin (stays as was)
keys: private to stdout OR private to file (via -o flag) and public to stdout
stderr for errors and password prompt
2025-02-26 23:22:47 +00:00
akulij
3b1079985a add usage flags 2025-02-26 23:07:36 +00:00
akulij
2a22ce4cc5 delete password hash wich however stayed till this commit 2025-02-26 21:44:50 +00:00
akulij
7527faa139 go fmt 2025-02-26 21:44:34 +00:00
akulij
c935f4ba81 make key output behaviour closer to the one in age-keygen 2025-02-26 21:44:01 +00:00
akulij
721e68a64e change error print method
used specific for errors function
this one also stops program
2025-02-26 18:33:24 +00:00
akulij
6c40441f70 implement password getter
get password via hidden user input or raw piped stdin
2025-02-26 18:23:30 +00:00
Akulij
666fb84a66 add super simple and naive password input 2025-02-26 21:05:38 +05:00
Akulij
a5eef4512f Initial working PoC 2025-02-26 20:46:21 +05:00