Bitcoin Forum
November 12, 2024, 03:06:21 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do I find a private key in encrypted form in Bitcoin Core?  (Read 855 times)
Abiky (OP)
Legendary
*
Offline Offline

Activity: 3374
Merit: 1407


www.Crypto.Games: Multiple coins, multiple games


View Profile
January 20, 2017, 09:36:54 PM
 #1

I know that it is possible to create encrypted paper wallets on a paper generator like Bitaddress.org and obtain the private key in encrypted form on there.

However, when it comes to getting an encrypted private key from my Bitcoin Core wallet, it only appears as a normal private key which can only be obtained by unlocking the wallet with your passphrase.

I only want to extract the encrypted private key (BIP 38) from Bitcoin Core, instead of the normal one. How do I do that?

Any help would be greatly appreciated.  Wink

█████████████████████████
███████▄▄▀▀███▀▀▄▄███████
████████▄███▄████████
█████▄▄█▀▀███▀▀█▄▄█████
████▀▀██▀██████▀██▀▀████
████▄█████████████▄████
███████▀███████▀███████
████▀█████████████▀████
████▄▄██▄████▄██▄▄████
█████▀▀███▀▄████▀▀█████
████████▀███▀████████
███████▀▀▄▄███▄▄▀▀███████
█████████████████████████
.
 CRYPTOGAMES 
.
 Catch the winning spirit! 
█▄░▀███▌░▄
███▄░▀█░▐██▄
▀▀▀▀▀░░░▀▀▀▀▀
████▌░▐█████▀
████░░█████
███▌░▐███▀
███░░███
██▌░▐█▀
PROGRESSIVE
      JACKPOT      
██░░▄▄
▀▀░░████▄
▄▄▄▄██▀░░▄▄
░░░▀▀█░░▀██▄
███▄░░▀▄░█▀▀
█████░░█░░▄▄█
█████░░██████
█████░░█░░▀▀█
LOW HOUSE
         EDGE         
██▄
███░░░░░░░▄▄
█▀░░░░░░░████
█▄░░░░░░░░█▀
██▄░░░░░░▄█
███▄▄░░▄██▌
██████████
█████████▌
PREMIUM VIP
 MEMBERSHIP 
DICE   ROULETTE   BLACKJACK   KENO   MINESWEEPER   VIDEO POKER   PLINKO   SLOT   LOTTERY
LoyceV
Legendary
*
Offline Offline

Activity: 3486
Merit: 17667


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
January 20, 2017, 09:40:00 PM
 #2

