[pass] I'd like to contribute another migration/import script for pwSafe

Kenny Evitt kenny.evitt at gmail.com
Sun Jul 3 16:11:06 CEST 2016


I discovered some problems with my Bash script:

 1. I was missing a field in the pwSafe data so fields were being
mismatched.
 2. Because some of the fields in the pwSafe data (a tab-delimited file)
were blank, the Bash builtin `read` was collapsing consecutive delimiters
as a single delimiter, thus mangling the fields in another way.
 3. I wasn't calling `read` with the appropriate option to handle extended
characters.

[1] and [3] were easy enough to fix but [2] was going to require rather
convoluted code to workaround in Bash. So I created a Python version of the
script instead.

I've pushed the replacement of the Bash script with the Python script to
GitHub here:

 - https://github.com/kenny-evitt/pwsafe-to-pass

On Fri, Jun 3, 2016 at 9:52 AM, Kenny Evitt <kenny.evitt at gmail.com> wrote:

> A combined script would just be a `if version_a ... else if version_b ...`
> so not combining them would be a little clearer for anyone maintaining them
> or wanting to make changes.
>
> pwSafe is a pretty good password manager that uses the Password Safe
> format. Password Safe was designed by Bruce Schneier (the crypto and
> security guy). They use a 'one master password unlocks an entire database
> of password entries' model.
>
> I started looking around for alternatives, and happily stumbled upon Pass,
> because merging all of my separate copies (per device, shared via
> Dropbox) of my 'safes' (password stores) was a big pain. I do Git merges a
> lot more often so Pass should be a lot easier.
>
>
> On Tuesday, May 31, 2016, Jason A. Donenfeld <Jason at zx2c4.com> wrote:
>
>> Yes probably, but if it's a PITA, it's not such a big deal. (I don't even
>> know what pwsafe is.)
>> On May 31, 2016 9:54 AM, "Kenny Evitt" <kenny.evitt at gmail.com> wrote:
>>
>>> It only works with the new version. Both scripts are pretty simple and
>>> just `read` lines with fixed fields into variables. I *could* combine the
>>> two scripts into one – would you be more interested in accepting that
>>> instead of a new script?
>>>
>>> On Mon, May 30, 2016 at 8:06 PM, Jason A. Donenfeld <Jason at zx2c4.com>
>>> wrote:
>>>
>>>> Thanks! Does it also work with the old version or only the new?
>>>> On May 31, 2016 12:39 AM, "Kenny Evitt" <kenny.evitt at gmail.com> wrote:
>>>>
>>>>> The existing script for pwSafe seems to cover a version older than
>>>>> what I'm running, version "4.9 (4900)" on Mac OS X.
>>>>>
>>>>> I adapted the existing script to work with the tab-delimited file
>>>>> output by the export feature of the version I'm running.
>>>>>
>>>>> Here's a GitHub repo with my script:
>>>>>
>>>>> https://github.com/kenny-evitt/pwsafe-to-pass
>>>>>
>>>>> _______________________________________________
>>>>> Password-Store mailing list
>>>>> Password-Store at lists.zx2c4.com
>>>>> http://lists.zx2c4.com/mailman/listinfo/password-store
>>>>>
>>>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160703/e606f645/attachment.html>


More information about the Password-Store mailing list