Bitcoin Forum
May 26, 2024, 04:03:40 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help with Vanitygen, how decrypt private keys  (Read 679 times)
astralliam (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 03, 2017, 04:51:39 PM
 #1

I'm using vanity get with the -e switch (Encrypt private keys, prompt for password)

this is the output I get:


C:\Users\Ynysmon\Downloads\vanitygen-0.20-win (1)>oclvanitygen.exe -i -e 1AstrLshp
Difficulty: 790461358860
Enter new password:
Verifying - Enter new password:
Pattern: 1AstrLshp
Address: 1AStRLSHpGRbYFKxv2TJJmkZkUDmqurWwq
Protkey: PsTNSPvWJF8mNm2JVSnwsX9fSFymdvvXZxecSABwpXrnkHVfUQi4qt8ekDTcgCm7qBAf


nowhere does it say what to with the "Protkey". Presumably there is some straightfwd way to decrypt it. I know the password. How to decrypt so i can use the account?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3402
Merit: 6657


Just writing some code


View Profile WWW
October 03, 2017, 06:05:56 PM
 #2

There is no straightforward way to decrypt it because the decryption is not used anywhere (although implemented) in vanitygen. Just don't use the -e option and the private key will be in unencrypted form.

SM23031997
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 582


View Profile
October 03, 2017, 07:24:03 PM
 #3

Can I have the source code of the above mentioned vanitygen script?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
October 03, 2017, 07:32:33 PM
 #4

Can I have the source code of the above mentioned vanitygen script?

The source is here: https://github.com/samr7/vanitygen

From this site
SM23031997
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 582


View Profile
October 03, 2017, 08:03:52 PM
 #5

Use the code keyconv ENCRYPTED_KEY, it will ask you for the password, and return decrypted private key.

For your case it will be keyconv PsTNSPvWJF8mNm2JVSnwsX9fSFymdvvXZxecSABwpXrnkHVfUQi4qt8ekDTcgCm7qBAf
astralliam (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 05, 2017, 08:22:36 AM
 #6

Use the code keyconv ENCRYPTED_KEY, it will ask you for the password, and return decrypted private key.

For your case it will be keyconv PsTNSPvWJF8mNm2JVSnwsX9fSFymdvvXZxecSABwpXrnkHVfUQi4qt8ekDTcgCm7qBAf

can you elaborate what you mean by  keyconv ENCRYPTED_KEY?
SM23031997
Hero Member
*****
Offline Offline

Activity: 1092
Merit: 582


View Profile
October 05, 2017, 09:37:49 AM
 #7

C:\Users\Ynysmon\Downloads\vanitygen-0.20-win (1)>oclvanitygen.exe keyconv PsTNSPvWJF8mNm2JVSnwsX9fSFymdvvXZxecSABwpXrnkHVfUQi4qt8ekDTcgCm7qBAf
LoyceV
Legendary
*
Offline Offline

Activity: 3318
Merit: 16712


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
October 05, 2017, 02:36:13 PM
 #8

Interesting, after using vanitygen for a long time, I've never tried the encrypt-option.

C:\Users\Ynysmon\Downloads\vanitygen-0.20-win (1)>oclvanitygen.exe keyconv PsTNSPvWJF8mNm2JVSnwsX9fSFymdvvXZxecSABwpXrnkHVfUQi4qt8ekDTcgCm7qBAf
At least on Linux, keyconv is an executable on it's own. It doesn't work for me though:
Code:
ERROR: Unrecognized key format

@astralliam: I recommend to create a new private key, after posting the encrypted version online I wouldn't trust it anymore.

astralliam (OP)
Newbie
*
Offline Offline

Activity: 31
Merit: 0


View Profile
October 09, 2017, 05:52:59 PM
 #9

thanks both of you!

I made some changes to the PROT key just in case, maybe thats why it gave an error. i'll try it again... that is if i can still remember the password.... doh!
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!