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 ?

1 Answer 1


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.

  • 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
    Commented Sep 12, 2017 at 5:11
  • 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
    Commented Sep 12, 2017 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.