I have ethereum wallet and wish to check if some password was used to create it.
How this could be done?


You could check by starting a geth console and using the personal.unlockAccount function:

$ geth console
> personal.unlockAccount("address", "password")
  • Ummm so I unlocked it... Do I need to lock it again, and if so, how do I do it? – Kebman Aug 15 '17 at 21:26
  • 1
    The account should be automatically locked after few seconds. personal.unlockAccount(addr, passwd, duration) Unlock the account with the given address, password and an optional duration (in seconds). If password is not given you will be prompted for it. – Gotenks Aug 16 '17 at 10:36

It is possible with pyethsaletool:

./pyethsaletool recover -w your-wallet.json -p password

In case of password failure it will throw something like

ValueError: String ending with 'X' can't be PCKS7-padded

If password is valid, it will show your seed (long string of random characters).

Actually pyethsaletool uses supplied password to AES-decrypt encseed field from the wallet. This seed is SHA3-hashed to get private key and ethereum address which is compared to the one from the wallet.


You could use MyEtherWallet.com to check your password. Go to the "View Wallet Info" section and select your keystore file (the wallet file with .json at the end). Enter the right password. If it shows "Success! Here are your wallet details." you have the right password.

  • This looks like a scam. I advise anyone reading this to NOT upload your wallet file and give a website your password. – Jestin May 24 '17 at 18:15
  • 3
    No, MyEtherWallet.com is legit. You don't upload anything. It processes your keys client-side. If you don't trust it, you can download it from git and use your own copy locally: github.com/kvhnuke/etherwallet – Afr May 25 '17 at 17:37
  • 1
    @5chdn, thanks for the clarification. You have to admit, this looked very sketchy. – Jestin May 25 '17 at 19:23
  • @5chdn is right. I corrected the sloppy choice of words in my answer and replaced "upload" with "select". The file is not uploaded but processed client-side. – Sebastian Knopp May 26 '17 at 7:09

You can use the Parity Ethereum Wallet, it has a test password feature: parity.io. You can either use the parity_testPassword RPC call:

curl --data '{"method":"parity_testPassword","params":["0x407d73d8a49eeb85d32cf465507dd71d507100c1","hunter2"],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

Or use the graphical wallet interface and go to Accounts > Open the Account in question > Click password and chose "Test".

Disclosure: I work for Parity.

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