From 76704bfce2c6f854e6c38f6fa72d00f6f2b5ce4f Mon Sep 17 00:00:00 2001 From: pointbiz Date: Fri, 10 Jan 2014 18:53:31 -0400 Subject: [PATCH] v2.7.6 increase seed pool size. show seed pool while moving mouse. add textbox for keyboard entropy. do not generate address without human added entropy. browser fingerprint entropy added to seed pool starting in a random position. whole seed pool initialized with getRandomValues. --- bitaddress.org.html | 56 +++++++++++++++++++++--------------------- src/bitaddress-ui.html | 10 +++++--- src/main.css | 5 ++-- src/ninja.misc.js | 30 +++++++++++----------- src/ninja.onload.js | 5 +--- src/securerandom.js | 8 +++--- 6 files changed, 57 insertions(+), 57 deletions(-) diff --git a/bitaddress.org.html b/bitaddress.org.html index fdc79c8..9304629 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -1508,7 +1508,7 @@ if (typeof Crypto == "undefined" || !Crypto.util) { // Pool size must be a multiple of 4 and greater than 32. // An array of bytes the size of the pool will be passed to init() - sr.poolSize = 256; + sr.poolSize = 512; // --- object methods --- @@ -1620,12 +1620,12 @@ if (typeof Crypto == "undefined" || !Crypto.util) { sr.pool = new Array(); sr.pptr = 0; var t; - if (window.crypto && window.crypto.getRandomValues) { + if (window.crypto && window.crypto.getRandomValues && window.Uint8Array) { try { // Use webcrypto if available - var ua = new Uint8Array(32); + var ua = new Uint8Array(sr.poolSize); window.crypto.getRandomValues(ua); - for (t = 0; t < 32; ++t) + for (t = 0; t < sr.poolSize; ++t) sr.pool[sr.pptr++] = ua[t]; } catch (e) { alert(e); } } @@ -5789,6 +5789,9 @@ body { font-family: Arial; } #btcaddress, #btcprivwif, #detailaddress, #detailaddresscomp, #detailprivwif, #detailprivwifcomp { font-family: monospace; font-size: 1.25em; } #seedpoolarea { display: none; } +#seedpooldisplay { font-family: monospace; font-size: 0.75em; width: 600px; padding: 10px; word-wrap: break-word; } +#generate { font-family: monospace; font-size: 1.25em; height: 275px; text-align: left; position: relative; padding: 5px; border: 2px solid green; } +#generate span { padding: 5px 5px 0 5px; } #keyarea { height: 250px; } #keyarea .pubaddress { float: none; display: block; padding: 0; height: auto; } #keyarea .label { text-decoration: none; } @@ -5804,8 +5807,6 @@ body { font-family: Arial; } #main { position: relative; text-align: center; margin: 0px auto; width: 1005px; } #logo { width: 578px; height: 80px; } -#generate { font-family: monospace; font-size: 1.25em; height: 158px; text-align: left; position: relative; padding: 5px; border: 2px solid green; } -#generate span { padding: 5px 5px 0 5px; } #paperarea { min-height: 120px; display: none; } #paperarea .keyarea { border: 2px solid green; border-top: 0; } @@ -5958,7 +5959,7 @@ body { font-family: Arial; } } - +
@@ -5971,7 +5972,7 @@ body { font-family: Arial; }
Open Source JavaScript Client-Side Bitcoin Wallet Generator
-
+