logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

csv2pskc - Convert a CSV file to PSKC

Author

       Arthur de Jong

Description

csv2pskc  reads  a  CSV  file where the first line contains column labels and following lines contain key
       information for one key per line.

Name

       csv2pskc - Convert a CSV file to PSKC

Options

-h,--help
              Display usage summary.

       -V,--version
              Display version information.

       -oFILE,--outputFILE
              By default csv2pskc writes a PSKC file to stdout. This option can  be  used  to  save  to  a  file
              instead.

       -cCOL,COL,..,--columnsCOL,COL,..
              Specify  the  meaning  of the columns in the CSV file. By default the first row of the CSV file is
              expected to list the names of the columns.

              Any property of Key instances can be used as well as Policy properties via  policy.  For  example:
              serial,  secret,  counter, time_offset, time_interval, interval, time_drift, issuer, manufacturer,
              response_length, policy.pin_min_length.

              This option can either specify a list of columns or a COL:KEY mapping  where  COL  refers  to  the
              value found in the first line of the CSV file and KEY refers to a property as described above.

              It  is  possible  to  map a single column in the CSV file to multiple PSKC properties (e.g. use of
              id+serial sets both the ID and device serial number to the value found in that column).

       --skip-rowsN
              By default the first row is treated as a header which contains labels.  This option can be used to
              either skip more row (the first row of the CSV file will still be  treated  as  a  header)  or  to
              indicate that there is no header row.

              In the latter case the --columns option is required.

       -xCOL=VALUE,--setCOL=VALUE
              Specify properties that are added to all keys in the generated PSKC file.  Accepted labels are the
              same as for the --columns option.

              This can be useful for setting the issuer, manufacturer or other common properties globally.

       -pPASS/FILE,--passwordPASS/FILE,--passwdPASS/FILE
              Encrypt  the  PSKC file with the specified password. If the argument refers to a file the password
              is read from the file instead.

       -sKEY/FILE,--secretKEY/FILE
              A hex encoded encryption key or a file containing the binary key (raw data, not encoded).

       -eENCODING,--secret-encodingENCODING
              Specify the encoding to use for reading key material from the CSV file. By default HEX encoding is
              used. Valid encodings are: base32, base64 or hex.

Synopsis

csv2pskc [options] [<FILE>]

See Also