-
-
Notifications
You must be signed in to change notification settings - Fork 536
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
Comments
what if you pass it in like |
Any method which is using stdin (like <( cmd ) here) will not work, due to the age not supporting passphrase via stdin during decryption. This is what I'm actually asking for :) |
But the command I provided does not use stdin? It makes a pipe kind of file and returns the path to it to the command. |
That will not work because age --decrypt does not take passphrase as an command line argument (see below The problem is that INPUT may (but not must) be used by age for content of encrypt/decrypt operation, hence age must distinguish such mode (content on stdin) from password on stdin scenario, in two ways:
|
Environment
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:
The text was updated successfully, but these errors were encountered: