X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=bip39-standalone.html;h=2888d0349e6be943eaa317609592fb3e9781f9c7;hb=434caecd96740bbec488429026830b5ad24f628a;hp=ca18ea8b609890fc6e2f706a02e07df8a29fb64d;hpb=bf9bdfd20ff1997dc5c53ba5a25f6441b9edd3b7;p=perso%2FImmae%2FProjets%2FCryptomonnaies%2FBIP39.git diff --git a/bip39-standalone.html b/bip39-standalone.html index ca18ea8..2888d03 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