Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't pass password via stdin during decrypt #603

Open
rdslw opened this issue Nov 26, 2024 · 0 comments
Open

can't pass password via stdin during decrypt #603

rdslw opened this issue Nov 26, 2024 · 0 comments

Comments

@rdslw
Copy link

rdslw commented Nov 26, 2024

Environment

  • OS: Linux 6.9.11
  • age version: 1.2.0

PROBLEM

Currently (afaik) it's not possible to pass passphrase to age via stdin, like:
echo -n "$passphrase" | age -d -o output_file input_file

Here, age knows that stdin is NOT used for data, because I specified input file explicitly.

This also does not work with:
some_cli_password_manager | age -d -i - -o output_file input_file

Rationale:

  1. passphrase is eventually read from stdin
  2. sometimes you must use passswords (can't use keys) in script & automation
  3. most cli tools allows it (cryptsetup etc.)
  4. also Reading pasted armored input from a terminal clashes with password prompt #364
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant