diff --git a/lib/crypto/Crypto.js b/lib/crypto/Crypto.js index a2032b5..4d53560 100644 --- a/lib/crypto/Crypto.js +++ b/lib/crypto/Crypto.js @@ -78,13 +78,8 @@ module.exports = class Crypto { { console.log("hex string of key starts with \"00\" and is 514 bytes long, fixing it to be 512 bytes long by stripping leading \"00\""); hexString = hexString.substr(2); - var base64String = Buffer.from(hexString, 'hex').toString('base64') - return base64String; - } - else - { - return (modPow(base, power, mod)).toBEBuffer().toString('base64'); } + return Buffer.from(hexString, 'hex').toString('base64'); } static pad(d) {