The private key of an owned Ethereum account is encrypted with a password and kept in a so-called key file. How can I change this password?

  • 1
    Depends on the client you are using, geth? – Afr Jun 20 '16 at 13:43
  • You cannot change it. Create a new account and transfer the fund from old account to new account. – yoregis Jun 20 '16 at 13:43
  • @5chdn I usually use geth / Mist, but can use any other tool if that helps. – Paweł Bylica Jun 20 '16 at 13:52
  • 1
    @yoregis You suggestion is very restrictive. What if your address has some privileges, assets or tokens assigned to it? – Paweł Bylica Jun 20 '16 at 13:52
  • 2
    yes, you're right. I will try this for geth, concerning updating an account github.com/ethereum/go-ethereum/wiki/… – yoregis Jun 20 '16 at 14:04

Simply use geth as indicated in the github wiki:

Account update

$ geth account update a94f5374fce5edbc8e2a8697c15331677e6ebf0b
Unlocking account a94f5374fce5edbc8e2a8697c15331677e6ebf0b | Attempt 1/3
Account 'a94f5374fce5edbc8e2a8697c15331677e6ebf0b' unlocked.
Please give a new password. Do not forget this password.
Repeat Passphrase:
  • If I forget the passphrase but I have the keystore file, is there any way to recover the passphrase? – Ramesh Pareek Apr 7 '18 at 13:45
  • @RameshPareek non, sorry. – Nicolas Massart Apr 7 '18 at 17:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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