Bitcoin Forum
May 17, 2024, 12:19:41 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How to use BIP38 to encrypt a pre-determined private key?  (Read 1229 times)
chriswilmer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile WWW
November 26, 2013, 01:37:53 AM
 #1

Sorry if this has been discussed previously, I couldn't find it.

I downloaded Mike Caldwell's Bitcoin utility... but I can't figure out how to input a private key and then encrypt it according the BIP38 protocol. Does anyone here know how to do this?

-Chris
dserrano5
Legendary
*
Offline Offline

Activity: 1974
Merit: 1029



View Profile
November 26, 2013, 08:13:56 AM
 #2

I downloaded Mike Caldwell's Bitcoin utility... but I can't figure out how to input a private key and then encrypt it according the BIP38 protocol. Does anyone here know how to do this?

You can use http://bit2factor.org or pybrainwallet.
chriswilmer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile WWW
November 26, 2013, 04:38:22 PM
 #3

Aha! Perfectomungo!
agent13
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
November 27, 2013, 02:28:38 AM
 #4



bit2factor.org looks interesting for encrypting prior keys. Is it considered safe and who wrote it? There is a random element to the BIP38 process, so the output is always different.
chriswilmer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile WWW
November 27, 2013, 04:11:25 AM
 #5

The output is always the same if you supply a private key. I tested it.
agent13
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
November 27, 2013, 06:26:29 AM
 #6

The output is always the same if you supply a private key. I tested it.

Enter the same private key and passphrase into bitaddress and bit2factor. You will get a different result, but they both produce the same unencrypted result.

chriswilmer (OP)
Legendary
*
Offline Offline

Activity: 1008
Merit: 1000


View Profile WWW
November 27, 2013, 10:42:12 AM
 #7

The output is always the same if you supply a private key. I tested it.

Enter the same private key and passphrase into bitaddress and bit2factor. You will get a different result, but they both produce the same unencrypted result.



Ah, OK. I meant that I got the same result on bit2factor when I hit "generate" repeatedly with the same private key and passphrase. Thanks for clarifying, good to know.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!