spinner while derivating passphrase
This commit is contained in:
parent
207f345d79
commit
6afcd8cc2e
7 changed files with 91 additions and 47 deletions
|
|
@ -21,4 +21,14 @@ Passphrase.prototype.getBase64 = function(password) {
|
|||
return keyBase64;
|
||||
};
|
||||
|
||||
Passphrase.prototype.getBase64Async = function(password,cb) {
|
||||
var self = this;
|
||||
setTimeout(function() {
|
||||
var ret = self.getBase64(password);
|
||||
return cb(ret);
|
||||
},10);
|
||||
};
|
||||
|
||||
|
||||
|
||||
module.exports = Passphrase;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue