(no title)
bndw | 4 years ago
- Reads plaintext input from stdin
- Symmetrically encrypts the plaintext using a 32-byte [cryptographically] random generated key (AES-256 GCM)
- POSTs the ciphertext and expiry (default 24h) to https://api.ots.sniptt.com/secrets
- The server responds with a URL to view the secret via a response header
- Query string "?ref=cli&v=<version>" are appended to the secret URL
- The decryption key is base64 encoded and appended to the secret URL as a Fragment, "#<key>"
- The secret URL is printed to stdout
slavomirvojacek|4 years ago
bndw|4 years ago