Difference between revisions of "Team:Groningen/Coding"

Line 206: Line 206:
 
 
 
function advanceStage(prev){
 
function advanceStage(prev){
var cur = stages[idx],
+
var prev && prev.idx || 0,
idx = (prev.idx + 1) % stages.length,
+
cur = stages[idx],
 
data = prev.data,
 
data = prev.data,
 
disp;
 
disp;
Line 224: Line 224:
 
}
 
}
 
 
return {idx: idx, data: data, display: disp};
+
return {idx: (idx + 1) % stages.length, data: data, display: disp};
 
}
 
}
 
 

Revision as of 14:27, 26 August 2016

CryptoGE®M
Team
Project
Biology
Computing
Human Practice
Acknowledgements

SpyGEM coding

Encryption


Enter the message you want to secure here

Message

Key

Enter your secret key/password here


Plain text


Oop top