From f1e5d48491562ae58926467da4e4c4b81b62a0f3 Mon Sep 17 00:00:00 2001 From: Ian Coleman Date: Tue, 20 Jun 2017 11:00:01 +1000 Subject: [PATCH] Release v0.1.1 --- bip39-standalone.html | 46 +++++++++++-------------------------------- changelog.md | 5 +++++ 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 @@

Mnemonic Code Converter

-

v0.1.0

+

v0.1.1


@@ -169,8 +169,8 @@
- -
+ +
@@ -181,7 +181,7 @@
- +
@@ -43764,7 +43764,7 @@ window.Entropy = new (function() { DOM.entropy = $(".entropy"); DOM.entropyFiltered = DOM.entropyContainer.find(".filtered"); DOM.entropyType = DOM.entropyContainer.find(".type"); - DOM.entropyStrength = DOM.entropyContainer.find(".strength"); + DOM.entropyCrackTime = DOM.entropyContainer.find(".crack-time"); DOM.entropyEventCount = DOM.entropyContainer.find(".event-count"); DOM.entropyBits = DOM.entropyContainer.find(".bits"); DOM.entropyBitsPerEvent = DOM.entropyContainer.find(".bits-per-event"); @@ -44649,7 +44649,7 @@ window.Entropy = new (function() { } function clearEntropyFeedback() { - DOM.entropyStrength.text("..."); + DOM.entropyCrackTime.text("..."); DOM.entropyType.text(""); DOM.entropyWordCount.text("0"); DOM.entropyEventCount.text("0"); @@ -44661,37 +44661,15 @@ window.Entropy = new (function() { function showEntropyFeedback(entropy) { var numberOfBits = entropy.binaryStr.length; - var strength = "extremely weak"; - if (numberOfBits >= 64) { - strength = "very weak"; - } - if (numberOfBits >= 96) { - strength = "weak"; - } - if (numberOfBits >= 128) { - strength = "strong"; - } - if (numberOfBits >= 160) { - strength = "very strong"; - } - if (numberOfBits >= 192) { - strength = "extremely strong"; - } - // If time to crack is less than one day, and password is considered - // strong or better based on the number of bits, rename strength to - // 'easily cracked'. + var timeToCrack = "unknown"; try { var z = zxcvbn(entropy.base.parts.join("")); - var timeToCrack = z.crack_times_seconds.offline_fast_hashing_1e10_per_second; - if (timeToCrack < 86400 && entropy.binaryStr.length >= 128) { - strength = "easily cracked"; - if (z.feedback.warning != "") { - strength = strength + " - " + z.feedback.warning; - }; - } + timeToCrack = z.crack_times_display.offline_fast_hashing_1e10_per_second; + if (z.feedback.warning != "") { + timeToCrack = timeToCrack + " - " + z.feedback.warning; + }; } catch (e) { - strength = "unknown"; console.log("Error detecting entropy strength with zxcvbn:"); console.log(e); } @@ -44700,7 +44678,7 @@ window.Entropy = new (function() { var bitsPerEvent = entropy.bitsPerEvent.toFixed(2); DOM.entropyFiltered.html(entropy.cleanHtml); DOM.entropyType.text(entropyTypeStr); - DOM.entropyStrength.text(strength); + DOM.entropyCrackTime.text(timeToCrack); DOM.entropyEventCount.text(entropy.base.ints.length); DOM.entropyBits.text(numberOfBits); 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 @@ +# 0.1.1 + +* Add DASH Testnet +* Change entropy Strength to Time To Crack + # 0.1.0 2017-06-14 * 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 @@

Mnemonic Code Converter

-

v0.1.0

+

v0.1.1


-- 2.41.0