X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=bip39-standalone.html;h=3b4f0f27de389dab22a7e9812380e3754fc69abd;hb=53aaab270d7031a05ffe66f424529ea84534fb40;hp=ca18ea8b609890fc6e2f706a02e07df8a29fb64d;hpb=0a1f0259d1cfe5217ca9c08f7fbd371a03703594;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/bip39-standalone.html b/bip39-standalone.html index ca18ea8..3b4f0f2 100644 --- a/bip39-standalone.html +++ b/bip39-standalone.html @@ -521,6 +521,14 @@ random enough for the needs of this tool.

+

+ Do not store entropy. +

+

+ Storing entropy (such as keeping a deck of cards in a specific shuffled order) is unreliable compared to storing a mnemonic. + Instead of storing entropy, store the mnemonic generated from the entropy. + Steganography may be beneficial when storing the mnemonic. +

The random mnemonic generator on this page uses a @@ -18584,15 +18592,12 @@ window.Entropy = new (function() { // Create a normalized string of the selected cards var normalizedCards = cards.join("").toUpperCase(); // Convert to binary using the SHA256 hash of the normalized cards. - // If the number of bits is more than 256, multiple rounds of hashing + // If the number of bits is more than 256, multiple hashes // are used until the required number of bits is reached. var entropyBin = ""; var iterations = 0; while (entropyBin.length < numberOfBits) { - var hashedCards = sjcl.hash.sha256.hash(normalizedCards); - for (var j=0; j 0) { + var generation = generationProcesses.shift(); + generation.stop(); + } } function clearKey() { @@ -19287,6 +19319,9 @@ window.Entropy = new (function() { var closestWord = words[0]; for (var i=0; i