diff options
author | Ian Coleman <coleman.ian@gmail.com> | 2017-09-20 11:39:06 +1000 |
---|---|---|
committer | Ian Coleman <coleman.ian@gmail.com> | 2017-09-20 11:39:06 +1000 |
commit | 9ff30babbc11c56be6d1df37448c4c3dc517fcb2 (patch) | |
tree | da2503ad64b42400571a5786c5f8ee62004ac0ec /bip39-standalone.html | |
parent | ee0981f1ecc4c6e78831f538ef77396c1e4fbe91 (diff) | |
download | BIP39-9ff30babbc11c56be6d1df37448c4c3dc517fcb2.tar.gz BIP39-9ff30babbc11c56be6d1df37448c4c3dc517fcb2.tar.zst BIP39-9ff30babbc11c56be6d1df37448c4c3dc517fcb2.zip |
Release v0.2.6
Diffstat (limited to 'bip39-standalone.html')
-rw-r--r-- | bip39-standalone.html | 22 |
1 files changed, 20 insertions, 2 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) { |