diff options
-rw-r--r-- | src/js/entropy.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/js/entropy.js b/src/js/entropy.js index cf981ff..db4051b 100644 --- a/src/js/entropy.js +++ b/src/js/entropy.js | |||
@@ -143,6 +143,13 @@ window.Entropy = new (function() { | |||
143 | // Convert entropy to different formats | 143 | // Convert entropy to different formats |
144 | var entropyBin = binLeadingZeros + entropyInt.toString(2); | 144 | var entropyBin = binLeadingZeros + entropyInt.toString(2); |
145 | var entropyClean = base.parts.join(""); | 145 | var entropyClean = base.parts.join(""); |
146 | if (base.asInt == 52) { | ||
147 | entropyClean = base.parts.join(" ").toUpperCase(); | ||
148 | entropyClean = entropyClean.replace(/C/g, "\u2663"); | ||
149 | entropyClean = entropyClean.replace(/D/g, "\u2666"); | ||
150 | entropyClean = entropyClean.replace(/H/g, "\u2665"); | ||
151 | entropyClean = entropyClean.replace(/S/g, "\u2660"); | ||
152 | } | ||
146 | var e = { | 153 | var e = { |
147 | binaryStr: entropyBin, | 154 | binaryStr: entropyBin, |
148 | cleanStr: entropyClean, | 155 | cleanStr: entropyClean, |