From 0f3319412d4de28aad17bfb3242f8144e725bced Mon Sep 17 00:00:00 2001 From: Drew Skwiers-Koballa Date: Fri, 13 Nov 2026 13:04:35 -0800 Subject: [PATCH] replaces tctl example with temporal --- encryption/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encryption/README.md b/encryption/README.md index fffd121aa..17a55b2d7 100644 --- a/encryption/README.md +++ b/encryption/README.md @@ -15,9 +15,9 @@ Create a custom data converter that encrypts data with AES. See [encryption docs - Click the `Configure data encoder` icon on the bottom left, and set `http://localhost:8888` as the `Remote Codec Endpoint`. - Or add this environment variable to the web UI server: `TEMPORAL_CODEC_ENDPOINT=http://localhost:8888`. - To encrypt payloads with `tctl`, pass the following option: + To encrypt payloads with the `temporal` CLI, pass the following option: - - `tctl --codec_endpoint 'http://localhost:8888' ...` + - `temporal workflow start --codec-endpoint 'http://localhost:8888' --task-queue my-task-queue ...` The Payload Converter is supplied to the [client.ts](./src/client.ts) and [worker.ts](./src/worker.ts). When the Client sends `'Alice: Private message for Bob.'` to the Workflow, it gets encrypted on the Client and decrypted in the Worker. [`workflow.ts`](./src/workflow.ts) receives the decrypted message and appends another message. When it returns that longer string, the string gets encrypted by the Worker and decrypted by the Client.