XET powered copypasta network
- Zig 0.16 or newer
- A HuggingFace account with a token
$ zig build install --prefix ~/.local
Make sure ~/.local/bin is in your PATH:
$ export PATH="$HOME/.local/bin:$PATH"
$ export BKT_TOKEN=hf_xxxxxxxxxx
$ export BKT=username/bucket
To enable end-to-end encryption, also set BKT_SECRET to a 16-byte key encoded as 32 hex characters:
$ export BKT_SECRET=00112233445566778899aabbccddeeff
Generate one with OpenSSL if needed:
$ openssl rand -hex 16
When BKT_SECRET is set, uploads are encrypted with AEGIS-128X2 using a random nonce prepended to the ciphertext, and downloads are decrypted automatically.
$ echo hello | bkt -
$ bkt
hello