spinner while derivating passphrase

This commit is contained in:
Matias Alejo Garcia 2014-05-07 18:48:56 -03:00
commit 6afcd8cc2e
7 changed files with 91 additions and 47 deletions

View file

@ -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;