Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: chriswilmer on November 26, 2013, 01:37:53 AM



Title: How to use BIP38 to encrypt a pre-determined private key?
Post by: chriswilmer on November 26, 2013, 01:37:53 AM
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


Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: dserrano5 on November 26, 2013, 08:13:56 AM
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 (https://bitcointalk.org/index.php?topic=311257.0).


Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: chriswilmer on November 26, 2013, 04:38:22 PM
Aha! Perfectomungo!


Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: agent13 on November 27, 2013, 02:28:38 AM


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.


Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: chriswilmer on November 27, 2013, 04:11:25 AM
The output is always the same if you supply a private key. I tested it.


Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: agent13 on November 27, 2013, 06:26:29 AM
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.



Title: Re: How to use BIP38 to encrypt a pre-determined private key?
Post by: chriswilmer on November 27, 2013, 10:42:12 AM
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.