This question already has an answer here:

I'm used ./geth command line for create address with command

./geth account new

and put password.

and after that system create keystore file.

  1. how to decrypt keystore file with my password for get privacy key with linux command line.
  2. i don't want to use myetherwallet.com

thank you for advanced.

marked as duplicate by Muhammad Altabba, Achala Dissanayake, mirg, Vignesh Karthikeyan, Richard Horrocks Jun 10 '18 at 19:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.


This can be done with web3py in python.

with open('path to you keyfile') as keyfile:
    encrypted_key = keyfile.read()
    private_key = w3.eth.account.decrypt(encrypted_key, 'your keyfile password')

Hope this helps

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