Generate new password for multiline entries

Patrick Burroughs (Celti) celti at celti.name
Sat Jan 28 17:21:48 CET 2017


On Sat, 28 Jan 2017 07:40:14 +0100
Lucas Hoffmann <l-m-h at web.de> wrote:

> Quoting Diego Depaoli (2017-01-27 21:42:11)
> > So to hold it all together, I use a trivial two step  solution:
> > first with edit subcommand I manually add an empty line at the top
> > of the file, then with generate subcommand and --in-place flag i
> > fill it. Is there any easier way?  
> 
> You could try to temporarily use sed as your editor.  Something like
> 
> EDITOR="sed -i '1i\\
> '" pass edit foo; pass generate -i foo 20
> 
> (take care about quoting in your shell you want the sed command to be
> 4 chars long, as a C-syle escaped string that would be "1i\\\n")
> 
> Happy hacking
> Lucas

I think there's room in this idea for a `pass rotate` subcommand, that
will shove the old password down a line, then generate and insert the
new password. Should be relatively easy to implement *and* would help
satisfy some systems that have synchronisation issues around password
changes.

~Celti
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170128/76cc52df/attachment.asc>


More information about the Password-Store mailing list