diff --git a/lib/decrypt.js b/lib/decrypt.js index 6c3af8f..04e3ae0 100644 --- a/lib/decrypt.js +++ b/lib/decrypt.js @@ -10,5 +10,5 @@ module.exports = function decrypt(password, str) { a.copy(buf, 0); b.copy(buf, a.length); - return buf.toString('utf8'); + return Base58.decode(buf); }; diff --git a/package.json b/package.json index 0401181..85d955c 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "postinstall": "npm run make-dist" }, "main": "index.js", - "version": "0.2.0", + "version": "0.3.0", "dependencies": { "bitcore": "bitpay/bitcore#v0.8", "body-parser": "^1.2.0",