add wallet import test
This commit is contained in:
parent
5a3134212c
commit
89ec5ad61e
4 changed files with 75 additions and 74 deletions
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue