-
Notifications
You must be signed in to change notification settings - Fork 101
Closed
Labels
Description
Hey,
I'd like to know why it takes about 2-3s to decrypt one key, but then it gets a lot worse for subsequent keys (12-15s). Is it possible to improve that?
That happens either running with Node or Web browser.
var bip38 = require("bip38");
var keyList = ["6PnQYMjJ7ZXpX8rbh8b6PfzK38WG5KL9mGqscB2RXFGb4ZKwXBaP5gMmhC", "6PnPNwvsTy3jeogyENrV23F15om4ecbEmFZcYrjrTsPgvKEwfnubVEAEEc"];
var password = "123";
for (var key of keyList) {
var t0 = new Date().getTime();
bip38.decrypt(key, password);
console.log((new Date().getTime() - t0) + " ms");
}
dcousens