gopass icon indicating copy to clipboard operation
gopass copied to clipboard

Symbols config options

Open Plexvola opened this issue 2 years ago • 2 comments

Since usesymbols got deprecated as an option, what is the standard way to make gopass generate generate a password with symbols by default ?

Plexvola avatar Mar 10 '22 14:03 Plexvola

I guess you could set the env var GOPASS_CHARACTER_SET to explicitly define your character set, but then you need to unset it in order to have passwords without symbols, so it's not optimal probably.

Maybe the easiest way it to make an alias ? Like alias gog='gopass generate -s' or maybe alias gopass-generate='gopass generate -s'

AnomalRoil avatar Mar 11 '22 17:03 AnomalRoil

Notice that in general websites that have known rules to require symbols or to not require them should be auto-detected by our code: https://github.com/gopasspw/gopass/blob/757aa0847f7943044f4d5acac2e0b78140d0961b/internal/action/generate.go#L163-L171 and I think the env var is ignored in that case (unless used with --force after #2145, but that's only on master for now and not yet in a release.)

AnomalRoil avatar Mar 11 '22 17:03 AnomalRoil

With the new config system in place to should be easy to fix.

dominikschulz avatar Dec 04 '22 13:12 dominikschulz