Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change the password web3j #418

Closed
githubityu opened this issue Mar 9, 2018 · 3 comments
Closed

change the password web3j #418

githubityu opened this issue Mar 9, 2018 · 3 comments

Comments

@githubityu
Copy link

How to through the secret key or mnemonic words change the password, I find for a long time, didn't find the corresponding API

@lasrie
Copy link

lasrie commented Mar 9, 2018

Hi,
Assuming that you already have the private key, you can simply create a new wallet file with the private key.
E.g:

ECKeyPair keypair = ECKeyPair.create(YOURPRIVATEKEY);
WalletUtils.generateWalletFile("SUPERSAFENEWPASSWORD", keypair,new File(WALLETSAVEPATH), true)

@githubityu
Copy link
Author

@lasrie Thank you very much, I try

@chenhao597
Copy link

How to throught the mnemonic words to change the password???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants