|
@@ -2,17 +2,19 @@
|
|
|
devices:[
|
|
devices:[
|
|
|
{
|
|
{
|
|
|
id:"Example Alice",
|
|
id:"Example Alice",
|
|
|
- type:"SimpleEncryptionComputer",
|
|
|
|
|
ports:1,
|
|
ports:1,
|
|
|
x:0.25,
|
|
x:0.25,
|
|
|
- y:0.35
|
|
|
|
|
|
|
+ y:0.35,
|
|
|
|
|
+ script: deviceScripts.encryption
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id:"Example Bob",
|
|
id:"Example Bob",
|
|
|
|
|
+ image: "iphone-1",
|
|
|
type:"SimpleEncryptionComputer",
|
|
type:"SimpleEncryptionComputer",
|
|
|
ports:1,
|
|
ports:1,
|
|
|
x:0.75,
|
|
x:0.75,
|
|
|
- y:0.35
|
|
|
|
|
|
|
+ y:0.35,
|
|
|
|
|
+ script: deviceScripts.encryption
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id:"Alice",
|
|
id:"Alice",
|
|
@@ -23,6 +25,7 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id:"Eve",
|
|
id:"Eve",
|
|
|
|
|
+ image: "macbook",
|
|
|
type:"Switch",
|
|
type:"Switch",
|
|
|
ports:2,
|
|
ports:2,
|
|
|
x:0.5,
|
|
x:0.5,
|
|
@@ -33,6 +36,7 @@
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
id:"Bob",
|
|
id:"Bob",
|
|
|
|
|
+ image: "iphone-1",
|
|
|
type:"SimpleEncryptionComputer",
|
|
type:"SimpleEncryptionComputer",
|
|
|
ports:1,
|
|
ports:1,
|
|
|
x:0.75,
|
|
x:0.75,
|
|
@@ -75,8 +79,8 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
],
|
|
],
|
|
|
- triggers:{
|
|
|
|
|
- t0:{
|
|
|
|
|
|
|
+ triggers:[
|
|
|
|
|
+ {
|
|
|
type:"packet",
|
|
type:"packet",
|
|
|
device:"Eve",
|
|
device:"Eve",
|
|
|
payload:{
|
|
payload:{
|
|
@@ -85,7 +89,7 @@
|
|
|
application:{type:"message",encryptionkey:"31337"}
|
|
application:{type:"message",encryptionkey:"31337"}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- t1:{
|
|
|
|
|
|
|
+ {
|
|
|
type:"packet",
|
|
type:"packet",
|
|
|
device:"Bob",
|
|
device:"Bob",
|
|
|
payload:{
|
|
payload:{
|
|
@@ -94,5 +98,5 @@
|
|
|
application:{type:"message",encryptionkey:"123456"}
|
|
application:{type:"message",encryptionkey:"123456"}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
|
|
+ ]
|
|
|
}
|
|
}
|