Skip to content

How to encrypt & decrypt a wallet? #2503

Answered by ricmoo
adriandelgg asked this question in Q&A
Discussion options

You must be logged in to vote

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. :)

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@adriandelgg
Comment options

@ricmoo
Comment options

@adriandelgg
Comment options

Answer selected by adriandelgg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2502 on January 06, 2022 03:12.