Re: Fwd: Generate new password for multiline entries

2017-01-27 Thread Lucas Hoffmann
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

Re: [pass] [PATCH] Allow custom subcommands

2016-10-17 Thread Lucas Hoffmann
> > Quoting Thorsten Wißmann (2016-09-30 11:33:33) > > > Other command line utilities like git or hledger[2] provide those > > > custom subcommands, and I'd love to see it in pass as well. I've > > > implemented that in the attached git formatted patch, but did not know > > > whether/where/how to

Re: [pass] [PATCH] Allow custom subcommands

2016-10-07 Thread Lucas Hoffmann
Quoting Thorsten Wißmann (2016-09-30 11:33:33) > I have a couple of custom pass scripts (e.g. a custom clipboard > wizard[1], or a custom file generation script). It would fit perfectly > to the pass workflow if one could call those directly via pass, e.g. > > pass clipwiz

Re: [pass] Add 'Change Dir' Functionality

2016-09-18 Thread Lucas Hoffmann
Quoting Jakob Holderbaum (2016-09-18 13:52:19) > We are currently using it at several client projects for storing > shared team secrets like production credentials. > > This also means, that a rather often use-case is to call pass on > different password directories. Setting PASSWORD_STORE_DIR >

Re: [pass] Fwd: Error when naming password GIT

2016-09-13 Thread Lucas Hoffmann
Quoting Steven Clarkson (2016-09-13 09:27:36) > This is the first time I've done something like this, so sorry if it's not > helpful or wrong, but I think it would be helpful if there was an error > (or warning) when you tried to save a password with the same name as a > command.  For instance I

Re: [pass] Feature request – combined insert/generate/edit for new entries

