ethereumjs / keythereum

Create, import and export Ethereum keys
MIT License
609 stars 163 forks source link

How to make browser using faster #48

Closed vellmur closed 6 years ago

vellmur commented 6 years ago

I use keythereum.js(without nodejs) in a browser. It works good, but not each time. Almost always the first time the site down and after refreshing the second time keys are created in 10 seconds. For encrypting I use default options. Is it possible to do browser version faster by change default options, like number of cycles or type of coding?

tinybike commented 6 years ago

You definitely can speed things up by decreasing the number of rounds, although please be aware that this will make the private key encryption less secure:

In both cases, the default number of rounds is 262144.