[pass] [PATCH] Added 'rename' command
Matthieu Weber
mweber at free.fr
Thu Apr 17 15:27:14 CEST 2014
On Thu 17.04.2014 at 03:14:06PM +0200, Jason A. Donenfeld wrote:
> On Thu, Apr 17, 2014 at 3:02 PM, Stephen Blott <smblott at gmail.com> wrote:
> >
> > There has to be a better way. You're going to end up writing a mini file
> > manager. If people want a tool for renaming git files, then somebody can
> > always write one. But it's different from a password manager.
> >
> > This isn't in the spirit of "do one thing, and do it well".
>
> Yes, I know. You are 100% right. I've long pushed back on adding a
> "pass mv" for this exact reason. I don't want to write a file manager.
pass mv is not about managing files, it is about changing the
meta-information of the password, namely its identifier. The fact that
it boils down to renaming a file is just a technicality. You can ditch
the "pass mv" shortcut if you want and provide only "pass rename" and
then it's not anymore about moving files, but about managing passwords.
That's exactly what pass is for. Maybe we can rename "pass mv" into
"pass rn" so that it doesn't sound like the shell's mv command?
One thing though: I don't see the need for "pass cp". What is the use
case where you need a second identical password but with a different
identifier? Moreover, both passwords would have identical ciphertexts,
meaning that if you crack password A you get password B for free (if you
encrypt the same cleartext twice, you get two differnt ciphertexts, but
in the case of "pass cp" you would obviously have the same ciphertext).
Matthieu
--
(~._.~) Matthieu Weber - mweber at free.fr (~._.~)
( ? ) http://weber.fi.eu.org/ ( ? )
()- -() public key id : 0x85CB340EFCD5E0B3 ()- -()
(_)-(_) "Humor ist, wenn man trotzdem lacht (Otto J. Bierbaum)" (_)-(_)
More information about the Password-Store
mailing list