You can't. Bitcoin Core doesn't use BIP 38 encryption, it encrypts the wallet (see here for details, although you don't need this to answer your question).

What you can do, is BIP-38 encrypt that unencrypted private key. You can do this using bitaddress.org (download and use offline).
But if you take the address from Bitcoin Core, you are using a hot address to create an encrypted backup, which normally defeats the purpose of encrypting it. If your PC would get compromised, it's still not safe as long as Bitcoin Core has the same private key.

▄▄███████████████████▄▄
▄█████████▀█████████████▄
███████████▄▐▀▄██████████
███████▀▀███████▀▀███████
██████▀███▄▄████████████
█████████▐█████████▐█████
█████████▐█████████▐█████
██████████▀███▀███▄██████
████████████████▄▄███████
███████████▄▄▄███████████
█████████████████████████
▀█████▄▄████████████████▀
▀▀███████████████████▀▀
Peach
BTC bitcoin
Buy and Sell
Bitcoin P2P
.
.
▄▄███████▄▄
▄████████
██████▄
▄██
█████████████████▄
▄███████
██████████████▄
███████████████████████
█████████████████████████
████████████████████████
█████████████████████████
▀███████████████████████▀
▀█████████████████████▀
▀██████████████████▀
▀███████████████▀
▀▀███████▀▀

▀▀▀▀███▀▀▀▀
EUROPE | AFRICA
LATIN AMERICA
▄▀▀▀











▀▄▄▄


███████▄█
███████▀
██▄▄▄▄▄░▄▄▄▄▄
████████████▀
▐███████████▌
▐███████████▌
████████████▄
██████████████
███▀███▀▀███▀
.
Download on the
App Store
▀▀▀▄











▄▄▄▀
▄▀▀▀











▀▄▄▄


▄██▄
██████▄
█████████▄
████████████▄
███████████████
████████████▀
█████████▀
██████▀
▀██▀
.
GET IT ON
Google Play
▀▀▀▄











▄▄▄▀
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1540


No I dont escrow anymore.


View Profile
January 20, 2017, 09:40:13 PM
 #3

Export the private key and encrypt it using BIP 38. This is not a build-in feature of bitcoin core. It uses AES.

Im not really here, its just your imagination.
Abiky (OP)
Legendary
*
Offline Offline

Activity: 3374
Merit: 1407


www.Crypto.Games: Multiple coins, multiple games


View Profile
January 20, 2017, 09:56:05 PM
 #4

You can't. Bitcoin Core doesn't use BIP 38 encryption, it encrypts the wallet (see here for details, although you don't need this to answer your question).

What you can do, is BIP-38 encrypt that unencrypted private key. You can do this using bitaddress.org (download and use offline).
But if you take the address from Bitcoin Core, you are using a hot address to create an encrypted backup, which normally defeats the purpose of encrypting it. If your PC would get compromised, it's still not safe as long as Bitcoin Core has the same private key.

Export the private key and encrypt it using BIP 38. This is not a build-in feature of bitcoin core. It uses AES.

Thanks guys. I thought that it was straightforward to do it within Bitcoin Core, but still with this solution I will be able to encrypt it with BIP 38. Just wanted to know about this since I wanted to design my very own paper wallet based from a Bitcoin Core wallet.

By the way, do you think that implementing the wallet details within an NFC tag would be safe? Since the private key would be encrypted there should be no issue, right? Just asking this because I'm going to try a little experiment of redeeming my BTC from within an NFC tag.

Nevertheless, I appreciate your time and effort guys helping me with this. I always learn new stuff here at BCT everyday.  Smiley

█████████████████████████
███████▄▄▀▀███▀▀▄▄███████
████████▄███▄████████
█████▄▄█▀▀███▀▀█▄▄█████
████▀▀██▀██████▀██▀▀████
████▄█████████████▄████
███████▀███████▀███████
████▀█████████████▀████
████▄▄██▄████▄██▄▄████
█████▀▀███▀▄████▀▀█████
████████▀███▀████████
███████▀▀▄▄███▄▄▀▀███████
█████████████████████████
.
 CRYPTOGAMES 
.
 Catch the winning spirit! 
█▄░▀███▌░▄
███▄░▀█░▐██▄
▀▀▀▀▀░░░▀▀▀▀▀
████▌░▐█████▀
████░░█████
███▌░▐███▀
███░░███
██▌░▐█▀
PROGRESSIVE
      JACKPOT      
██░░▄▄
▀▀░░████▄
▄▄▄▄██▀░░▄▄
░░░▀▀█░░▀██▄
███▄░░▀▄░█▀▀
█████░░█░░▄▄█
█████░░██████
█████░░█░░▀▀█
LOW HOUSE
         EDGE         
██▄
███░░░░░░░▄▄
█▀░░░░░░░████
█▄░░░░░░░░█▀
██▄░░░░░░▄█
███▄▄░░▄██▌
██████████
█████████▌
PREMIUM VIP
 MEMBERSHIP 
DICE   ROULETTE   BLACKJACK   KENO   MINESWEEPER   VIDEO POKER   PLINKO   SLOT   LOTTERY
ranochigo
Legendary
*
Offline Offline

Activity: 3038
Merit: 4420


Crypto Swap Exchange


View Profile
January 21, 2017, 12:28:54 AM
 #5

Thanks guys. I thought that it was straightforward to do it within Bitcoin Core, but still with this solution I will be able to encrypt it with BIP 38. Just wanted to know about this since I wanted to design my very own paper wallet based from a Bitcoin Core wallet.

By the way, do you think that implementing the wallet details within an NFC tag would be safe? Since the private key would be encrypted there should be no issue, right? Just asking this because I'm going to try a little experiment of redeeming my BTC from within an NFC tag.

Nevertheless, I appreciate your time and effort guys helping me with this. I always learn new stuff here at BCT everyday.  Smiley
Yes, the NFC tag can relay information to the reader. BIP38 is by right, fairly hard to bruteforce if you have a long enough password.

How are you going to decrypt and spend the coins though? That is a small problem.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
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!