Skip to content

Update README to fix bad paths and input/output#25

Merged
Foxboron merged 2 commits intoFoxboron:masterfrom
dcousens:patch-1
Feb 15, 2025
Merged

Update README to fix bad paths and input/output#25
Foxboron merged 2 commits intoFoxboron:masterfrom
dcousens:patch-1

Conversation

@dcousens
Copy link
Copy Markdown
Contributor

@dcousens dcousens commented Jul 21, 2024

This pull request updates the README to fix some bad paths (the example didn't work) and aligns the input with the output.

Additionally, rather than hinting that AGE_TPM_PIN is how you might use a pin, I update the copy to say that this is how you might use the plugin non-interactively, instead.

--pin will prompt when encrypting and decrypting, no environment variable required.

# Encrypt / Decrypt something
$ echo "Hack The Planet" | age -R ./age-recipient.txt -o test-decrypt.txt
$ age --decrypt -i ./age-identity.txt -o - test-decrypt.txt
$ echo 'Hack The Planet!' | age -R age-recipient.txt -o test-decrypt.txt
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing !, and single-quotes preferred for non-expanded strings

Copy link
Copy Markdown
Contributor Author

@dcousens dcousens Jul 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dropped ./, as you don't use that for the other paths

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing !

Lol, yes.

$ AGE_TPM_PIN=123 age-plugin-tpm --generate --pin -o age-identity.txt
$ age-plugin-tpm -y age-identity > age-recipient.txt
$ AGE_TPM_PIN=1234 age-plugin-tpm --generate --pin -o age-identity.txt
$ age-plugin-tpm -y age-identity.txt > age-recipient.txt
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing .txt suffix

```

### With PIN
You can add `--pin` when calling `--generate` to require a PIN when encrypting or decrypting.
Copy link
Copy Markdown
Contributor Author

@dcousens dcousens Jul 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, we could make the default example use --pin - which I think is preferred - and maybe an addendum in place of this text that says that --pin is optional?

@dcousens
Copy link
Copy Markdown
Contributor Author

dcousens commented Jul 21, 2024

If desired, I can split this up into two different pull requests, fixes and new copy

@Foxboron
Copy link
Copy Markdown
Owner

Looks good to me, thanks :)

@Foxboron Foxboron merged commit 7afaac4 into Foxboron:master Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants