# Decrypting Vanitygen Protected Key

I've used Vanitygen to generate a vanity Bitcoin address. I used the "-e" option to encrypt the private key. What I can't figure out is how to decrypt the protected key that was provided after generating the vanity address, nor can I find the encryption method used.

Is there a utility, library or program that I can use to decrypt the protected key in order to access the private key?

Buried in the bitcointalk.org forums I found this answer.

Use the keyconv binary file that is included, with the protected/encrypted key as the only argument:

keyconv [Protected Key Here]


This will spit out the unencrypted private key. It isn't documented anywhere other than this forum post:

https://bitcointalk.org/index.php?topic=25804.msg2107686;topicseen#msg2107686

I have found a couple of implementations that should help you to decipher the protKey: