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

UX: non-interactive passphrase support #550

Open
clach04 opened this issue Nov 25, 2024 · 0 comments
Open

UX: non-interactive passphrase support #550

clach04 opened this issue Nov 25, 2024 · 0 comments

Comments

@clach04
Copy link

clach04 commented Nov 25, 2024

What were you trying to do

I'd like to encrypt/decrypt an age file without an interactive passphrase prompt, and script it somehow. See FiloSottile/age#256

What happened

I get prompted for a passphrase 😉

From the Go implementation a few different PRs have been posted and either rejected with (we'll do something else, and nothing's happened yet) or ignored.

My personal preference would be to be able to use an environment variable and run rage with that variable set. For my use case I'm not concerned about possible password leakage. An alternative would be to be able to read the passphrase from regular stdin so could pipe the password in. https://ccrypt.sourceforge.net/ has a bunch of options for this, including an option to only require the passphrase once --brave versus --timid.

I noticed there is pinentry support in rage 🎉 , but I don't know enough about it to know if that's a viable option (while experimenting for example with pinentry-w32.exe under CMD, the command exits without starting the text-based interaction, it seems to work fine under bash).

Any other ideas? Is this something you'd be willing to implement (or potentially accept PRs's, I don't have a rust background)?

BTW nice job with this, works much better on Windows than the reference Go implementation 👍

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