Adding extra info when generating a password

Brian Exelbierd bex at pobox.com
Fri Jun 19 12:08:32 CEST 2020



On Fri, Jun 19, 2020, at 4:10 AM, Adrian Ho wrote:
> On 19/6/20 12:51 am, John Franklin wrote:
> > On Jun 18, 2020, at 02:46, pass at attackllama.com wrote:
> >> Is there an equivalent to the -m flag of `pass insert` for `pass
> >> generate`? Essentially 100% of the time I want to store my username next
> >> to the password in the file, and have to do `pass generate
> >> my/password/file` then `pass edit my/password/file`,
> >>
> > That sounds like it should be an easy patch, and makes a lot of sense, too.  While we’re at it, are there other flags in insert and generate that could be made common between the two?
> 
> In keeping with the Unix philosophy, I'd prefer a `pass new` subcommand
> that just generates a new password to stdout:

I like the idea of this new subcommand, however, I don't think this is a great solution for the OP.  I'd love to see this written as plugin or core command.

regards,

bex

> 
> 
> new [ --no-symbols, -n ] [pass-length]
> 
> 
> That provides maximum flexibility, and can also be used outside pass.
> For the OP's use case:
> 
> 
> $ pass insert path/to/my/pass/db <<EOF
> acct1 $(pass new 16)
> acct2 $(pass new 22)
> EOF
> 
> 
> Best Regards,
> Adrian
> 
> 
>


More information about the Password-Store mailing list