Bitcoin Forum
May 12, 2024, 01:48:34 AM *
News: Latest Bitcoin Core release: 27.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 839 times)
Abiky (OP)
Legendary
*
Offline Offline

Activity: 3192
Merit: 1362


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
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715478514
Hero Member
*
Offline Offline

Posts: 1715478514

View Profile Personal Message (Offline)

Ignore
1715478514
Reply with quote  #2

1715478514
Report to moderator
1715478514
Hero Member
*
Offline Offline

Posts: 1715478514

View Profile Personal Message (Offline)

Ignore
1715478514
Reply with quote  #2

1715478514
Report to moderator
LoyceV
Legendary
*
Offline Offline

Activity: 3304
Merit: 16637


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.

shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
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: 3192
Merit: 1362


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
*
Online Online

Activity: 2968
Merit: 4179



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.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
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!