FiloSottile / age

A simple, modern and secure encryption tool (and Go library) with small explicit keys, no config options, and UNIX-style composability.
https://age-encryption.org
BSD 3-Clause "New" or "Revised" License
17.35k stars 511 forks source link

cmd/age: passphrase optionnaly supplied from an environment variable #520

Open wj opened 1 year ago

wj commented 1 year ago

The passphrase is now read from the AGE_PASSPHRASE environment variable, as an alternative to being requested interactively.

This enables the following usage patterns:

ghost commented 9 months ago

Hi, How exactly is the env var AGE_PASSPHRASE to be supplied? I was trying age -d --AGE_PASSPHRASE but that doesn't seem to work?

Edit: Never mind, figured out.

jc00ke commented 8 months ago

This would be nice to see, as it would allow one to use 1Password Secret reference syntax for shared passphrases.

gaby commented 5 months ago

This would be great for automation/CI!

@FiloSottile

apprehensions commented 4 weeks ago

https://github.com/FiloSottile/age/pull/346#issuecomment-1109675118