RE: [CSV format] output secret in base32 instead of HEX
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
RE: [CSV format] output secret in base32 instead of HEX
- From: "Vibert, Florent" <fvibert [at] hidglobal.com>
- To: Arthur de Jong <arthur [at] arthurdejong.org>, python-pskc users <python-pskc-users [at] lists.arthurdejong.org>
- Subject: RE: [CSV format] output secret in base32 instead of HEX
- Date: Fri, 22 Sep 2017 10:18:32 +0000
Hello Arthur
Thanks a lot for the update and really quick turnaround ! It works as expected.
Yes I have another suggestion for improvement: as a user I would be able to
specify the column names of the CSV.
Today it is fixed columns and we have to update manually after file conversion .
For example
From
serial,secret,time_interval,manufacturer
To
SN,KEY,timeinterval, provider
A command line update of the -c parameter could help :
-c serial:SN,secret:KEY,time_interval:time,manufacturer:provider
Or a new parameter as you prefer
Best Regards
Florent Vibert
-----Original Message-----
From: python-pskc-users
[python-pskc-users-bounces+fvibert=hidglobal.com [at] lists.arthurdejong.org]
On Behalf Of Arthur de Jong
Sent: mercredi 20 septembre 2017 23:27
To: python-pskc users
Subject: Re: [CSV format] output secret in base32 instead of HEX
On Wed, 2017-09-20 at 15:28 +0000, Vibert, Florent wrote:
> So we reworked the .csv file more or less manually but at the end of
> the day it would be more efficient to have It directly from the tool
> with a new command line parameter
> like -- secretformat
> hex : current format
> base32 : for base32 RFC3548 format (For base32 I used python
> base64.b32encode function to get what I wanted)
> base64 : for base64 RFC3548 format
>
> Do you think this is something you could integrate in next version ?
Hi Florent,
Thanks for your email. The pskc2csv script started as a little bit of a quick
script to easily output the secrets from a PSKC file. Interesting that it is
being used more.
I've just added a --secret-encoding in master in the Git repo that allows you
to specify the output encoding of secrets in the CSV file (hex, base64 or
base32). It currently only affects the output format and not that of the value
of the --secret option.
See
https://arthurdejong.org/git/python-pskc/commit/?id=eef681bfda4692ff5b232d319773482196a5a7ec
This option will be available in the next release. If you have any more
suggestions for improvements, please let me know.
Kind regards,
--
-- arthur - arthur@arthurdejong.org - https://arthurdejong.org/ --
--
To unsubscribe send an email to
python-pskc-users-unsubscribe@lists.arthurdejong.org or see
https://lists.arthurdejong.org/python-pskc-users/