Line 37: | Line 37: | ||
</head> | </head> | ||
<body> | <body> | ||
− | < | + | <h2>Encryption</h2> |
<hr /> | <hr /> | ||
Line 46: | Line 46: | ||
</div> | </div> | ||
<div id="cnt-message"> | <div id="cnt-message"> | ||
− | < | + | <h3>Message</h3> |
<textarea id="msg">Hello world</textarea> | <textarea id="msg">Hello world</textarea> | ||
</div> | </div> | ||
<div id="cnt-key"> | <div id="cnt-key"> | ||
− | < | + | <h3>Key</h3> |
<textarea id="key">secret</textarea> | <textarea id="key">secret</textarea> | ||
Line 69: | Line 69: | ||
<div id="cnt-transform"> | <div id="cnt-transform"> | ||
− | < | + | <h3 id="cur">Plain text</h3> |
<textarea id="enc"></textarea> | <textarea id="enc"></textarea> | ||
Line 116: | Line 116: | ||
elStage = document.getElementById('stage'); | elStage = document.getElementById('stage'); | ||
− | var | + | var cryptBits = 256, stages = [ |
− | + | ||
{name: "Plain text", description: "A message that has not "+ | {name: "Plain text", description: "A message that has not "+ | ||
"been encrypted is called 'plain text'. The first "+ | "been encrypted is called 'plain text'. The first "+ | ||
Line 205: | Line 204: | ||
], current; | ], current; | ||
− | + | var stg = new Stager(stages, elCur, elDesc, elEnc, elKey); | |
− | + | stg.init(elMsg, elStage); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> | ||
{{Groningen/footer}} | {{Groningen/footer}} |
Revision as of 13:00, 3 October 2016
Encryption
Enter the message you want to secure here
Message
Key
Enter your secret key/password here