/bin/secretbox
The builtin secretbox of mkfifo.com: a cipher of the crypt backend of rclone, as a tool. The example uses a key of zeros: give your own key, or a sealed word in an envelope. The answer is bytes.
Use it from the web
Its address is https://mkfifo.com//bin/secretbox, with two slashes.
Send a POST: the body is the input, and the query gives the words, between
&
and with percent-encoding. The answer is the output, as the command of a shell writes it.
An error gives 422 and the error.
printf '%s' 'hello' | curl --data-binary @- 'https://mkfifo.com//bin/secretbox?-K&0000000000000000000000000000000000000000000000000000000000000000'
The answer (200):
(45 bytes, not text) 59 7f 0c f5 8d 05 b0 a9 36 c6 34 3a f8 f5 80 69 5d a8 17 f3 16 0b 35 cb e4 34 54 c8 dd 55 ad 6c 4f 83 bb 6f 70 11 f0 75 58 ed 29 ca e9
Use it in an envelope
A pipe gives a value to it, as to a FIFO: $body | /bin/secretbox.
An egress envelope can send to it, To: /bin/secretbox,
and Reply-To
gives its answer to a FIFO. These give no words: use the builtin itself for words, as in $body | jq .id.
A builtin here has no FIFO as its home: no code of totp
and no sealed key of a FIFO opens in it. Each run counts in the limits of its Request.