Skip to content

Commit

Permalink
Create clj.md
Browse files Browse the repository at this point in the history
  • Loading branch information
raymcdermott authored Nov 5, 2024
1 parent d4fecd8 commit 63928f9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/clj.md
Original file line number Diff line number Diff line change
@@ -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,<br>includes public key
end
rect rgb(15, 100, 25)
ok2cry-clj->> CLJ Service: Pass request, <br>without public key
CLJ Service->>ok2cry-clj: Send response
end
rect rgb(100, 50, 255)
Note over ok2cry-clj: Encrypt response<br>using public key
ok2cry-clj->>ok2cry-cljs: Send encrypted<br>data
Note over ok2cry-cljs: Decrypt data<br>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
```

0 comments on commit 63928f9

Please sign in to comment.