Author

Topic: How to decrypt protkey from vanitygen (Read 2827 times)

full member
Activity: 168
Merit: 100
September 10, 2012, 05:03:24 PM
#8
I assumed this was the same as when you encrypt wallets or something and the wallet programs would let you put a protkey in, prompt for password and then save the privkey, but this doesn't appear that way.

I see.

None of the wallets are using that encryption method, as far as I know.

Here's a gist with a javascript decoder for that (I think, I've never used it nor have I reviewed it):

 - https://gist.github.com/1139867


Thanks!  I'll have to take a look at that one also!
full member
Activity: 168
Merit: 100
September 10, 2012, 05:02:36 PM
#7
Ok, I've been able to find the answer on my own.... If anyone else if having the same problem I hope my thread will assist them in finding the answer!

https://bitcointalksearch.org/topic/password-protected-private-key-export-format-36195

has a link to:

http://insight.gotdns.org/~samr7/pkprotect.html

and some information in both that thread and the source code which could be run locally on a computer not connected to the net
legendary
Activity: 2506
Merit: 1010
September 10, 2012, 05:01:25 PM
#6
I assumed this was the same as when you encrypt wallets or something and the wallet programs would let you put a protkey in, prompt for password and then save the privkey, but this doesn't appear that way.

I see.

None of the wallets are using that encryption method, as far as I know.

Here's a gist with a javascript decoder for that (I think, I've never used it nor have I reviewed it):

 - https://gist.github.com/1139867
full member
Activity: 168
Merit: 100
September 10, 2012, 04:14:58 PM
#5
how do you get the privkey from the passphrase 'wtf' and PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2 ?
full member
Activity: 168
Merit: 100
September 10, 2012, 04:13:05 PM
#4
Say I want to make a vanity address with wtf and I decide I want to be a little more secure when I do this so I have the program encrypt the privatekey with the ultra secure password 'wtf' and it finds my new cool vanity address and outputs like this:

You are confusing some terms.

The private key determines the Bitcoin address.    From your private key (PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2), software can determine what the resulting Bitcoin address is (1WtFgLCoA56syuVLbvzCNzooTrKEpqyA8).

But your address is not "private" or "secure" .. it is what is you give out to others to send bitcoins to you.  It is not kept secret.

Address: 1WtFgLCoA56syuVLbvzCNzooTrKEpqyA8
Protkey: PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2

Now how do I import that into a wallet?

If you are using the Bitcoin.org client:
 - http://en.bitcoin.it/wiki/Importprivkey  (Need to configure bitcoin.conf with RPCUser, password, and run bitcoind.)

If you are using a hybrid EWallet, like Blockchain.info/wallet:
Import /  Export -->  Import

I know my password is 'wtf' but none of the wallets online or desktop seem to ask me for it when I put in the protected key, they just error out?  How do I take my password and turn the protkey into privkey?

They don't need to ask you, the Bitcoin address can be determined once the Private Key is known.

Just to make sure this is clear ... now that you've revealed that specific private key publicly, don't import it as someone else surely has added it to their Mt. Gox account by now which will quickly sweep any funds sent to it to that users's Mt. Gox account.



I meant more secure as in the privkey is encrypted by the vanity program when I generate it, so I am not storing a copy of the privkey anywhere, I am storing the protkey which is an encrypted version of the privkey and needs the password 'wtf' in order to change that back into a privkey.

Sorry if my post was confusing, the PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2 isn't a private key, its an encrypted private key while using the vanitygen program.  I assumed this was the same as when you encrypt wallets or something and the wallet programs would let you put a protkey in, prompt for password and then save the privkey, but this doesn't appear that way.
legendary
Activity: 2506
Merit: 1010
September 10, 2012, 04:06:03 PM
#3
Say I want to make a vanity address with wtf and I decide I want to be a little more secure when I do this so I have the program encrypt the privatekey with the ultra secure password 'wtf' and it finds my new cool vanity address and outputs like this:

You are confusing some terms.

The private key determines the Bitcoin address.    From your private key (PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2), software can determine what the resulting Bitcoin address is (1WtFgLCoA56syuVLbvzCNzooTrKEpqyA8).

But your address is not "private" or "secure" .. it is what is you give out to others to send bitcoins to you.  It is not kept secret.

Address: 1WtFgLCoA56syuVLbvzCNzooTrKEpqyA8
Protkey: PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2

Now how do I import that into a wallet?

If you are using the Bitcoin.org client:
 - http://en.bitcoin.it/wiki/Importprivkey  (Need to configure bitcoin.conf with RPCUser, password, and run bitcoind.)

If you are using a hybrid EWallet, like Blockchain.info/wallet:
Import /  Export -->  Import Private Key

I know my password is 'wtf' but none of the wallets online or desktop seem to ask me for it when I put in the protected key, they just error out?  How do I take my password and turn the protkey into privkey?

They don't need to ask you, the Bitcoin address can be determined once the Private Key is known.

Just to make sure this is clear ... now that you've revealed that specific private key publicly, don't import it as someone else surely has added it to their Mt. Gox account by now which will quickly sweep any funds sent to it to that users's Mt. Gox account.
full member
Activity: 168
Merit: 100
September 10, 2012, 03:48:08 PM
#2
Did I post this on the wrong board?
full member
Activity: 168
Merit: 100
September 10, 2012, 03:21:25 PM
#1
So I have a big noob question....

Say I want to make a vanity address with wtf and I decide I want to be a little more secure when I do this so I have the program encrypt the privatekey with the ultra secure password 'wtf' and it finds my new cool vanity address and outputs like this:

Pattern: 1wtf
Address: 1WtFgLCoA56syuVLbvzCNzooTrKEpqyA8
Protkey: PsRUGbymw545hfYUAg5v8uNuVcxwtXWg646JkZ7nSm1dDRvHk5rTd8HrQv452ctz6fP2

Now how do I import that into a wallet?  I know my password is 'wtf' but none of the wallets online or desktop seem to ask me for it when I put in the protected key, they just error out?  How do I take my password and turn the protkey into privkey?
Jump to: