Skip to content

Commit

Permalink
Added example with age
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxboron committed Apr 17, 2023
1 parent dd03e0b commit fb28de2
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,22 @@ the follow go command.

`go install github.com/Foxboron/age-plugin-tpm@latest`

## Usage

# Usage

```bash
# Create indetity
$ age-plugin-tpm --generate-key
$ age-plugin-tpm --identity > age-identity.txt
$ age-plugin-tpm --list > age-recipient.txt

# 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
Hack The Planet!
```

## Commands

An age identity can be created with:

Expand Down

0 comments on commit fb28de2

Please sign in to comment.