diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2017-06-20 11:00:01 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2017-06-20 11:00:01 +1000 |
commit | f1e5d48491562ae58926467da4e4c4b81b62a0f3 (patch) | |
tree | 22c854efb49a511cdd9bbe36df4d83074c45198a | |
parent | fe81f9b320b47527c4b6ea3da13e73013921e90e (diff) | |
download | BIP39-f1e5d48491562ae58926467da4e4c4b81b62a0f3.tar.gz BIP39-f1e5d48491562ae58926467da4e4c4b81b62a0f3.tar.zst BIP39-f1e5d48491562ae58926467da4e4c4b81b62a0f3.zip |
Release v0.1.1
-rw-r--r-- | bip39-standalone.html | 46 | ||||
-rw-r--r-- | changelog.md | 5 | ||||
-rw-r--r-- | src/index.html | 2 |
3 files changed, 18 insertions, 35 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html index dd397ac..d3a8d33 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html | |||
@@ -118,7 +118,7 @@ | |||
118 | <div class="container"> | 118 | <div class="container"> |
119 | 119 | ||
120 | <h1 class="text-center">Mnemonic Code Converter</h1> | 120 | <h1 class="text-center">Mnemonic Code Converter</h1> |
121 | <p class="version">v0.1.0</p> | 121 | <p class="version">v0.1.1</p> |
122 | <hr> | 122 | <hr> |
123 | <div class="row"> | 123 | <div class="row"> |
124 | <div class="col-md-12"> | 124 | <div class="col-md-12"> |
@@ -169,8 +169,8 @@ | |||
169 | <div class="col-sm-7"> | 169 | <div class="col-sm-7"> |
170 | <textarea id="entropy" rows="2" class="entropy form-control" placeholder="Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards" data-translate-placeholder></textarea> | 170 | <textarea id="entropy" rows="2" class="entropy form-control" placeholder="Accepts binary, base 6, 6-sided dice, base 10, hexadecimal, cards" data-translate-placeholder></textarea> |
171 | <div class="row"> | 171 | <div class="row"> |
172 | <label class="col-sm-3 control-label" data-translate>Strength</label> | 172 | <label class="col-sm-3 control-label" data-translate><span class="more-info" data-translate-title title="Based on estimates from zxcvbn using Filtered Entropy">Time To Crack</span></label> |
173 | <div class="strength col-sm-3 form-control-static"></div> | 173 | <div class="crack-time col-sm-3 form-control-static"></div> |
174 | <label class="col-sm-3 control-label" data-translate>Event Count</label> | 174 | <label class="col-sm-3 control-label" data-translate>Event Count</label> |
175 | <div class="event-count col-sm-3 form-control-static"></div> | 175 | <div class="event-count col-sm-3 form-control-static"></div> |
176 | </div> | 176 | </div> |
@@ -181,7 +181,7 @@ | |||
181 | <div class="bits-per-event col-sm-3 form-control-static"></div> | 181 | <div class="bits-per-event col-sm-3 form-control-static"></div> |
182 | </div> | 182 | </div> |
183 | <div class="row"> | 183 | <div class="row"> |
184 | <label class="col-sm-3 control-label" data-translate>Word Count</label> | 184 | <label class="col-sm-3 control-label" data-translate>Raw Entropy Words</label> |
185 | <div class="word-count col-sm-3 form-control-static"></div> | 185 | <div class="word-count col-sm-3 form-control-static"></div> |
186 | <label class="col-sm-3 control-label" data-translate><span class="more-info" data-translate-title title="Total bits of entropy may be less than indicated if any entropy event uses a weak source.">Total Bits</span></label> | 186 | <label class="col-sm-3 control-label" data-translate><span class="more-info" data-translate-title title="Total bits of entropy may be less than indicated if any entropy event uses a weak source.">Total Bits</span></label> |
187 | <div class="bits col-sm-3 form-control-static"></div> | 187 | <div class="bits col-sm-3 form-control-static"></div> |
@@ -43764,7 +43764,7 @@ window.Entropy = new (function() { | |||
43764 | DOM.entropy = $(".entropy"); | 43764 | DOM.entropy = $(".entropy"); |
43765 | DOM.entropyFiltered = DOM.entropyContainer.find(".filtered"); | 43765 | DOM.entropyFiltered = DOM.entropyContainer.find(".filtered"); |
43766 | DOM.entropyType = DOM.entropyContainer.find(".type"); | 43766 | DOM.entropyType = DOM.entropyContainer.find(".type"); |
43767 | DOM.entropyStrength = DOM.entropyContainer.find(".strength"); | 43767 | DOM.entropyCrackTime = DOM.entropyContainer.find(".crack-time"); |
43768 | DOM.entropyEventCount = DOM.entropyContainer.find(".event-count"); | 43768 | DOM.entropyEventCount = DOM.entropyContainer.find(".event-count"); |
43769 | DOM.entropyBits = DOM.entropyContainer.find(".bits"); | 43769 | DOM.entropyBits = DOM.entropyContainer.find(".bits"); |
43770 | DOM.entropyBitsPerEvent = DOM.entropyContainer.find(".bits-per-event"); | 43770 | DOM.entropyBitsPerEvent = DOM.entropyContainer.find(".bits-per-event"); |
@@ -44649,7 +44649,7 @@ window.Entropy = new (function() { | |||
44649 | } | 44649 | } |
44650 | 44650 | ||
44651 | function clearEntropyFeedback() { | 44651 | function clearEntropyFeedback() { |
44652 | DOM.entropyStrength.text("..."); | 44652 | DOM.entropyCrackTime.text("..."); |
44653 | DOM.entropyType.text(""); | 44653 | DOM.entropyType.text(""); |
44654 | DOM.entropyWordCount.text("0"); | 44654 | DOM.entropyWordCount.text("0"); |
44655 | DOM.entropyEventCount.text("0"); | 44655 | DOM.entropyEventCount.text("0"); |
@@ -44661,37 +44661,15 @@ window.Entropy = new (function() { | |||
44661 | 44661 | ||
44662 | function showEntropyFeedback(entropy) { | 44662 | function showEntropyFeedback(entropy) { |
44663 | var numberOfBits = entropy.binaryStr.length; | 44663 | var numberOfBits = entropy.binaryStr.length; |
44664 | var strength = "extremely weak"; | 44664 | var timeToCrack = "unknown"; |
44665 | if (numberOfBits >= 64) { | ||
44666 | strength = "very weak"; | ||
44667 | } | ||
44668 | if (numberOfBits >= 96) { | ||
44669 | strength = "weak"; | ||
44670 | } | ||
44671 | if (numberOfBits >= 128) { | ||
44672 | strength = "strong"; | ||
44673 | } | ||
44674 | if (numberOfBits >= 160) { | ||
44675 | strength = "very strong"; | ||
44676 | } | ||
44677 | if (numberOfBits >= 192) { | ||
44678 | strength = "extremely strong"; | ||
44679 | } | ||
44680 | // If time to crack is less than one day, and password is considered | ||
44681 | // strong or better based on the number of bits, rename strength to | ||
44682 | // 'easily cracked'. | ||
44683 | try { | 44665 | try { |
44684 | var z = zxcvbn(entropy.base.parts.join("")); | 44666 | var z = zxcvbn(entropy.base.parts.join("")); |
44685 | var timeToCrack = z.crack_times_seconds.offline_fast_hashing_1e10_per_second; | 44667 | timeToCrack = z.crack_times_display.offline_fast_hashing_1e10_per_second; |
44686 | if (timeToCrack < 86400 && entropy.binaryStr.length >= 128) { | 44668 | if (z.feedback.warning != "") { |
44687 | strength = "easily cracked"; | 44669 | timeToCrack = timeToCrack + " - " + z.feedback.warning; |
44688 | if (z.feedback.warning != "") { | 44670 | }; |
44689 | strength = strength + " - " + z.feedback.warning; | ||
44690 | }; | ||
44691 | } | ||
44692 | } | 44671 | } |
44693 | catch (e) { | 44672 | catch (e) { |
44694 | strength = "unknown"; | ||
44695 | console.log("Error detecting entropy strength with zxcvbn:"); | 44673 | console.log("Error detecting entropy strength with zxcvbn:"); |
44696 | console.log(e); | 44674 | console.log(e); |
44697 | } | 44675 | } |
@@ -44700,7 +44678,7 @@ window.Entropy = new (function() { | |||
44700 | var bitsPerEvent = entropy.bitsPerEvent.toFixed(2); | 44678 | var bitsPerEvent = entropy.bitsPerEvent.toFixed(2); |
44701 | DOM.entropyFiltered.html(entropy.cleanHtml); | 44679 | DOM.entropyFiltered.html(entropy.cleanHtml); |
44702 | DOM.entropyType.text(entropyTypeStr); | 44680 | DOM.entropyType.text(entropyTypeStr); |
44703 | DOM.entropyStrength.text(strength); | 44681 | DOM.entropyCrackTime.text(timeToCrack); |
44704 | DOM.entropyEventCount.text(entropy.base.ints.length); | 44682 | DOM.entropyEventCount.text(entropy.base.ints.length); |
44705 | DOM.entropyBits.text(numberOfBits); | 44683 | DOM.entropyBits.text(numberOfBits); |
44706 | DOM.entropyWordCount.text(wordCount); | 44684 | DOM.entropyWordCount.text(wordCount); |
diff --git a/changelog.md b/changelog.md index aa91183..e99afd3 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -1,3 +1,8 @@ | |||
1 | # 0.1.1 | ||
2 | |||
3 | * Add DASH Testnet | ||
4 | * Change entropy Strength to Time To Crack | ||
5 | |||
1 | # 0.1.0 2017-06-14 | 6 | # 0.1.0 2017-06-14 |
2 | 7 | ||
3 | * Add changelog | 8 | * Add changelog |
diff --git a/src/index.html b/src/index.html index 668e588..8fc68f1 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -114,7 +114,7 @@ | |||
114 | <div class="container"> | 114 | <div class="container"> |
115 | 115 | ||
116 | <h1 class="text-center">Mnemonic Code Converter</h1> | 116 | <h1 class="text-center">Mnemonic Code Converter</h1> |
117 | <p class="version">v0.1.0</p> | 117 | <p class="version">v0.1.1</p> |
118 | <hr> | 118 | <hr> |
119 | <div class="row"> | 119 | <div class="row"> |
120 | <div class="col-md-12"> | 120 | <div class="col-md-12"> |