From 63928f95665659e04f96eb57e3428c3dfefb6565 Mon Sep 17 00:00:00 2001 From: Ray McDermott Date: Tue, 5 Nov 2024 21:23:45 +0100 Subject: [PATCH] Create clj.md --- docs/clj.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docs/clj.md diff --git a/docs/clj.md b/docs/clj.md new file mode 100644 index 0000000..13d7643 --- /dev/null +++ b/docs/clj.md @@ -0,0 +1,25 @@ +```mermaid +sequenceDiagram +rect rgb(15, 100, 25) +User->>CLJS SPA: Clicks "Fetch Secret" +CLJS SPA->>ok2cry-cljs: postData +end +rect rgb(100, 50, 255) +Note over ok2cry-cljs: Create key pair +ok2cry-cljs->>ok2cry-clj: Make request,
includes public key +end +rect rgb(15, 100, 25) +ok2cry-clj->> CLJ Service: Pass request,
without public key +CLJ Service->>ok2cry-clj: Send response +end +rect rgb(100, 50, 255) +Note over ok2cry-clj: Encrypt response
using public key +ok2cry-clj->>ok2cry-cljs: Send encrypted
data +Note over ok2cry-cljs: Decrypt data
using private key +Note over ok2cry-cljs: Destroy key pair +end +rect rgb(15, 100, 25) +ok2cry-cljs->>CLJS SPA: postData response +CLJS SPA->>User: Show data +end +```