Skip to content

UX: non-interactive passphrase supportΒ #550

@clach04

Description

@clach04

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 πŸ‘

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions