Use shorter keys

This commit is contained in:
Alan Friedman 2016-01-11 13:26:26 -05:00
parent 0354d6a61b
commit 45325e80cf

View File

@ -262,7 +262,7 @@ $(function() {
}); });
$genKey.click(function () { $genKey.click(function () {
var key = CryptoJS.SHA3(Math.random().toString(36).substring(7)).toString(); var key = (Math.random() * Math.random()).toString(36).substring(7);
$key.val(key); $key.val(key);
}); });
@ -277,7 +277,7 @@ $(function() {
connected = true; connected = true;
addParticipantsMessage(data); addParticipantsMessage(data);
var key = CryptoJS.SHA3(Math.random().toString(36).substring(7)).toString(); var key = (Math.random() * Math.random()).toString(36).substring(7);
if (data.numUsers > 1) { if (data.numUsers > 1) {
$('#join-modal').modal('show'); $('#join-modal').modal('show');