52 lines
1.4 KiB
Markdown

---
name: crypstie
description: Create and open end-to-end encrypted Crypstie links with the crypstie npm CLI. Use when an agent must securely exchange text or files through crypstie.com, decrypt an existing Crypstie URL without a browser, create reusable or burn-on-read links, or automate Crypstie from a shell.
---
# Crypstie
Use the `crypstie` CLI. Install it with `npm install --global crypstie` if the
command is unavailable.
## Open a link
Quote URLs because they contain `#`:
```shell
crypstie open "$CRYPSTIE_URL"
```
Write binary content directly to a file:
```shell
crypstie open "$CRYPSTIE_URL" --output ./result.bin
```
Use `--json` only when metadata or Base64 data is required.
## Create a link
Pipe text without making a temporary plaintext file:
```shell
printf '%s' "$CONTENT" | crypstie create
```
Create from a file and set lifetime:
```shell
crypstie create ./input.bin --days 7
```
Add `--burn` only when the user requests deletion after reading.
## Handle secrets
- Treat the complete URL as a secret: anyone holding it can decrypt the data.
- Never omit the fragment after `#`; it contains the local decryption key.
- Avoid repeating a full URL in explanations, logs, issues, or source files.
- Return a newly created URL only to the requesting user.
- Prefer environment variables when opening links in automation.
- Remember that Crypstie protects stored content, not endpoints where plaintext
is read or written.