Bitcoin Forum
April 27, 2017, 06:52:23 PM *
News: If the forum does not load normally for you, please send me a traceroute.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Is generating a private key using /dev/random under Linux secure?  (Read 1564 times)
marksmith1020
Newbie
*
Offline Offline

Activity: 2


View Profile
July 20, 2012, 09:24:50 PM
 #1

Hi,
I'd like to generate a few bitcoin addresses for a paper wallet.
I tried www.bitaddress.org, it works fine but since I'm paranoid after reading this:
https://bitcointalk.org/index.php?topic=93129
 perhaps I should generate my own private key and use bitaddress.org offline only to generate the associated bitcoin address (public key).

I'm using linux.
How about this:
boot up a linux distro from an usb stick without going online.
move the mouse and type on the keyboard for a couple of mins to feed /dev/random with entropy
read 32 bytes (256bit) from /dev/random

for example:
head -c 32 /dev/random  | xxd

which dumps the 256bit sequence in hex format.
load the bitaddress.org javascript pre-stored on the usb stick.
go to the bitaddress.org page's Wallet Details and enter your private  key in hex format so that you get the associated public key (bitcoin address).
Write down on paper both public key and private key.
Turn off the computer.

Or should I take the output from /dev/random  and XOR it byte by byte with a long passphrase ? I guess if /dev/random works well then the additional XOR does not
add security.

Is there an alternative method to generate the public key (bitcoin address) from the private key by using a tool in C ? or by using the official bitcoin client?
If yes how?

Please let me know if the above method is regarded as very secure.

thanks for your suggestions,
Mark
1493319143
Hero Member
*
Offline Offline

Posts: 1493319143

View Profile Personal Message (Offline)

Ignore
1493319143
Reply with quote  #2

1493319143
Report to moderator
1493319143
Hero Member
*
Offline Offline

Posts: 1493319143

View Profile Personal Message (Offline)

Ignore
1493319143
Reply with quote  #2

1493319143
Report to moderator
1493319143
Hero Member
*
Offline Offline

Posts: 1493319143

View Profile Personal Message (Offline)

Ignore
1493319143
Reply with quote  #2

1493319143
Report to moderator
The forum strives to allow free discussion of any ideas. All policies are built around this principle. This doesn't mean you can post garbage, though: posts should actually contain ideas, and these ideas should be argued reasonably.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
mr_gant
Newbie
*
Offline Offline

Activity: 18


View Profile
July 21, 2012, 03:43:11 AM
 #2

What you're suggesting should be fine, but for some other options, see this article.
flipperfish
Sr. Member
****
Offline Offline

Activity: 323


Dolphie Selfie


View Profile
July 21, 2012, 01:36:08 PM
 #3

I think, as long as you can really be sure, that your private key never got through your network-connection to someone else, you are safe using some random bits (no matter how they are created, as long as they are random. 12345... is not random Wink)
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!