Re: Windows implementation of passwordstore in pure batch

2020-02-15 Thread Kenny Evitt
I just checked the `Ubuntu` app on my Windows box and the output of `uname`
remains `Linux`.

Here are the previous threads from the archives:

 - https://lists.zx2c4.com/pipermail/password-store/2017-July/002987.html
 -
https://lists.zx2c4.com/pipermail/password-store/2017-November/003133.html
 - https://lists.zx2c4.com/pipermail/password-store/2018-January/003164.html
 - https://lists.zx2c4.com/pipermail/password-store/2018-April/003240.html

Here's a GitHub issue (for myself) for this:

 - [Get this merged upstream · Issue #2 · kenny-evitt/password-store-buw](
https://github.com/kenny-evitt/password-store-buw/issues/2)

There are two major issues still:

 1. `uname` in the Windows Ubuntu app still outputs `Linux`.
 2. There's no builtin support for arbitrary data in the Windows clipboard.
Every single possible file/data format would have to be supported
individually (AFAICT). This means only text data, already on the clipboard,
can be restored (after Pass clears a copied password from the clipboard).

For [1], it just occurred to me that maybe there's a way to just add the
Windows clipboard support to the existing `linux.sh` script.

Jason – how do you feel about that?

For [2], maybe there's a relatively simple way to just read and write the
clipboard data as generic binary data.

Jason – would you accept patches for this if this could *only* support
restoring *text* data to the Windows clipboard?

On Sat, Feb 15, 2020 at 4:35 PM Tobias Girstmair  wrote:

> (apologies, sent from a wrong/nonexistent email address before)
>
> On Sat, Feb 15, 2020 at 10:21:55PM +0100, Jason A. Donenfeld wrote:
> > I wonder if in the
> > intervening years a reliable non-kludgy detection mechanism has been
> > discovered.
>
> what about env vars? I've got XDG_SESSION_TYPE=x11 and
> XDG_SESSION_DESKTOP=i3
> (and a bunch of other XDG_* ones) on my system.
>
> according to a quick search[1], this hasn't been discussed before.
>
> [1]:
> https://duckduckgo.com/?q=site%3Alists.zx2c4.com%2Fpipermail%2Fpassword-store+%22xdg_session_type%22
> ___
> Password-Store mailing list
> Password-Store@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: Windows implementation of passwordstore in pure batch

2020-02-15 Thread Tobias Girstmair

(apologies, sent from a wrong/nonexistent email address before)

On Sat, Feb 15, 2020 at 10:21:55PM +0100, Jason A. Donenfeld wrote:

I wonder if in the
intervening years a reliable non-kludgy detection mechanism has been
discovered.


what about env vars? I've got XDG_SESSION_TYPE=x11 and XDG_SESSION_DESKTOP=i3
(and a bunch of other XDG_* ones) on my system.

according to a quick search[1], this hasn't been discussed before.

[1]: 
https://duckduckgo.com/?q=site%3Alists.zx2c4.com%2Fpipermail%2Fpassword-store+%22xdg_session_type%22
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: Windows implementation of passwordstore in pure batch

2020-02-15 Thread Jason A. Donenfeld
On Tue, Feb 11, 2020 at 9:06 PM Kenny Evitt  wrote:
> One of the reasons why Jason didn't want to merge my changes – IIRC – is that 
> the 'OS' that Ubuntu/WSL reports itself as being is NOT obviously or clearly 
> a 'Microsoft Windows Linux' environment. It's basically pretending like it's 
> 'really Linux', which it is in a lot of respects, but obviously not in terms 
> of clipboard support. The only way I could (relatively) easily figure out how 
> to add to the Windows clipboard was via PowerShell.

My memory is a bit hazy on that conversation, but this does seem like
a likely outcome. If this was the only blocker, I wonder if in the
intervening years a reliable non-kludgy detection mechanism has been
discovered.
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: Windows implementation of passwordstore in pure batch

2020-02-11 Thread Miquel Lionel
On Sun, 9 Feb 2020 17:55:12 -0500
Kenny Evitt  wrote:

> Nice job! Windows batch is a tough language to 'use in anger'! Bash isn't
> easy either, but Windows Batch is a whole 'nother level of pain-in-the-ass:
> 
>  - windows - Batch character escaping - Stack Overflow
> 
> 
> Pass DOES work in the Ubuntu app on Windows (formerly Bash on Ubuntu on
> Windows, and several other names before that) but I couldn't implement
> clipboard support *nicely*. Jason, the creator and maintainer of Pass,
> didn't like the changes I came up with – they ARE ugly.
> 
> But, in case you or anyone else is interested, I maintain a 'soft fork'
> with those changes on GitHub:
> 
>  - kenny-evitt/password-store-buw: Pass: The Standard Unix Password Manager
> for Bash on Ubuntu on Windows
> 
> 
> On Sun, Feb 9, 2020 at 4:19 PM Miquel Lionel  wrote:
> 
> > Hello to all the password-store mailing list,
> >
> >   Seeing no satisfying command line alternatives for Windows on the
> > passwordstore.org page, I decided to quickly put together a batch script
> > that mirrors my uses of pass on unix systems.
> > It behaves like pass on most of cases, my preferred thing being the clip
> > switch.
> > So, it supports :
> > * making dirs in the password store
> > * tree like display of directory and content of theses
> > * inserting,deleting passwords and password directory, with or
> > without prompts
> > * clipping a specific line of the password file
> > * PASSWORD_STORE_DIR and PASSWORD_STORE_KEY environnement
> > variable, as they're the most important ones.
> > * .gpgid file to indicate which key to use in case of
> > PASSWORD_STORE_KEY not set
> > * viewing passwords
> >
> > And I think that's all for the moment.
> >
> > There's still things to fix : can't have spaced password names, absolutely
> > no security against shouldersurfing, and many other things that I didn't
> > put my finger on yet.
> > But it does the job for me.
> >
> > https://notabug.org/lilim/pass.bat
> >
> > Kind regards,
> > --
> > Miquel Lionel 
> > ___
> > Password-Store mailing list
> > Password-Store@lists.zx2c4.com
> > https://lists.zx2c4.com/mailman/listinfo/password-store
> >
So if I understand well you need WSL/Cygwin for your implementation of pass ?
I looked at the repo a bit so I assume it's that, since there's a bunch of sh 
scripts laying around. I remember seeing cygwin things too.


Kind regards,
-- 
Miquel Lionel 
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Re: Windows implementation of passwordstore in pure batch

2020-02-09 Thread Kenny Evitt
Nice job! Windows batch is a tough language to 'use in anger'! Bash isn't
easy either, but Windows Batch is a whole 'nother level of pain-in-the-ass:

 - windows - Batch character escaping - Stack Overflow


Pass DOES work in the Ubuntu app on Windows (formerly Bash on Ubuntu on
Windows, and several other names before that) but I couldn't implement
clipboard support *nicely*. Jason, the creator and maintainer of Pass,
didn't like the changes I came up with – they ARE ugly.

But, in case you or anyone else is interested, I maintain a 'soft fork'
with those changes on GitHub:

 - kenny-evitt/password-store-buw: Pass: The Standard Unix Password Manager
for Bash on Ubuntu on Windows


On Sun, Feb 9, 2020 at 4:19 PM Miquel Lionel  wrote:

> Hello to all the password-store mailing list,
>
>   Seeing no satisfying command line alternatives for Windows on the
> passwordstore.org page, I decided to quickly put together a batch script
> that mirrors my uses of pass on unix systems.
> It behaves like pass on most of cases, my preferred thing being the clip
> switch.
> So, it supports :
> * making dirs in the password store
> * tree like display of directory and content of theses
> * inserting,deleting passwords and password directory, with or
> without prompts
> * clipping a specific line of the password file
> * PASSWORD_STORE_DIR and PASSWORD_STORE_KEY environnement
> variable, as they're the most important ones.
> * .gpgid file to indicate which key to use in case of
> PASSWORD_STORE_KEY not set
> * viewing passwords
>
> And I think that's all for the moment.
>
> There's still things to fix : can't have spaced password names, absolutely
> no security against shouldersurfing, and many other things that I didn't
> put my finger on yet.
> But it does the job for me.
>
> https://notabug.org/lilim/pass.bat
>
> Kind regards,
> --
> Miquel Lionel 
> ___
> Password-Store mailing list
> Password-Store@lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
>
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store


Windows implementation of passwordstore in pure batch

2020-02-09 Thread Miquel Lionel
Hello to all the password-store mailing list,

  Seeing no satisfying command line alternatives for Windows on the 
passwordstore.org page, I decided to quickly put together a batch script that 
mirrors my uses of pass on unix systems.
It behaves like pass on most of cases, my preferred thing being the clip switch.
So, it supports :
* making dirs in the password store
* tree like display of directory and content of theses
* inserting,deleting passwords and password directory, with or without 
prompts
* clipping a specific line of the password file
* PASSWORD_STORE_DIR and PASSWORD_STORE_KEY environnement variable, as 
they're the most important ones.
* .gpgid file to indicate which key to use in case of 
PASSWORD_STORE_KEY not set
* viewing passwords

And I think that's all for the moment.

There's still things to fix : can't have spaced password names, absolutely no 
security against shouldersurfing, and many other things that I didn't put my 
finger on yet.
But it does the job for me.

https://notabug.org/lilim/pass.bat

Kind regards,
-- 
Miquel Lionel 
___
Password-Store mailing list
Password-Store@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/password-store