diff options
-rw-r--r-- | bip39-standalone.html | 22 | ||||
-rw-r--r-- | changelog.md | 10 | ||||
-rw-r--r-- | src/index.html | 2 |
3 files changed, 31 insertions, 3 deletions
diff --git a/bip39-standalone.html b/bip39-standalone.html index 5f2a8c0..b17cea6 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.2.5</p> | 121 | <p class="version">v0.2.6</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"> |
@@ -167,7 +167,14 @@ | |||
167 | <div class="form-group"> | 167 | <div class="form-group"> |
168 | <label for="entropy" class="col-sm-2 control-label" data-translate>Entropy</label> | 168 | <label for="entropy" class="col-sm-2 control-label" data-translate>Entropy</label> |
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 either binary, base 6, 6-sided dice, base 10, hexadecimal or cards" data-translate-placeholder></textarea> |
171 | <div class="row filter-warning text-danger hidden"> | ||
172 | <p class="col-sm-12"> | ||
173 | <strong> | ||
174 | Some characters have been discarded | ||
175 | </strong> | ||
176 | </p> | ||
177 | </div> | ||
171 | <div class="row"> | 178 | <div class="row"> |
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> | 179 | <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="crack-time col-sm-3 form-control-static"></div> | 180 | <div class="crack-time col-sm-3 form-control-static"></div> |
@@ -46167,6 +46174,7 @@ window.Entropy = new (function() { | |||
46167 | DOM.entropyWordCount = DOM.entropyContainer.find(".word-count"); | 46174 | DOM.entropyWordCount = DOM.entropyContainer.find(".word-count"); |
46168 | DOM.entropyBinary = DOM.entropyContainer.find(".binary"); | 46175 | DOM.entropyBinary = DOM.entropyContainer.find(".binary"); |
46169 | DOM.entropyMnemonicLength = DOM.entropyContainer.find(".mnemonic-length"); | 46176 | DOM.entropyMnemonicLength = DOM.entropyContainer.find(".mnemonic-length"); |
46177 | DOM.entropyFilterWarning = DOM.entropyContainer.find(".filter-warning"); | ||
46170 | DOM.phrase = $(".phrase"); | 46178 | DOM.phrase = $(".phrase"); |
46171 | DOM.passphrase = $(".passphrase"); | 46179 | DOM.passphrase = $(".passphrase"); |
46172 | DOM.generateContainer = $(".generate-container"); | 46180 | DOM.generateContainer = $(".generate-container"); |
@@ -47190,6 +47198,16 @@ window.Entropy = new (function() { | |||
47190 | DOM.entropyWordCount.text(wordCount); | 47198 | DOM.entropyWordCount.text(wordCount); |
47191 | DOM.entropyBinary.text(entropy.binaryStr); | 47199 | DOM.entropyBinary.text(entropy.binaryStr); |
47192 | DOM.entropyBitsPerEvent.text(bitsPerEvent); | 47200 | DOM.entropyBitsPerEvent.text(bitsPerEvent); |
47201 | // detect and warn of filtering | ||
47202 | var rawNoSpaces = DOM.entropy.val().replace(/\s/g, ""); | ||
47203 | var cleanNoSpaces = entropy.cleanStr.replace(/\s/g, ""); | ||
47204 | var isFiltered = rawNoSpaces.length != cleanNoSpaces.length; | ||
47205 | if (isFiltered) { | ||
47206 | DOM.entropyFilterWarning.removeClass('hidden'); | ||
47207 | } | ||
47208 | else { | ||
47209 | DOM.entropyFilterWarning.addClass('hidden'); | ||
47210 | } | ||
47193 | } | 47211 | } |
47194 | 47212 | ||
47195 | function getEntropyTypeStr(entropy) { | 47213 | function getEntropyTypeStr(entropy) { |
diff --git a/changelog.md b/changelog.md index 13ecc3c..a2ff24a 100644 --- a/changelog.md +++ b/changelog.md | |||
@@ -1,3 +1,13 @@ | |||
1 | # 0.2.6 | ||
2 | |||
3 | * Detect and warn when entropy is filtered / discarded | ||
4 | * Reword entropy text to indicate using a single source only | ||
5 | * Add BIP49 to More Info section | ||
6 | * Update compile script to work across python 2 and 3 | ||
7 | * QR Codes use correctLevel 3 instead of 2 | ||
8 | * Source map removed from zxcvbn | ||
9 | * Tidy up code with consistent use of commas and semicolons | ||
10 | |||
1 | # 0.2.5 | 11 | # 0.2.5 |
2 | 12 | ||
3 | * Rename variables for clarity between BIP49 and P2WPKH Nested In P2SH | 13 | * Rename variables for clarity between BIP49 and P2WPKH Nested In P2SH |
diff --git a/src/index.html b/src/index.html index 7507a35..18f2952 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.2.5</p> | 117 | <p class="version">v0.2.6</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"> |