<p>There is no such way to do that. Bitcoin Core does not support BIP 38 for private key encryption so you cannot export nor import an encrypted private key.</p>

CC BY-SA 3.0
2017-09-12T05:11:13.747Z
So how bitcoin Wallet available in market achieve this type of functionality as when I try to import my private key it ask for password ?
Phreak
CC BY-SA 3.0
2017-09-12T16:12:15.470Z
Those wallets implement the BIP 38 standard for private key encryption. Bitcoin Core does not. BIP 38 is not a consensus rule, just a wallet implementation thing, so wallets can choose to use it or not.
Ava Chow
CC BY-SA 3.0
2017-09-11T23:10:26.163Z
2017-09-12T16:11:37.327Z
2017-09-12T16:11:37.327Z
Ava Chow
<p>Hi I need to know the command which is used to generate encrypted bitcoin private key from bitcoin-cli (for a bitcoin address) so in future when that private key is used for import address in any application it ask for password also ?</p>

<bitcoind><client><bitcoin-cli>
Encrypted bitcoin private key from bitcoin-cli
Phreak
# Encrypted bitcoin private key from bitcoin-cli

(Asked by: username_0 on 2017-09-11)

Hi I need to know the command which is used to generate encrypted bitcoin private key from bitcoin-cli (for a bitcoin address) so in future when that private key is used for import address in any application it ask for password also ?

**Tags:** bitcoind, client, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2017-09-11. Score: 3

There is no such way to do that. Bitcoin Core does not support BIP 38 for private key encryption so you cannot export nor import an encrypted private key.

> **Comments:**
> **username_0**: So how bitcoin Wallet available in market achieve this type of functionality as when I try to import my private key it ask for password ?  
> **username_1**: Those wallets implement the BIP 38 standard for private key encryption. Bitcoin Core does not. BIP 38 is not a consensus rule, just a wallet implementation thing, so wallets can choose to use it or not.  

---

