secrets: a putsecret CLI program #11

Open
opened 2020-08-06 13:48:56 +02:00 by ni · 3 comments
ni commented 2020-08-06 13:48:56 +02:00 (Migrated from git.w21.org)

A putsecret main program with the following:

  • -B, -Z options for b64 and zip encodings, also -N or whatev for clear text (in case there is already another encoding)
  • by default, read secret from stdin, with prompt and hidden input and twice if stdin isatty
  • re-use previously existing encoding, if any (must be implemented in the putsecret() library function)
  • only per explicit option read a secret from the command line (-s or --secret=)
  • keep the order of lines in the secrets file when re-writing
  • also, keep comments and anything else untouched (except trailing whitespace in a line and trailing whitespace lines)

Also, tests for all this.

A `putsecret` main program with the following: * `-B`, `-Z` options for `b64` and `zip` encodings, also `-N` or whatev for clear text (in case there is already another encoding) * by default, read secret from stdin, with prompt and hidden input and twice if stdin isatty * re-use previously existing encoding, if any (must be implemented in the `putsecret()` library function) * only per explicit option read a secret from the command line (-s or --secret=) * keep the order of lines in the secrets file when re-writing * also, keep comments and anything else untouched (except trailing whitespace in a line and trailing whitespace lines) Also, tests for all this.
ni commented 2020-08-06 13:49:21 +02:00 (Migrated from git.w21.org)

changed the description

changed the description
ni commented 2022-08-13 15:24:18 +02:00 (Migrated from git.w21.org)

changed the description

changed the description
ni commented 2025-12-20 14:16:46 +01:00 (Migrated from git.w21.org)

at least there is one in examples/ now

at least there is one in `examples/` now
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
w21/jpylib#11
No description provided.