add wallet import test

This commit is contained in:
Manuel Araoz 2014-09-02 15:49:22 -03:00
commit 89ec5ad61e
4 changed files with 75 additions and 74 deletions

View file

@ -15,14 +15,12 @@ Passphrase.prototype.get = function(password) {
keySize: 512 / 32,
iterations: this.iterations
});
return key512;
};
Passphrase.prototype.getBase64 = function(password) {
var key512 = this.get(password);
var keyBase64 = key512.toString(CryptoJS.enc.Base64);
return keyBase64;
};