2016-07-15 Thread Lucas Hoffmann
Quoting Marcos Alano (2016-07-16 02:27:15) > Maybe implement a parameter '-p' in 'generate' subcommand which generates > a password and fill the first line with it? > Something like: > pass generate -p something_completely_different What exactly should your `-p` do? We already have `pass

Re: [pass] Feature request – combined insert/generate/edit for new entries

2016-07-15 Thread Lucas Hoffmann
Quoting Kenny Evitt (2016-07-15 21:49:26) > I often want to add an entry but also generate a new random password and > add additional info ('edit') and, given that I'm tracking the history of > my entries with Git, it'd be nice (or nicest) to do all of that as a > single commit. Besides the Git

Re: [pass] Comments in .gid-id files

2016-05-17 Thread Lucas Hoffmann
As Héctor has demonstrated that is something that can easily be done from outside pass. I think it could therefore rather be put into a separate script under contrib/ . I think the main script should only be patched for security bugfixes, important features that can not be implemented as a

Re: [pass] Help re output of command pass & where is bash completion script

2016-03-30 Thread Lucas Hoffmann
Quoting Geoff & Lynne Maclean (2016-03-28 11:17:20) > After a quick learning curve with pgp and git, I've set up pass and even > playing with qtpass so I can run it on a usb stick for work. > I've hit a small hiccup in that when I run the command pass, instead of > getting the 544 odd entries I

Re: [pass] Patch and discussion for scriptable interface to pass

2016-02-09 Thread Lucas Hoffmann
Quoting Lucas Hoffmann (2016-02-05 21:42:29) > This even results in a small "bug": pass assumes that password files > have a gpg extension. Other files are not used by `pass show`. That > is the internal assumtion/restriction/interface. The bug is that > files w

Re: [pass] [PATCH 1/1] sed(1) compatibility

2016-02-09 Thread Lucas Hoffmann
You could also try to split the job into two regexes if there are too many differences between the sed versions we want to support. `man tree` says that it will use $LS_COLORS. But as far as I understand it after some tests, this arbitrary escape sequence will only be used at the start of the

Re: [pass] fuzzy search

2016-02-09 Thread Lucas Hoffmann
Quoting Jason A. Donenfeld (2016-02-05 20:35:51) > I do the same thing with passmenu (based on dmenu), but it's not in > the terminal and all fancy like this. sed 's/dmenu/fzf/' < contib/dmenu/passmenu > contib/fzf/passmenu-curses Already works quite well. But you could also change the --type

Re: [pass] [passmenu]: Complicated way for first line?

2016-02-07 Thread Lucas Hoffmann
Quoting Jason A. Donenfeld (2016-02-06 19:46:16) > I just forgot to group the commands properly. Works now: > http://git.zx2c4.com/password-store/commit/?id=930f01cd830815730f3f041d5e5788fccdd6d4cb Out of curiosity: What difference does the grouping make? Also: You should add -r to read (see man

Re: [pass] [passmenu]: Complicated way for first line?

2016-02-05 Thread Lucas Hoffmann
Quoting Jason A. Donenfeld (2016-02-05 22:21:49) > Merging this just for you. :-P > ... >     So, instead use two processes! One for getting the first line and one >     for removing the trailing line. Everybody loves more calls to fork(), >     right? Or use builtins: pass show "$password" |

Re: [pass] Patch and discussion for scriptable interface to pass

2016-02-05 Thread Lucas Hoffmann
Quoting Jason A. Donenfeld (2016-02-05 20:09:35) > The whole motivation for pass was not to have anything that needs an > API or an interface to work with. The interface is the filesystem. > Each password is in a file. Files can be dealt with through the gpg > tools. Scripts are to just use the

[pass] Patch and discussion for scriptable interface to pass

2016-02-04 Thread Lucas Hoffmann
43c58f71d7cfd7dd01020fe Mon Sep 17 00:00:00 2001 Message-Id: <c48ff10a23e7343c58f71d7cfd7dd01020fe.1454635746.git.l-...@web.de> From: Lucas Hoffmann <l-...@web.de> Date: Wed, 26 Aug 2015 11:10:53 +0200 Subject: [PATCH 1/6] Add script-interface subcommand. MIME-Version: 1.0 Cont

Re: [pass] Patch and discussion for scriptable interface to pass

2016-02-04 Thread Lucas Hoffmann
Quoting Allan Odgaard (2016-02-05 05:52:45) > On 5 Feb 2016, at 9:06, Lucas Hoffmann wrote: > > pass script-interface dirs2 -- (faster implementation of dirs) > Why not use this code for the `dirs` command? I left both in the script in order to compare them with this: https://git

Re: [pass] Possible improvements

2016-01-26 Thread Lucas Hoffmann
Quoting Dashamir Hoxha (2016-01-26 08:11:44) >But, from the man page: >"PASSWORD_STORE_GPG_OPTS: Additional options to be passed to all >invocations of GPG." >It does not say that it is an array. And if it is a string, then there are >no problems >inside the script. 

Re: [pass] Possible improvements

2016-01-26 Thread Lucas Hoffmann
Quoting Dashamir Hoxha (2016-01-23 15:03:31) > Why do you use asymmetric encryption (public/private keys). > I think that symmetric encrypion is easier, stronger, and simpler > (you don't need to generate and maintain a key, all you need is > a passphrase). It can be done with `gpg -c ...`. I

Re: [pass] Encrypt filenames in the store

2016-01-18 Thread Lucas Hoffmann
Hello Jin, I think the idea to put things into different files is a design decision of pass that is not going to change. It is a feature of pass that you do not have to understand anything other than filesystem structures and that the developer does not have to reimplement this in some custom

Re: [pass] Key rotation

2015-12-06 Thread Lucas Hoffmann
The man page says you should use "pass init [-p subfolder] newid". Or do you need some info that is not in the man page? Quoting commentsab...@riseup.net (2015-12-07 00:28:01) > Hello, > > Is there an easy way to rotate key (change GPG key at some point) with > pass ? > > > Best, > > CA >

Re: [pass] [PATCH 0/3] Change output format of `pass grep`

2015-08-18 Thread Lucas Hoffmann
On Tue, Aug 18, 2015 at 07:05:31AM +, Dahlberg, David wrote: While I can patch the --color out without much of a problem, I fear complications might arise with --label as this changes the textual output if missing and future functions might rely on the exact string. (You're using scripting

Re: [pass] [PATCH 0/3] Change output format of `pass grep`

2015-08-18 Thread Lucas Hoffmann
On Tue, Aug 18, 2015 at 11:32:42AM +0200, Lucas Hoffmann wrote: On Tue, Aug 18, 2015 at 11:11:37AM +0200, Lucas Hoffmann wrote: On Tue, Aug 18, 2015 at 07:05:31AM +, Dahlberg, David wrote: Would it be possible to replace --label/-H with cut/echo or sed? I think it is possible

Re: [pass] [PATCH 0/3] Change output format of `pass grep`

2015-08-18 Thread Lucas Hoffmann
On Tue, Aug 18, 2015 at 11:11:37AM +0200, Lucas Hoffmann wrote: On Tue, Aug 18, 2015 at 07:05:31AM +, Dahlberg, David wrote: Would it be possible to replace --label/-H with cut/echo or sed? I think it is possible to implement the --label stuff with a pipeline. But I am currently thinking

Re: [pass] Exporting data from password store

2015-06-22 Thread Lucas Hoffmann
It is a good idea to store the password encrypted, even when backing up. So as the password store is only a folder with files you can use cp(1) or rsync(1) or tar(1) to backup and restore the data (best as a whole, then you will have no problems if you reencrypt). If you want to reencrypt files

Re: [pass] No public key - help?

2015-03-14 Thread Lucas Hoffmann
On Sat, Mar 14, 2015 at 12:51:59PM +0100, Matthias Beyer wrote: On 14-03-2015 12:04:56, Lenz Weber wrote: I just noticed you can do that without editing the pass script: just call bash -x `which pass` insert test This prints some export PATH= things before anything, but does not print

Re: [pass] GPG Key Roll / Remove key and re-encrypt tree

2015-02-10 Thread Lucas Hoffmann
On Tue, Feb 10, 2015 at 09:39:37AM -0500, Steve Bambling wrote: Is there a way to re-encrypt the entire tree with a new key or set of keys from the .gpg-id file? Did you read the man page on the init subcommand? Maybe it can do what you want. Lucas pgpwAvHQTTKc8.pgp Description: PGP

Re: [pass] gpg issue

2015-02-06 Thread Lucas Hoffmann
On Thu, Feb 05, 2015 at 07:16:50PM +0100, Alberto Casado wrote: When I made pass init mygpgidentity I used one gpg identity. Then it asked me for the password and it wouldn't work, so I couldn't look at any of the passwords I had imported from keepassx. Do you set any of the environment

Re: [pass] pass security

2015-01-21 Thread Lucas Hoffmann
On Wed, Jan 21, 2015 at 06:52:44AM +0200, Dimitris Zervas wrote: Hello, First of all, I am sorry, because i guess that these questions have been asked a lot, but I failed to dig them from google. I want to use pass, but I am concerned about the security. 1. Why do you use asymmetric and not

Re: [pass] Output to less (or another pager)

2015-01-19 Thread Lucas Hoffmann
There is a branch in the development repository called pager and some emails in November December 2014 discussing stuff about pagers. That might be interesting for you. On Mon, Jan 19, 2015 at 04:28:21PM +0100, Kjetil Torgrim Homme wrote: On 01/19/2015 02:05 PM, Are wrote: ...

Re: [pass] Porting to OpenBSD

2015-01-05 Thread Lucas Hoffmann
On Mon, Jan 05, 2015 at 09:59:45AM +, Dahlberg, David wrote: Am Mittwoch, den 24.12.2014, 02:16 -0700 schrieb Jason A. Donenfeld: Would you send this whole thing as a single git-format-patch ? Please tell me how to. Especially, how to include new src/platform/openbsd.sh file in the