How to encrypt & decrypt a wallet? #2503
-
Hi, in Web3.js there are 2 methods that allow you to encrypt and decrypt a wallet so that you can use them to create a wallet app.
How can I do the same thing with Ethers?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
All the methods you are looking for are documented here: https://docs.ethers.io/v5/api/signer/#Wallet The Let me know if you have any issues. :) |
Beta Was this translation helpful? Give feedback.
All the methods you are looking for are documented here: https://docs.ethers.io/v5/api/signer/#Wallet
The
createRandom()
creates a new wallet, and there are various encrypting and decrypting options depending if you want sync or async; you will generally want to use the async methods, which allow a callback to update a progress bar.Let me know if you have any issues. :)