aboutsummaryrefslogtreecommitdiff
path: root/src/js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js')
-rw-r--r--src/js/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/js/index.js b/src/js/index.js
index 1707b16..b36e992 100644
--- a/src/js/index.js
+++ b/src/js/index.js
@@ -1225,13 +1225,14 @@
1225 var entropyTypeStr = getEntropyTypeStr(entropy); 1225 var entropyTypeStr = getEntropyTypeStr(entropy);
1226 var wordCount = Math.floor(numberOfBits / 32) * 3; 1226 var wordCount = Math.floor(numberOfBits / 32) * 3;
1227 var bitsPerEvent = entropy.bitsPerEvent.toFixed(2); 1227 var bitsPerEvent = entropy.bitsPerEvent.toFixed(2);
1228 var spacedBinaryStr = entropy.binaryStr.match(/.{1,11}/g).join(" " );
1228 DOM.entropyFiltered.html(entropy.cleanHtml); 1229 DOM.entropyFiltered.html(entropy.cleanHtml);
1229 DOM.entropyType.text(entropyTypeStr); 1230 DOM.entropyType.text(entropyTypeStr);
1230 DOM.entropyCrackTime.text(timeToCrack); 1231 DOM.entropyCrackTime.text(timeToCrack);
1231 DOM.entropyEventCount.text(entropy.base.ints.length); 1232 DOM.entropyEventCount.text(entropy.base.ints.length);
1232 DOM.entropyBits.text(numberOfBits); 1233 DOM.entropyBits.text(numberOfBits);
1233 DOM.entropyWordCount.text(wordCount); 1234 DOM.entropyWordCount.text(wordCount);
1234 DOM.entropyBinary.text(entropy.binaryStr); 1235 DOM.entropyBinary.text(spacedBinaryStr);
1235 DOM.entropyBitsPerEvent.text(bitsPerEvent); 1236 DOM.entropyBitsPerEvent.text(bitsPerEvent);
1236 // detect and warn of filtering 1237 // detect and warn of filtering
1237 var rawNoSpaces = DOM.entropy.val().replace(/\s/g, ""); 1238 var rawNoSpaces = DOM.entropy.val().replace(/\s/g, "");