-
Notifications
You must be signed in to change notification settings - Fork 5
/
coolchart.mscgen
16 lines (14 loc) · 1 KB
/
coolchart.mscgen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Alice & Bob classics: public key encryption
msc {
hscale="1.4",
wordwraparcs="true";
Alice [linecolor="#00A1DE", textcolor="white", textbgcolor="#00A1DE", arclinecolor="#00A1DE", arctextcolor="white"],
Bob [linecolor="#00A1DE", textcolor="white", textbgcolor="#00A1DE", arclinecolor="#00A1DE", arctextcolor="white"],
notes [label=" ", linecolor="transparent"];
Alice => Alice [label="sign message with own private key", linecolor="#005B82", textcolor="#005B82"];
Alice => Bob [label="signed message", linecolor="#005B82", textcolor="#005B82"],
notes note notes [label="This is just a sample chart with a (high level) illustration of public key encryption.", linecolor="white", textcolor="white", textbgcolor="#E77B2F"];
Bob => Alice [label="get Alice her public key", linecolor="#005B82", textcolor="#005B82"];
Alice >> Bob [label="Alices' public key", linecolor="#005B82", textcolor="#005B82"];
Bob => Bob [label="verify message with Alices' public key", linecolor="#005B82", textcolor="#005B82"];
}